1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libXcursor 1.2.3. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcursor/-/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/libxcursor/-/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='libXcursor' 624PACKAGE_TARNAME='libXcursor' 625PACKAGE_VERSION='1.2.3' 626PACKAGE_STRING='libXcursor 1.2.3' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxcursor/-/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 667LINT_FALSE 668LINT_TRUE 669LINT_FLAGS 670LINT 671XCURSOR_LIBS 672XCURSOR_CFLAGS 673XCURSORPATH 674ICONDIR 675MAN_SUBSTS 676XORG_MAN_PAGE 677ADMIN_MAN_DIR 678DRIVER_MAN_DIR 679MISC_MAN_DIR 680FILE_MAN_DIR 681LIB_MAN_DIR 682APP_MAN_DIR 683ADMIN_MAN_SUFFIX 684DRIVER_MAN_SUFFIX 685MISC_MAN_SUFFIX 686FILE_MAN_SUFFIX 687LIB_MAN_SUFFIX 688APP_MAN_SUFFIX 689INSTALL_CMD 690PKG_CONFIG_LIBDIR 691PKG_CONFIG_PATH 692PKG_CONFIG 693CHANGELOG_CMD 694STRICT_CFLAGS 695CWARNFLAGS 696BASE_CFLAGS 697LT_SYS_LIBRARY_PATH 698OTOOL64 699OTOOL 700LIPO 701NMEDIT 702DSYMUTIL 703MANIFEST_TOOL 704RANLIB 705ac_ct_AR 706AR 707DLLTOOL 708OBJDUMP 709FILECMD 710LN_S 711NM 712ac_ct_DUMPBIN 713DUMPBIN 714LD 715FGREP 716EGREP 717GREP 718SED 719host_os 720host_vendor 721host_cpu 722host 723build_os 724build_vendor 725build_cpu 726build 727LIBTOOL 728AM_BACKSLASH 729AM_DEFAULT_VERBOSITY 730AM_DEFAULT_V 731AM_V 732CSCOPE 733ETAGS 734CTAGS 735am__fastdepCC_FALSE 736am__fastdepCC_TRUE 737CCDEPMODE 738am__nodep 739AMDEPBACKSLASH 740AMDEP_FALSE 741AMDEP_TRUE 742am__include 743DEPDIR 744am__untar 745am__tar 746AMTAR 747am__leading_dot 748SET_MAKE 749AWK 750mkdir_p 751MKDIR_P 752INSTALL_STRIP_PROGRAM 753STRIP 754install_sh 755MAKEINFO 756AUTOHEADER 757AUTOMAKE 758AUTOCONF 759ACLOCAL 760VERSION 761PACKAGE 762CYGPATH_W 763am__isrc 764INSTALL_DATA 765INSTALL_SCRIPT 766INSTALL_PROGRAM 767OBJEXT 768EXEEXT 769ac_ct_CC 770CPPFLAGS 771LDFLAGS 772CFLAGS 773CC 774target_alias 775host_alias 776build_alias 777LIBS 778ECHO_T 779ECHO_N 780ECHO_C 781DEFS 782mandir 783localedir 784libdir 785psdir 786pdfdir 787dvidir 788htmldir 789infodir 790docdir 791oldincludedir 792includedir 793runstatedir 794localstatedir 795sharedstatedir 796sysconfdir 797datadir 798datarootdir 799libexecdir 800sbindir 801bindir 802program_transform_name 803prefix 804exec_prefix 805PACKAGE_URL 806PACKAGE_BUGREPORT 807PACKAGE_STRING 808PACKAGE_VERSION 809PACKAGE_TARNAME 810PACKAGE_NAME 811PATH_SEPARATOR 812SHELL 813am__quote' 814ac_subst_files='' 815ac_user_opts=' 816enable_option_checking 817enable_dependency_tracking 818enable_silent_rules 819enable_shared 820enable_static 821with_pic 822enable_fast_install 823with_aix_soname 824with_gnu_ld 825with_sysroot 826enable_libtool_lock 827enable_selective_werror 828enable_strict_compilation 829with_icondir 830with_cursorpath 831with_lint 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 845XCURSOR_CFLAGS 846XCURSOR_LIBS 847LINT 848LINT_FLAGS' 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 libXcursor 1.2.3 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/libXcursor] 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 libXcursor 1.2.3:";; 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-dependency-tracking 1477 do not reject slow dependency extractors 1478 --disable-dependency-tracking 1479 speeds up one-time build 1480 --enable-silent-rules less verbose build output (undo: "make V=1") 1481 --disable-silent-rules verbose build output (undo: "make V=0") 1482 --enable-shared[=PKGS] build shared libraries [default=yes] 1483 --enable-static[=PKGS] build static libraries [default=yes] 1484 --enable-fast-install[=PKGS] 1485 optimize for fast installation [default=yes] 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 1494Optional Packages: 1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1498 both] 1499 --with-aix-soname=aix|svr4|both 1500 shared library versioning (aka "SONAME") variant to 1501 provide on AIX, [default=aix]. 1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1503 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1504 compiler's sysroot if not specified). 1505 --with-icondir=<path> Set default icon directory (default: 1506 ${datadir}/icons) 1507 --with-cursorpath=<paths> 1508 Set default search path for cursors 1509 --with-lint Use a lint-style source code checker (default: 1510 disabled) 1511 1512Some influential environment variables: 1513 CC C compiler command 1514 CFLAGS C compiler flags 1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1516 nonstandard directory <lib dir> 1517 LIBS libraries to pass to the linker, e.g. -l<library> 1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1519 you have headers in a nonstandard directory <include dir> 1520 LT_SYS_LIBRARY_PATH 1521 User-defined run-time library search path. 1522 PKG_CONFIG path to pkg-config utility 1523 PKG_CONFIG_PATH 1524 directories to add to pkg-config's search path 1525 PKG_CONFIG_LIBDIR 1526 path overriding pkg-config's built-in search path 1527 XCURSOR_CFLAGS 1528 C compiler flags for XCURSOR, overriding pkg-config 1529 XCURSOR_LIBS 1530 linker flags for XCURSOR, overriding pkg-config 1531 LINT Path to a lint-style command 1532 LINT_FLAGS Flags for the lint-style command 1533 1534Use these variables to override the choices made by `configure' or to help 1535it to find libraries and programs with nonstandard names/locations. 1536 1537Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcursor/-/issues>. 1538_ACEOF 1539ac_status=$? 1540fi 1541 1542if test "$ac_init_help" = "recursive"; then 1543 # If there are subdirs, report their specific --help. 1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1545 test -d "$ac_dir" || 1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1547 continue 1548 ac_builddir=. 1549 1550case "$ac_dir" in 1551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1552*) 1553 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1554 # A ".." for each directory in $ac_dir_suffix. 1555 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1556 case $ac_top_builddir_sub in 1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1559 esac ;; 1560esac 1561ac_abs_top_builddir=$ac_pwd 1562ac_abs_builddir=$ac_pwd$ac_dir_suffix 1563# for backward compatibility: 1564ac_top_builddir=$ac_top_build_prefix 1565 1566case $srcdir in 1567 .) # We are building in place. 1568 ac_srcdir=. 1569 ac_top_srcdir=$ac_top_builddir_sub 1570 ac_abs_top_srcdir=$ac_pwd ;; 1571 [\\/]* | ?:[\\/]* ) # Absolute name. 1572 ac_srcdir=$srcdir$ac_dir_suffix; 1573 ac_top_srcdir=$srcdir 1574 ac_abs_top_srcdir=$srcdir ;; 1575 *) # Relative name. 1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1577 ac_top_srcdir=$ac_top_build_prefix$srcdir 1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1579esac 1580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1581 1582 cd "$ac_dir" || { ac_status=$?; continue; } 1583 # Check for configure.gnu first; this name is used for a wrapper for 1584 # Metaconfig's "Configure" on case-insensitive file systems. 1585 if test -f "$ac_srcdir/configure.gnu"; then 1586 echo && 1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1588 elif test -f "$ac_srcdir/configure"; then 1589 echo && 1590 $SHELL "$ac_srcdir/configure" --help=recursive 1591 else 1592 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1593 fi || ac_status=$? 1594 cd "$ac_pwd" || { ac_status=$?; break; } 1595 done 1596fi 1597 1598test -n "$ac_init_help" && exit $ac_status 1599if $ac_init_version; then 1600 cat <<\_ACEOF 1601libXcursor configure 1.2.3 1602generated by GNU Autoconf 2.71 1603 1604Copyright (C) 2021 Free Software Foundation, Inc. 1605This configure script is free software; the Free Software Foundation 1606gives unlimited permission to copy, distribute and modify it. 1607_ACEOF 1608 exit 1609fi 1610 1611## ------------------------ ## 1612## Autoconf initialization. ## 1613## ------------------------ ## 1614 1615# ac_fn_c_try_compile LINENO 1616# -------------------------- 1617# Try to compile conftest.$ac_ext, and return whether this succeeded. 1618ac_fn_c_try_compile () 1619{ 1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1621 rm -f conftest.$ac_objext conftest.beam 1622 if { { ac_try="$ac_compile" 1623case "(($ac_try" in 1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1625 *) ac_try_echo=$ac_try;; 1626esac 1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1628printf "%s\n" "$ac_try_echo"; } >&5 1629 (eval "$ac_compile") 2>conftest.err 1630 ac_status=$? 1631 if test -s conftest.err; then 1632 grep -v '^ *+' conftest.err >conftest.er1 1633 cat conftest.er1 >&5 1634 mv -f conftest.er1 conftest.err 1635 fi 1636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1637 test $ac_status = 0; } && { 1638 test -z "$ac_c_werror_flag" || 1639 test ! -s conftest.err 1640 } && test -s conftest.$ac_objext 1641then : 1642 ac_retval=0 1643else $as_nop 1644 printf "%s\n" "$as_me: failed program was:" >&5 1645sed 's/^/| /' conftest.$ac_ext >&5 1646 1647 ac_retval=1 1648fi 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 as_fn_set_status $ac_retval 1651 1652} # ac_fn_c_try_compile 1653 1654# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1655# ------------------------------------------------------- 1656# Tests whether HEADER exists and can be compiled using the include files in 1657# INCLUDES, setting the cache variable VAR accordingly. 1658ac_fn_c_check_header_compile () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1662printf %s "checking for $2... " >&6; } 1663if eval test \${$3+y} 1664then : 1665 printf %s "(cached) " >&6 1666else $as_nop 1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1668/* end confdefs.h. */ 1669$4 1670#include <$2> 1671_ACEOF 1672if ac_fn_c_try_compile "$LINENO" 1673then : 1674 eval "$3=yes" 1675else $as_nop 1676 eval "$3=no" 1677fi 1678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1679fi 1680eval ac_res=\$$3 1681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1682printf "%s\n" "$ac_res" >&6; } 1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1684 1685} # ac_fn_c_check_header_compile 1686 1687# ac_fn_c_try_link LINENO 1688# ----------------------- 1689# Try to link conftest.$ac_ext, and return whether this succeeded. 1690ac_fn_c_try_link () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1694 if { { ac_try="$ac_link" 1695case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698esac 1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700printf "%s\n" "$ac_try_echo"; } >&5 1701 (eval "$ac_link") 2>conftest.err 1702 ac_status=$? 1703 if test -s conftest.err; then 1704 grep -v '^ *+' conftest.err >conftest.er1 1705 cat conftest.er1 >&5 1706 mv -f conftest.er1 conftest.err 1707 fi 1708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } && { 1710 test -z "$ac_c_werror_flag" || 1711 test ! -s conftest.err 1712 } && test -s conftest$ac_exeext && { 1713 test "$cross_compiling" = yes || 1714 test -x conftest$ac_exeext 1715 } 1716then : 1717 ac_retval=0 1718else $as_nop 1719 printf "%s\n" "$as_me: failed program was:" >&5 1720sed 's/^/| /' conftest.$ac_ext >&5 1721 1722 ac_retval=1 1723fi 1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1726 # interfere with the next link command; also delete a directory that is 1727 # left behind by Apple's compiler. We do this before executing the actions. 1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_link 1733 1734# ac_fn_c_check_func LINENO FUNC VAR 1735# ---------------------------------- 1736# Tests whether FUNC exists, setting the cache variable VAR accordingly 1737ac_fn_c_check_func () 1738{ 1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1741printf %s "checking for $2... " >&6; } 1742if eval test \${$3+y} 1743then : 1744 printf %s "(cached) " >&6 1745else $as_nop 1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1747/* end confdefs.h. */ 1748/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1750#define $2 innocuous_$2 1751 1752/* System header to define __stub macros and hopefully few prototypes, 1753 which can conflict with char $2 (); below. */ 1754 1755#include <limits.h> 1756#undef $2 1757 1758/* Override any GCC internal prototype to avoid an error. 1759 Use char because int might match the return type of a GCC 1760 builtin and then its argument prototype would still apply. */ 1761#ifdef __cplusplus 1762extern "C" 1763#endif 1764char $2 (); 1765/* The GNU C library defines this for functions which it implements 1766 to always fail with ENOSYS. Some functions are actually named 1767 something starting with __ and the normal name is an alias. */ 1768#if defined __stub_$2 || defined __stub___$2 1769choke me 1770#endif 1771 1772int 1773main (void) 1774{ 1775return $2 (); 1776 ; 1777 return 0; 1778} 1779_ACEOF 1780if ac_fn_c_try_link "$LINENO" 1781then : 1782 eval "$3=yes" 1783else $as_nop 1784 eval "$3=no" 1785fi 1786rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1787 conftest$ac_exeext conftest.$ac_ext 1788fi 1789eval ac_res=\$$3 1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1791printf "%s\n" "$ac_res" >&6; } 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1793 1794} # ac_fn_c_check_func 1795 1796# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1797# ------------------------------------------------------------------ 1798# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1799# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1800ac_fn_check_decl () 1801{ 1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1803 as_decl_name=`echo $2|sed 's/ *(.*//'` 1804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1805printf %s "checking whether $as_decl_name is declared... " >&6; } 1806if eval test \${$3+y} 1807then : 1808 printf %s "(cached) " >&6 1809else $as_nop 1810 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1811 eval ac_save_FLAGS=\$$6 1812 as_fn_append $6 " $5" 1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815$4 1816int 1817main (void) 1818{ 1819#ifndef $as_decl_name 1820#ifdef __cplusplus 1821 (void) $as_decl_use; 1822#else 1823 (void) $as_decl_name; 1824#endif 1825#endif 1826 1827 ; 1828 return 0; 1829} 1830_ACEOF 1831if ac_fn_c_try_compile "$LINENO" 1832then : 1833 eval "$3=yes" 1834else $as_nop 1835 eval "$3=no" 1836fi 1837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1838 eval $6=\$ac_save_FLAGS 1839 1840fi 1841eval ac_res=\$$3 1842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1843printf "%s\n" "$ac_res" >&6; } 1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1845 1846} # ac_fn_check_decl 1847ac_configure_args_raw= 1848for ac_arg 1849do 1850 case $ac_arg in 1851 *\'*) 1852 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1853 esac 1854 as_fn_append ac_configure_args_raw " '$ac_arg'" 1855done 1856 1857case $ac_configure_args_raw in 1858 *$as_nl*) 1859 ac_safe_unquote= ;; 1860 *) 1861 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1862 ac_unsafe_a="$ac_unsafe_z#~" 1863 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1864 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1865esac 1866 1867cat >config.log <<_ACEOF 1868This file contains any messages produced by compilers while 1869running configure, to aid debugging if configure makes a mistake. 1870 1871It was created by libXcursor $as_me 1.2.3, which was 1872generated by GNU Autoconf 2.71. Invocation command line was 1873 1874 $ $0$ac_configure_args_raw 1875 1876_ACEOF 1877exec 5>>config.log 1878{ 1879cat <<_ASUNAME 1880## --------- ## 1881## Platform. ## 1882## --------- ## 1883 1884hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1885uname -m = `(uname -m) 2>/dev/null || echo unknown` 1886uname -r = `(uname -r) 2>/dev/null || echo unknown` 1887uname -s = `(uname -s) 2>/dev/null || echo unknown` 1888uname -v = `(uname -v) 2>/dev/null || echo unknown` 1889 1890/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1891/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1892 1893/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1894/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1895/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1896/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1897/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1898/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1899/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1900 1901_ASUNAME 1902 1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1904for as_dir in $PATH 1905do 1906 IFS=$as_save_IFS 1907 case $as_dir in #((( 1908 '') as_dir=./ ;; 1909 */) ;; 1910 *) as_dir=$as_dir/ ;; 1911 esac 1912 printf "%s\n" "PATH: $as_dir" 1913 done 1914IFS=$as_save_IFS 1915 1916} >&5 1917 1918cat >&5 <<_ACEOF 1919 1920 1921## ----------- ## 1922## Core tests. ## 1923## ----------- ## 1924 1925_ACEOF 1926 1927 1928# Keep a trace of the command line. 1929# Strip out --no-create and --no-recursion so they do not pile up. 1930# Strip out --silent because we don't want to record it for future runs. 1931# Also quote any args containing shell meta-characters. 1932# Make two passes to allow for proper duplicate-argument suppression. 1933ac_configure_args= 1934ac_configure_args0= 1935ac_configure_args1= 1936ac_must_keep_next=false 1937for ac_pass in 1 2 1938do 1939 for ac_arg 1940 do 1941 case $ac_arg in 1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1944 | -silent | --silent | --silen | --sile | --sil) 1945 continue ;; 1946 *\'*) 1947 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1948 esac 1949 case $ac_pass in 1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1951 2) 1952 as_fn_append ac_configure_args1 " '$ac_arg'" 1953 if test $ac_must_keep_next = true; then 1954 ac_must_keep_next=false # Got value, back to normal. 1955 else 1956 case $ac_arg in 1957 *=* | --config-cache | -C | -disable-* | --disable-* \ 1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1960 | -with-* | --with-* | -without-* | --without-* | --x) 1961 case "$ac_configure_args0 " in 1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1963 esac 1964 ;; 1965 -* ) ac_must_keep_next=true ;; 1966 esac 1967 fi 1968 as_fn_append ac_configure_args " '$ac_arg'" 1969 ;; 1970 esac 1971 done 1972done 1973{ ac_configure_args0=; unset ac_configure_args0;} 1974{ ac_configure_args1=; unset ac_configure_args1;} 1975 1976# When interrupted or exit'd, cleanup temporary files, and complete 1977# config.log. We remove comments because anyway the quotes in there 1978# would cause problems or look ugly. 1979# WARNING: Use '\'' to represent an apostrophe within the trap. 1980# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1981trap 'exit_status=$? 1982 # Sanitize IFS. 1983 IFS=" "" $as_nl" 1984 # Save into config.log some information that might help in debugging. 1985 { 1986 echo 1987 1988 printf "%s\n" "## ---------------- ## 1989## Cache variables. ## 1990## ---------------- ##" 1991 echo 1992 # The following way of writing the cache mishandles newlines in values, 1993( 1994 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1995 eval ac_val=\$$ac_var 1996 case $ac_val in #( 1997 *${as_nl}*) 1998 case $ac_var in #( 1999 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2000printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2001 esac 2002 case $ac_var in #( 2003 _ | IFS | as_nl) ;; #( 2004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2005 *) { eval $ac_var=; unset $ac_var;} ;; 2006 esac ;; 2007 esac 2008 done 2009 (set) 2>&1 | 2010 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2011 *${as_nl}ac_space=\ *) 2012 sed -n \ 2013 "s/'\''/'\''\\\\'\'''\''/g; 2014 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2015 ;; #( 2016 *) 2017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2018 ;; 2019 esac | 2020 sort 2021) 2022 echo 2023 2024 printf "%s\n" "## ----------------- ## 2025## Output variables. ## 2026## ----------------- ##" 2027 echo 2028 for ac_var in $ac_subst_vars 2029 do 2030 eval ac_val=\$$ac_var 2031 case $ac_val in 2032 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2033 esac 2034 printf "%s\n" "$ac_var='\''$ac_val'\''" 2035 done | sort 2036 echo 2037 2038 if test -n "$ac_subst_files"; then 2039 printf "%s\n" "## ------------------- ## 2040## File substitutions. ## 2041## ------------------- ##" 2042 echo 2043 for ac_var in $ac_subst_files 2044 do 2045 eval ac_val=\$$ac_var 2046 case $ac_val in 2047 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2048 esac 2049 printf "%s\n" "$ac_var='\''$ac_val'\''" 2050 done | sort 2051 echo 2052 fi 2053 2054 if test -s confdefs.h; then 2055 printf "%s\n" "## ----------- ## 2056## confdefs.h. ## 2057## ----------- ##" 2058 echo 2059 cat confdefs.h 2060 echo 2061 fi 2062 test "$ac_signal" != 0 && 2063 printf "%s\n" "$as_me: caught signal $ac_signal" 2064 printf "%s\n" "$as_me: exit $exit_status" 2065 } >&5 2066 rm -f core *.core core.conftest.* && 2067 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2068 exit $exit_status 2069' 0 2070for ac_signal in 1 2 13 15; do 2071 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2072done 2073ac_signal=0 2074 2075# confdefs.h avoids OS command line length limits that DEFS can exceed. 2076rm -f -r conftest* confdefs.h 2077 2078printf "%s\n" "/* confdefs.h */" > confdefs.h 2079 2080# Predefined preprocessor variables. 2081 2082printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2083 2084printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2085 2086printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2087 2088printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2089 2090printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2091 2092printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2093 2094 2095# Let the site file select an alternate cache file if it wants to. 2096# Prefer an explicitly selected file to automatically selected ones. 2097if test -n "$CONFIG_SITE"; then 2098 ac_site_files="$CONFIG_SITE" 2099elif test "x$prefix" != xNONE; then 2100 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2101else 2102 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2103fi 2104 2105for ac_site_file in $ac_site_files 2106do 2107 case $ac_site_file in #( 2108 */*) : 2109 ;; #( 2110 *) : 2111 ac_site_file=./$ac_site_file ;; 2112esac 2113 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2115printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2116 sed 's/^/| /' "$ac_site_file" >&5 2117 . "$ac_site_file" \ 2118 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2119printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2120as_fn_error $? "failed to load site script $ac_site_file 2121See \`config.log' for more details" "$LINENO" 5; } 2122 fi 2123done 2124 2125if test -r "$cache_file"; then 2126 # Some versions of bash will fail to source /dev/null (special files 2127 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2128 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2130printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2131 case $cache_file in 2132 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2133 *) . "./$cache_file";; 2134 esac 2135 fi 2136else 2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2138printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2139 >$cache_file 2140fi 2141 2142as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2143# Test code for whether the C compiler supports C89 (global declarations) 2144ac_c_conftest_c89_globals=' 2145/* Does the compiler advertise C89 conformance? 2146 Do not test the value of __STDC__, because some compilers set it to 0 2147 while being otherwise adequately conformant. */ 2148#if !defined __STDC__ 2149# error "Compiler does not advertise C89 conformance" 2150#endif 2151 2152#include <stddef.h> 2153#include <stdarg.h> 2154struct stat; 2155/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2156struct buf { int x; }; 2157struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2158static char *e (p, i) 2159 char **p; 2160 int i; 2161{ 2162 return p[i]; 2163} 2164static char *f (char * (*g) (char **, int), char **p, ...) 2165{ 2166 char *s; 2167 va_list v; 2168 va_start (v,p); 2169 s = g (p, va_arg (v,int)); 2170 va_end (v); 2171 return s; 2172} 2173 2174/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2175 function prototypes and stuff, but not \xHH hex character constants. 2176 These do not provoke an error unfortunately, instead are silently treated 2177 as an "x". The following induces an error, until -std is added to get 2178 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2179 array size at least. It is necessary to write \x00 == 0 to get something 2180 that is true only with -std. */ 2181int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2182 2183/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2184 inside strings and character constants. */ 2185#define FOO(x) '\''x'\'' 2186int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2187 2188int test (int i, double x); 2189struct s1 {int (*f) (int a);}; 2190struct s2 {int (*f) (double a);}; 2191int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2192 int, int);' 2193 2194# Test code for whether the C compiler supports C89 (body of main). 2195ac_c_conftest_c89_main=' 2196ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2197' 2198 2199# Test code for whether the C compiler supports C99 (global declarations) 2200ac_c_conftest_c99_globals=' 2201// Does the compiler advertise C99 conformance? 2202#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2203# error "Compiler does not advertise C99 conformance" 2204#endif 2205 2206#include <stdbool.h> 2207extern int puts (const char *); 2208extern int printf (const char *, ...); 2209extern int dprintf (int, const char *, ...); 2210extern void *malloc (size_t); 2211 2212// Check varargs macros. These examples are taken from C99 6.10.3.5. 2213// dprintf is used instead of fprintf to avoid needing to declare 2214// FILE and stderr. 2215#define debug(...) dprintf (2, __VA_ARGS__) 2216#define showlist(...) puts (#__VA_ARGS__) 2217#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2218static void 2219test_varargs_macros (void) 2220{ 2221 int x = 1234; 2222 int y = 5678; 2223 debug ("Flag"); 2224 debug ("X = %d\n", x); 2225 showlist (The first, second, and third items.); 2226 report (x>y, "x is %d but y is %d", x, y); 2227} 2228 2229// Check long long types. 2230#define BIG64 18446744073709551615ull 2231#define BIG32 4294967295ul 2232#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2233#if !BIG_OK 2234 #error "your preprocessor is broken" 2235#endif 2236#if BIG_OK 2237#else 2238 #error "your preprocessor is broken" 2239#endif 2240static long long int bignum = -9223372036854775807LL; 2241static unsigned long long int ubignum = BIG64; 2242 2243struct incomplete_array 2244{ 2245 int datasize; 2246 double data[]; 2247}; 2248 2249struct named_init { 2250 int number; 2251 const wchar_t *name; 2252 double average; 2253}; 2254 2255typedef const char *ccp; 2256 2257static inline int 2258test_restrict (ccp restrict text) 2259{ 2260 // See if C++-style comments work. 2261 // Iterate through items via the restricted pointer. 2262 // Also check for declarations in for loops. 2263 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2264 continue; 2265 return 0; 2266} 2267 2268// Check varargs and va_copy. 2269static bool 2270test_varargs (const char *format, ...) 2271{ 2272 va_list args; 2273 va_start (args, format); 2274 va_list args_copy; 2275 va_copy (args_copy, args); 2276 2277 const char *str = ""; 2278 int number = 0; 2279 float fnumber = 0; 2280 2281 while (*format) 2282 { 2283 switch (*format++) 2284 { 2285 case '\''s'\'': // string 2286 str = va_arg (args_copy, const char *); 2287 break; 2288 case '\''d'\'': // int 2289 number = va_arg (args_copy, int); 2290 break; 2291 case '\''f'\'': // float 2292 fnumber = va_arg (args_copy, double); 2293 break; 2294 default: 2295 break; 2296 } 2297 } 2298 va_end (args_copy); 2299 va_end (args); 2300 2301 return *str && number && fnumber; 2302} 2303' 2304 2305# Test code for whether the C compiler supports C99 (body of main). 2306ac_c_conftest_c99_main=' 2307 // Check bool. 2308 _Bool success = false; 2309 success |= (argc != 0); 2310 2311 // Check restrict. 2312 if (test_restrict ("String literal") == 0) 2313 success = true; 2314 char *restrict newvar = "Another string"; 2315 2316 // Check varargs. 2317 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2318 test_varargs_macros (); 2319 2320 // Check flexible array members. 2321 struct incomplete_array *ia = 2322 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2323 ia->datasize = 10; 2324 for (int i = 0; i < ia->datasize; ++i) 2325 ia->data[i] = i * 1.234; 2326 2327 // Check named initializers. 2328 struct named_init ni = { 2329 .number = 34, 2330 .name = L"Test wide string", 2331 .average = 543.34343, 2332 }; 2333 2334 ni.number = 58; 2335 2336 int dynamic_array[ni.number]; 2337 dynamic_array[0] = argv[0][0]; 2338 dynamic_array[ni.number - 1] = 543; 2339 2340 // work around unused variable warnings 2341 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2342 || dynamic_array[ni.number - 1] != 543); 2343' 2344 2345# Test code for whether the C compiler supports C11 (global declarations) 2346ac_c_conftest_c11_globals=' 2347// Does the compiler advertise C11 conformance? 2348#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2349# error "Compiler does not advertise C11 conformance" 2350#endif 2351 2352// Check _Alignas. 2353char _Alignas (double) aligned_as_double; 2354char _Alignas (0) no_special_alignment; 2355extern char aligned_as_int; 2356char _Alignas (0) _Alignas (int) aligned_as_int; 2357 2358// Check _Alignof. 2359enum 2360{ 2361 int_alignment = _Alignof (int), 2362 int_array_alignment = _Alignof (int[100]), 2363 char_alignment = _Alignof (char) 2364}; 2365_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2366 2367// Check _Noreturn. 2368int _Noreturn does_not_return (void) { for (;;) continue; } 2369 2370// Check _Static_assert. 2371struct test_static_assert 2372{ 2373 int x; 2374 _Static_assert (sizeof (int) <= sizeof (long int), 2375 "_Static_assert does not work in struct"); 2376 long int y; 2377}; 2378 2379// Check UTF-8 literals. 2380#define u8 syntax error! 2381char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2382 2383// Check duplicate typedefs. 2384typedef long *long_ptr; 2385typedef long int *long_ptr; 2386typedef long_ptr long_ptr; 2387 2388// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2389struct anonymous 2390{ 2391 union { 2392 struct { int i; int j; }; 2393 struct { int k; long int l; } w; 2394 }; 2395 int m; 2396} v1; 2397' 2398 2399# Test code for whether the C compiler supports C11 (body of main). 2400ac_c_conftest_c11_main=' 2401 _Static_assert ((offsetof (struct anonymous, i) 2402 == offsetof (struct anonymous, w.k)), 2403 "Anonymous union alignment botch"); 2404 v1.i = 2; 2405 v1.w.k = 5; 2406 ok |= v1.i != 5; 2407' 2408 2409# Test code for whether the C compiler supports C11 (complete). 2410ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2411${ac_c_conftest_c99_globals} 2412${ac_c_conftest_c11_globals} 2413 2414int 2415main (int argc, char **argv) 2416{ 2417 int ok = 0; 2418 ${ac_c_conftest_c89_main} 2419 ${ac_c_conftest_c99_main} 2420 ${ac_c_conftest_c11_main} 2421 return ok; 2422} 2423" 2424 2425# Test code for whether the C compiler supports C99 (complete). 2426ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2427${ac_c_conftest_c99_globals} 2428 2429int 2430main (int argc, char **argv) 2431{ 2432 int ok = 0; 2433 ${ac_c_conftest_c89_main} 2434 ${ac_c_conftest_c99_main} 2435 return ok; 2436} 2437" 2438 2439# Test code for whether the C compiler supports C89 (complete). 2440ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2441 2442int 2443main (int argc, char **argv) 2444{ 2445 int ok = 0; 2446 ${ac_c_conftest_c89_main} 2447 return ok; 2448} 2449" 2450 2451as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2452as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2453as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2454as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2455as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2456as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2457as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2458as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2459as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2460as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2461 2462# Auxiliary files required by this configure script. 2463ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2464 2465# Locations in which to look for auxiliary files. 2466ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2467 2468# Search for a directory containing all of the required auxiliary files, 2469# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2470# If we don't find one directory that contains all the files we need, 2471# we report the set of missing files from the *first* directory in 2472# $ac_aux_dir_candidates and give up. 2473ac_missing_aux_files="" 2474ac_first_candidate=: 2475printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2477as_found=false 2478for as_dir in $ac_aux_dir_candidates 2479do 2480 IFS=$as_save_IFS 2481 case $as_dir in #((( 2482 '') as_dir=./ ;; 2483 */) ;; 2484 *) as_dir=$as_dir/ ;; 2485 esac 2486 as_found=: 2487 2488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2489 ac_aux_dir_found=yes 2490 ac_install_sh= 2491 for ac_aux in $ac_aux_files 2492 do 2493 # As a special case, if "install-sh" is required, that requirement 2494 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2495 # and $ac_install_sh is set appropriately for whichever one is found. 2496 if test x"$ac_aux" = x"install-sh" 2497 then 2498 if test -f "${as_dir}install-sh"; then 2499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2500 ac_install_sh="${as_dir}install-sh -c" 2501 elif test -f "${as_dir}install.sh"; then 2502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2503 ac_install_sh="${as_dir}install.sh -c" 2504 elif test -f "${as_dir}shtool"; then 2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2506 ac_install_sh="${as_dir}shtool install -c" 2507 else 2508 ac_aux_dir_found=no 2509 if $ac_first_candidate; then 2510 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2511 else 2512 break 2513 fi 2514 fi 2515 else 2516 if test -f "${as_dir}${ac_aux}"; then 2517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2518 else 2519 ac_aux_dir_found=no 2520 if $ac_first_candidate; then 2521 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2522 else 2523 break 2524 fi 2525 fi 2526 fi 2527 done 2528 if test "$ac_aux_dir_found" = yes; then 2529 ac_aux_dir="$as_dir" 2530 break 2531 fi 2532 ac_first_candidate=false 2533 2534 as_found=false 2535done 2536IFS=$as_save_IFS 2537if $as_found 2538then : 2539 2540else $as_nop 2541 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2542fi 2543 2544 2545# These three variables are undocumented and unsupported, 2546# and are intended to be withdrawn in a future Autoconf release. 2547# They can cause serious problems if a builder's source tree is in a directory 2548# whose full name contains unusual characters. 2549if test -f "${ac_aux_dir}config.guess"; then 2550 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2551fi 2552if test -f "${ac_aux_dir}config.sub"; then 2553 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2554fi 2555if test -f "$ac_aux_dir/configure"; then 2556 ac_configure="$SHELL ${ac_aux_dir}configure" 2557fi 2558 2559# Check that the precious variables saved in the cache have kept the same 2560# value. 2561ac_cache_corrupted=false 2562for ac_var in $ac_precious_vars; do 2563 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2564 eval ac_new_set=\$ac_env_${ac_var}_set 2565 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2566 eval ac_new_val=\$ac_env_${ac_var}_value 2567 case $ac_old_set,$ac_new_set in 2568 set,) 2569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2570printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2571 ac_cache_corrupted=: ;; 2572 ,set) 2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2574printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2575 ac_cache_corrupted=: ;; 2576 ,);; 2577 *) 2578 if test "x$ac_old_val" != "x$ac_new_val"; then 2579 # differences in whitespace do not lead to failure. 2580 ac_old_val_w=`echo x $ac_old_val` 2581 ac_new_val_w=`echo x $ac_new_val` 2582 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2584printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2585 ac_cache_corrupted=: 2586 else 2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2588printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2589 eval $ac_var=\$ac_old_val 2590 fi 2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2592printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2594printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2595 fi;; 2596 esac 2597 # Pass precious variables to config.status. 2598 if test "$ac_new_set" = set; then 2599 case $ac_new_val in 2600 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2601 *) ac_arg=$ac_var=$ac_new_val ;; 2602 esac 2603 case " $ac_configure_args " in 2604 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2605 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2606 esac 2607 fi 2608done 2609if $ac_cache_corrupted; then 2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2611printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2613printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2614 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2615 and start over" "$LINENO" 5 2616fi 2617## -------------------- ## 2618## Main body of script. ## 2619## -------------------- ## 2620 2621ac_ext=c 2622ac_cpp='$CPP $CPPFLAGS' 2623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2625ac_compiler_gnu=$ac_cv_c_compiler_gnu 2626 2627 2628 2629ac_config_headers="$ac_config_headers config.h include/X11/Xcursor/Xcursor.h" 2630 2631 2632 2633# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2634# Must be called before any macros that run the compiler (like LT_INIT) 2635# to avoid autoconf errors. 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647# Expand $ac_aux_dir to an absolute path. 2648am_aux_dir=`cd "$ac_aux_dir" && pwd` 2649 2650ac_ext=c 2651ac_cpp='$CPP $CPPFLAGS' 2652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2654ac_compiler_gnu=$ac_cv_c_compiler_gnu 2655if test -n "$ac_tool_prefix"; then 2656 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2657set dummy ${ac_tool_prefix}gcc; ac_word=$2 2658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2659printf %s "checking for $ac_word... " >&6; } 2660if test ${ac_cv_prog_CC+y} 2661then : 2662 printf %s "(cached) " >&6 2663else $as_nop 2664 if test -n "$CC"; then 2665 ac_cv_prog_CC="$CC" # Let the user override the test. 2666else 2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668for as_dir in $PATH 2669do 2670 IFS=$as_save_IFS 2671 case $as_dir in #((( 2672 '') as_dir=./ ;; 2673 */) ;; 2674 *) as_dir=$as_dir/ ;; 2675 esac 2676 for ac_exec_ext in '' $ac_executable_extensions; do 2677 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2678 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2680 break 2 2681 fi 2682done 2683 done 2684IFS=$as_save_IFS 2685 2686fi 2687fi 2688CC=$ac_cv_prog_CC 2689if test -n "$CC"; then 2690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2691printf "%s\n" "$CC" >&6; } 2692else 2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2694printf "%s\n" "no" >&6; } 2695fi 2696 2697 2698fi 2699if test -z "$ac_cv_prog_CC"; then 2700 ac_ct_CC=$CC 2701 # Extract the first word of "gcc", so it can be a program name with args. 2702set dummy gcc; ac_word=$2 2703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2704printf %s "checking for $ac_word... " >&6; } 2705if test ${ac_cv_prog_ac_ct_CC+y} 2706then : 2707 printf %s "(cached) " >&6 2708else $as_nop 2709 if test -n "$ac_ct_CC"; then 2710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2711else 2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2713for as_dir in $PATH 2714do 2715 IFS=$as_save_IFS 2716 case $as_dir in #((( 2717 '') as_dir=./ ;; 2718 */) ;; 2719 *) as_dir=$as_dir/ ;; 2720 esac 2721 for ac_exec_ext in '' $ac_executable_extensions; do 2722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2723 ac_cv_prog_ac_ct_CC="gcc" 2724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2725 break 2 2726 fi 2727done 2728 done 2729IFS=$as_save_IFS 2730 2731fi 2732fi 2733ac_ct_CC=$ac_cv_prog_ac_ct_CC 2734if test -n "$ac_ct_CC"; then 2735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2736printf "%s\n" "$ac_ct_CC" >&6; } 2737else 2738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2739printf "%s\n" "no" >&6; } 2740fi 2741 2742 if test "x$ac_ct_CC" = x; then 2743 CC="" 2744 else 2745 case $cross_compiling:$ac_tool_warned in 2746yes:) 2747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2748printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2749ac_tool_warned=yes ;; 2750esac 2751 CC=$ac_ct_CC 2752 fi 2753else 2754 CC="$ac_cv_prog_CC" 2755fi 2756 2757if test -z "$CC"; then 2758 if test -n "$ac_tool_prefix"; then 2759 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2760set dummy ${ac_tool_prefix}cc; ac_word=$2 2761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2762printf %s "checking for $ac_word... " >&6; } 2763if test ${ac_cv_prog_CC+y} 2764then : 2765 printf %s "(cached) " >&6 2766else $as_nop 2767 if test -n "$CC"; then 2768 ac_cv_prog_CC="$CC" # Let the user override the test. 2769else 2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2771for as_dir in $PATH 2772do 2773 IFS=$as_save_IFS 2774 case $as_dir in #((( 2775 '') as_dir=./ ;; 2776 */) ;; 2777 *) as_dir=$as_dir/ ;; 2778 esac 2779 for ac_exec_ext in '' $ac_executable_extensions; do 2780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2781 ac_cv_prog_CC="${ac_tool_prefix}cc" 2782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2783 break 2 2784 fi 2785done 2786 done 2787IFS=$as_save_IFS 2788 2789fi 2790fi 2791CC=$ac_cv_prog_CC 2792if test -n "$CC"; then 2793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2794printf "%s\n" "$CC" >&6; } 2795else 2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2797printf "%s\n" "no" >&6; } 2798fi 2799 2800 2801 fi 2802fi 2803if test -z "$CC"; then 2804 # Extract the first word of "cc", so it can be a program name with args. 2805set dummy cc; ac_word=$2 2806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2807printf %s "checking for $ac_word... " >&6; } 2808if test ${ac_cv_prog_CC+y} 2809then : 2810 printf %s "(cached) " >&6 2811else $as_nop 2812 if test -n "$CC"; then 2813 ac_cv_prog_CC="$CC" # Let the user override the test. 2814else 2815 ac_prog_rejected=no 2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2817for as_dir in $PATH 2818do 2819 IFS=$as_save_IFS 2820 case $as_dir in #((( 2821 '') as_dir=./ ;; 2822 */) ;; 2823 *) as_dir=$as_dir/ ;; 2824 esac 2825 for ac_exec_ext in '' $ac_executable_extensions; do 2826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2827 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2828 ac_prog_rejected=yes 2829 continue 2830 fi 2831 ac_cv_prog_CC="cc" 2832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2833 break 2 2834 fi 2835done 2836 done 2837IFS=$as_save_IFS 2838 2839if test $ac_prog_rejected = yes; then 2840 # We found a bogon in the path, so make sure we never use it. 2841 set dummy $ac_cv_prog_CC 2842 shift 2843 if test $# != 0; then 2844 # We chose a different compiler from the bogus one. 2845 # However, it has the same basename, so the bogon will be chosen 2846 # first if we set CC to just the basename; use the full file name. 2847 shift 2848 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2849 fi 2850fi 2851fi 2852fi 2853CC=$ac_cv_prog_CC 2854if test -n "$CC"; then 2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2856printf "%s\n" "$CC" >&6; } 2857else 2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2859printf "%s\n" "no" >&6; } 2860fi 2861 2862 2863fi 2864if test -z "$CC"; then 2865 if test -n "$ac_tool_prefix"; then 2866 for ac_prog in cl.exe 2867 do 2868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2869set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2871printf %s "checking for $ac_word... " >&6; } 2872if test ${ac_cv_prog_CC+y} 2873then : 2874 printf %s "(cached) " >&6 2875else $as_nop 2876 if test -n "$CC"; then 2877 ac_cv_prog_CC="$CC" # Let the user override the test. 2878else 2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2880for as_dir in $PATH 2881do 2882 IFS=$as_save_IFS 2883 case $as_dir in #((( 2884 '') as_dir=./ ;; 2885 */) ;; 2886 *) as_dir=$as_dir/ ;; 2887 esac 2888 for ac_exec_ext in '' $ac_executable_extensions; do 2889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2890 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2892 break 2 2893 fi 2894done 2895 done 2896IFS=$as_save_IFS 2897 2898fi 2899fi 2900CC=$ac_cv_prog_CC 2901if test -n "$CC"; then 2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2903printf "%s\n" "$CC" >&6; } 2904else 2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2906printf "%s\n" "no" >&6; } 2907fi 2908 2909 2910 test -n "$CC" && break 2911 done 2912fi 2913if test -z "$CC"; then 2914 ac_ct_CC=$CC 2915 for ac_prog in cl.exe 2916do 2917 # Extract the first word of "$ac_prog", so it can be a program name with args. 2918set dummy $ac_prog; ac_word=$2 2919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2920printf %s "checking for $ac_word... " >&6; } 2921if test ${ac_cv_prog_ac_ct_CC+y} 2922then : 2923 printf %s "(cached) " >&6 2924else $as_nop 2925 if test -n "$ac_ct_CC"; then 2926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2927else 2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2929for as_dir in $PATH 2930do 2931 IFS=$as_save_IFS 2932 case $as_dir in #((( 2933 '') as_dir=./ ;; 2934 */) ;; 2935 *) as_dir=$as_dir/ ;; 2936 esac 2937 for ac_exec_ext in '' $ac_executable_extensions; do 2938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2939 ac_cv_prog_ac_ct_CC="$ac_prog" 2940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2941 break 2 2942 fi 2943done 2944 done 2945IFS=$as_save_IFS 2946 2947fi 2948fi 2949ac_ct_CC=$ac_cv_prog_ac_ct_CC 2950if test -n "$ac_ct_CC"; then 2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2952printf "%s\n" "$ac_ct_CC" >&6; } 2953else 2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2955printf "%s\n" "no" >&6; } 2956fi 2957 2958 2959 test -n "$ac_ct_CC" && break 2960done 2961 2962 if test "x$ac_ct_CC" = x; then 2963 CC="" 2964 else 2965 case $cross_compiling:$ac_tool_warned in 2966yes:) 2967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2968printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2969ac_tool_warned=yes ;; 2970esac 2971 CC=$ac_ct_CC 2972 fi 2973fi 2974 2975fi 2976if test -z "$CC"; then 2977 if test -n "$ac_tool_prefix"; then 2978 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2979set dummy ${ac_tool_prefix}clang; ac_word=$2 2980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2981printf %s "checking for $ac_word... " >&6; } 2982if test ${ac_cv_prog_CC+y} 2983then : 2984 printf %s "(cached) " >&6 2985else $as_nop 2986 if test -n "$CC"; then 2987 ac_cv_prog_CC="$CC" # Let the user override the test. 2988else 2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2990for as_dir in $PATH 2991do 2992 IFS=$as_save_IFS 2993 case $as_dir in #((( 2994 '') as_dir=./ ;; 2995 */) ;; 2996 *) as_dir=$as_dir/ ;; 2997 esac 2998 for ac_exec_ext in '' $ac_executable_extensions; do 2999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3000 ac_cv_prog_CC="${ac_tool_prefix}clang" 3001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3002 break 2 3003 fi 3004done 3005 done 3006IFS=$as_save_IFS 3007 3008fi 3009fi 3010CC=$ac_cv_prog_CC 3011if test -n "$CC"; then 3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3013printf "%s\n" "$CC" >&6; } 3014else 3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3016printf "%s\n" "no" >&6; } 3017fi 3018 3019 3020fi 3021if test -z "$ac_cv_prog_CC"; then 3022 ac_ct_CC=$CC 3023 # Extract the first word of "clang", so it can be a program name with args. 3024set dummy clang; ac_word=$2 3025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3026printf %s "checking for $ac_word... " >&6; } 3027if test ${ac_cv_prog_ac_ct_CC+y} 3028then : 3029 printf %s "(cached) " >&6 3030else $as_nop 3031 if test -n "$ac_ct_CC"; then 3032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3033else 3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3035for as_dir in $PATH 3036do 3037 IFS=$as_save_IFS 3038 case $as_dir in #((( 3039 '') as_dir=./ ;; 3040 */) ;; 3041 *) as_dir=$as_dir/ ;; 3042 esac 3043 for ac_exec_ext in '' $ac_executable_extensions; do 3044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3045 ac_cv_prog_ac_ct_CC="clang" 3046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3047 break 2 3048 fi 3049done 3050 done 3051IFS=$as_save_IFS 3052 3053fi 3054fi 3055ac_ct_CC=$ac_cv_prog_ac_ct_CC 3056if test -n "$ac_ct_CC"; then 3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3058printf "%s\n" "$ac_ct_CC" >&6; } 3059else 3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3061printf "%s\n" "no" >&6; } 3062fi 3063 3064 if test "x$ac_ct_CC" = x; then 3065 CC="" 3066 else 3067 case $cross_compiling:$ac_tool_warned in 3068yes:) 3069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3070printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3071ac_tool_warned=yes ;; 3072esac 3073 CC=$ac_ct_CC 3074 fi 3075else 3076 CC="$ac_cv_prog_CC" 3077fi 3078 3079fi 3080 3081 3082test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3083printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3084as_fn_error $? "no acceptable C compiler found in \$PATH 3085See \`config.log' for more details" "$LINENO" 5; } 3086 3087# Provide some information about the compiler. 3088printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3089set X $ac_compile 3090ac_compiler=$2 3091for ac_option in --version -v -V -qversion -version; do 3092 { { ac_try="$ac_compiler $ac_option >&5" 3093case "(($ac_try" in 3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3095 *) ac_try_echo=$ac_try;; 3096esac 3097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3098printf "%s\n" "$ac_try_echo"; } >&5 3099 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3100 ac_status=$? 3101 if test -s conftest.err; then 3102 sed '10a\ 3103... rest of stderr output deleted ... 3104 10q' conftest.err >conftest.er1 3105 cat conftest.er1 >&5 3106 fi 3107 rm -f conftest.er1 conftest.err 3108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3109 test $ac_status = 0; } 3110done 3111 3112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3113/* end confdefs.h. */ 3114 3115int 3116main (void) 3117{ 3118 3119 ; 3120 return 0; 3121} 3122_ACEOF 3123ac_clean_files_save=$ac_clean_files 3124ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3125# Try to create an executable without -o first, disregard a.out. 3126# It will help us diagnose broken compilers, and finding out an intuition 3127# of exeext. 3128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3129printf %s "checking whether the C compiler works... " >&6; } 3130ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3131 3132# The possible output files: 3133ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3134 3135ac_rmfiles= 3136for ac_file in $ac_files 3137do 3138 case $ac_file in 3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3140 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3141 esac 3142done 3143rm -f $ac_rmfiles 3144 3145if { { ac_try="$ac_link_default" 3146case "(($ac_try" in 3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3148 *) ac_try_echo=$ac_try;; 3149esac 3150eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3151printf "%s\n" "$ac_try_echo"; } >&5 3152 (eval "$ac_link_default") 2>&5 3153 ac_status=$? 3154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3155 test $ac_status = 0; } 3156then : 3157 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3158# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3159# in a Makefile. We should not override ac_cv_exeext if it was cached, 3160# so that the user can short-circuit this test for compilers unknown to 3161# Autoconf. 3162for ac_file in $ac_files '' 3163do 3164 test -f "$ac_file" || continue 3165 case $ac_file in 3166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3167 ;; 3168 [ab].out ) 3169 # We found the default executable, but exeext='' is most 3170 # certainly right. 3171 break;; 3172 *.* ) 3173 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3174 then :; else 3175 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3176 fi 3177 # We set ac_cv_exeext here because the later test for it is not 3178 # safe: cross compilers may not add the suffix if given an `-o' 3179 # argument, so we may need to know it at that point already. 3180 # Even if this section looks crufty: it has the advantage of 3181 # actually working. 3182 break;; 3183 * ) 3184 break;; 3185 esac 3186done 3187test "$ac_cv_exeext" = no && ac_cv_exeext= 3188 3189else $as_nop 3190 ac_file='' 3191fi 3192if test -z "$ac_file" 3193then : 3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3195printf "%s\n" "no" >&6; } 3196printf "%s\n" "$as_me: failed program was:" >&5 3197sed 's/^/| /' conftest.$ac_ext >&5 3198 3199{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3200printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3201as_fn_error 77 "C compiler cannot create executables 3202See \`config.log' for more details" "$LINENO" 5; } 3203else $as_nop 3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3205printf "%s\n" "yes" >&6; } 3206fi 3207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3208printf %s "checking for C compiler default output file name... " >&6; } 3209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3210printf "%s\n" "$ac_file" >&6; } 3211ac_exeext=$ac_cv_exeext 3212 3213rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3214ac_clean_files=$ac_clean_files_save 3215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3216printf %s "checking for suffix of executables... " >&6; } 3217if { { ac_try="$ac_link" 3218case "(($ac_try" in 3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3220 *) ac_try_echo=$ac_try;; 3221esac 3222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3223printf "%s\n" "$ac_try_echo"; } >&5 3224 (eval "$ac_link") 2>&5 3225 ac_status=$? 3226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3227 test $ac_status = 0; } 3228then : 3229 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3230# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3231# work properly (i.e., refer to `conftest.exe'), while it won't with 3232# `rm'. 3233for ac_file in conftest.exe conftest conftest.*; do 3234 test -f "$ac_file" || continue 3235 case $ac_file in 3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3237 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3238 break;; 3239 * ) break;; 3240 esac 3241done 3242else $as_nop 3243 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3244printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3245as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3246See \`config.log' for more details" "$LINENO" 5; } 3247fi 3248rm -f conftest conftest$ac_cv_exeext 3249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3250printf "%s\n" "$ac_cv_exeext" >&6; } 3251 3252rm -f conftest.$ac_ext 3253EXEEXT=$ac_cv_exeext 3254ac_exeext=$EXEEXT 3255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3256/* end confdefs.h. */ 3257#include <stdio.h> 3258int 3259main (void) 3260{ 3261FILE *f = fopen ("conftest.out", "w"); 3262 return ferror (f) || fclose (f) != 0; 3263 3264 ; 3265 return 0; 3266} 3267_ACEOF 3268ac_clean_files="$ac_clean_files conftest.out" 3269# Check that the compiler produces executables we can run. If not, either 3270# the compiler is broken, or we cross compile. 3271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3272printf %s "checking whether we are cross compiling... " >&6; } 3273if test "$cross_compiling" != yes; then 3274 { { ac_try="$ac_link" 3275case "(($ac_try" in 3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3277 *) ac_try_echo=$ac_try;; 3278esac 3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3280printf "%s\n" "$ac_try_echo"; } >&5 3281 (eval "$ac_link") 2>&5 3282 ac_status=$? 3283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3284 test $ac_status = 0; } 3285 if { ac_try='./conftest$ac_cv_exeext' 3286 { { case "(($ac_try" in 3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3288 *) ac_try_echo=$ac_try;; 3289esac 3290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3291printf "%s\n" "$ac_try_echo"; } >&5 3292 (eval "$ac_try") 2>&5 3293 ac_status=$? 3294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3295 test $ac_status = 0; }; }; then 3296 cross_compiling=no 3297 else 3298 if test "$cross_compiling" = maybe; then 3299 cross_compiling=yes 3300 else 3301 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3302printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3303as_fn_error 77 "cannot run C compiled programs. 3304If you meant to cross compile, use \`--host'. 3305See \`config.log' for more details" "$LINENO" 5; } 3306 fi 3307 fi 3308fi 3309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3310printf "%s\n" "$cross_compiling" >&6; } 3311 3312rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3313ac_clean_files=$ac_clean_files_save 3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3315printf %s "checking for suffix of object files... " >&6; } 3316if test ${ac_cv_objext+y} 3317then : 3318 printf %s "(cached) " >&6 3319else $as_nop 3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3321/* end confdefs.h. */ 3322 3323int 3324main (void) 3325{ 3326 3327 ; 3328 return 0; 3329} 3330_ACEOF 3331rm -f conftest.o conftest.obj 3332if { { ac_try="$ac_compile" 3333case "(($ac_try" in 3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3335 *) ac_try_echo=$ac_try;; 3336esac 3337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3338printf "%s\n" "$ac_try_echo"; } >&5 3339 (eval "$ac_compile") 2>&5 3340 ac_status=$? 3341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3342 test $ac_status = 0; } 3343then : 3344 for ac_file in conftest.o conftest.obj conftest.*; do 3345 test -f "$ac_file" || continue; 3346 case $ac_file in 3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3348 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3349 break;; 3350 esac 3351done 3352else $as_nop 3353 printf "%s\n" "$as_me: failed program was:" >&5 3354sed 's/^/| /' conftest.$ac_ext >&5 3355 3356{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3357printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3358as_fn_error $? "cannot compute suffix of object files: cannot compile 3359See \`config.log' for more details" "$LINENO" 5; } 3360fi 3361rm -f conftest.$ac_cv_objext conftest.$ac_ext 3362fi 3363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3364printf "%s\n" "$ac_cv_objext" >&6; } 3365OBJEXT=$ac_cv_objext 3366ac_objext=$OBJEXT 3367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3368printf %s "checking whether the compiler supports GNU C... " >&6; } 3369if test ${ac_cv_c_compiler_gnu+y} 3370then : 3371 printf %s "(cached) " >&6 3372else $as_nop 3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3374/* end confdefs.h. */ 3375 3376int 3377main (void) 3378{ 3379#ifndef __GNUC__ 3380 choke me 3381#endif 3382 3383 ; 3384 return 0; 3385} 3386_ACEOF 3387if ac_fn_c_try_compile "$LINENO" 3388then : 3389 ac_compiler_gnu=yes 3390else $as_nop 3391 ac_compiler_gnu=no 3392fi 3393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3394ac_cv_c_compiler_gnu=$ac_compiler_gnu 3395 3396fi 3397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3398printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3399ac_compiler_gnu=$ac_cv_c_compiler_gnu 3400 3401if test $ac_compiler_gnu = yes; then 3402 GCC=yes 3403else 3404 GCC= 3405fi 3406ac_test_CFLAGS=${CFLAGS+y} 3407ac_save_CFLAGS=$CFLAGS 3408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3409printf %s "checking whether $CC accepts -g... " >&6; } 3410if test ${ac_cv_prog_cc_g+y} 3411then : 3412 printf %s "(cached) " >&6 3413else $as_nop 3414 ac_save_c_werror_flag=$ac_c_werror_flag 3415 ac_c_werror_flag=yes 3416 ac_cv_prog_cc_g=no 3417 CFLAGS="-g" 3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3419/* end confdefs.h. */ 3420 3421int 3422main (void) 3423{ 3424 3425 ; 3426 return 0; 3427} 3428_ACEOF 3429if ac_fn_c_try_compile "$LINENO" 3430then : 3431 ac_cv_prog_cc_g=yes 3432else $as_nop 3433 CFLAGS="" 3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3435/* end confdefs.h. */ 3436 3437int 3438main (void) 3439{ 3440 3441 ; 3442 return 0; 3443} 3444_ACEOF 3445if ac_fn_c_try_compile "$LINENO" 3446then : 3447 3448else $as_nop 3449 ac_c_werror_flag=$ac_save_c_werror_flag 3450 CFLAGS="-g" 3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3452/* end confdefs.h. */ 3453 3454int 3455main (void) 3456{ 3457 3458 ; 3459 return 0; 3460} 3461_ACEOF 3462if ac_fn_c_try_compile "$LINENO" 3463then : 3464 ac_cv_prog_cc_g=yes 3465fi 3466rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3467fi 3468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3469fi 3470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3471 ac_c_werror_flag=$ac_save_c_werror_flag 3472fi 3473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3474printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3475if test $ac_test_CFLAGS; then 3476 CFLAGS=$ac_save_CFLAGS 3477elif test $ac_cv_prog_cc_g = yes; then 3478 if test "$GCC" = yes; then 3479 CFLAGS="-g -O2" 3480 else 3481 CFLAGS="-g" 3482 fi 3483else 3484 if test "$GCC" = yes; then 3485 CFLAGS="-O2" 3486 else 3487 CFLAGS= 3488 fi 3489fi 3490ac_prog_cc_stdc=no 3491if test x$ac_prog_cc_stdc = xno 3492then : 3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3494printf %s "checking for $CC option to enable C11 features... " >&6; } 3495if test ${ac_cv_prog_cc_c11+y} 3496then : 3497 printf %s "(cached) " >&6 3498else $as_nop 3499 ac_cv_prog_cc_c11=no 3500ac_save_CC=$CC 3501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3502/* end confdefs.h. */ 3503$ac_c_conftest_c11_program 3504_ACEOF 3505for ac_arg in '' -std=gnu11 3506do 3507 CC="$ac_save_CC $ac_arg" 3508 if ac_fn_c_try_compile "$LINENO" 3509then : 3510 ac_cv_prog_cc_c11=$ac_arg 3511fi 3512rm -f core conftest.err conftest.$ac_objext conftest.beam 3513 test "x$ac_cv_prog_cc_c11" != "xno" && break 3514done 3515rm -f conftest.$ac_ext 3516CC=$ac_save_CC 3517fi 3518 3519if test "x$ac_cv_prog_cc_c11" = xno 3520then : 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3522printf "%s\n" "unsupported" >&6; } 3523else $as_nop 3524 if test "x$ac_cv_prog_cc_c11" = x 3525then : 3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3527printf "%s\n" "none needed" >&6; } 3528else $as_nop 3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3530printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3531 CC="$CC $ac_cv_prog_cc_c11" 3532fi 3533 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3534 ac_prog_cc_stdc=c11 3535fi 3536fi 3537if test x$ac_prog_cc_stdc = xno 3538then : 3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3540printf %s "checking for $CC option to enable C99 features... " >&6; } 3541if test ${ac_cv_prog_cc_c99+y} 3542then : 3543 printf %s "(cached) " >&6 3544else $as_nop 3545 ac_cv_prog_cc_c99=no 3546ac_save_CC=$CC 3547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3548/* end confdefs.h. */ 3549$ac_c_conftest_c99_program 3550_ACEOF 3551for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3552do 3553 CC="$ac_save_CC $ac_arg" 3554 if ac_fn_c_try_compile "$LINENO" 3555then : 3556 ac_cv_prog_cc_c99=$ac_arg 3557fi 3558rm -f core conftest.err conftest.$ac_objext conftest.beam 3559 test "x$ac_cv_prog_cc_c99" != "xno" && break 3560done 3561rm -f conftest.$ac_ext 3562CC=$ac_save_CC 3563fi 3564 3565if test "x$ac_cv_prog_cc_c99" = xno 3566then : 3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3568printf "%s\n" "unsupported" >&6; } 3569else $as_nop 3570 if test "x$ac_cv_prog_cc_c99" = x 3571then : 3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3573printf "%s\n" "none needed" >&6; } 3574else $as_nop 3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3576printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3577 CC="$CC $ac_cv_prog_cc_c99" 3578fi 3579 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3580 ac_prog_cc_stdc=c99 3581fi 3582fi 3583if test x$ac_prog_cc_stdc = xno 3584then : 3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3586printf %s "checking for $CC option to enable C89 features... " >&6; } 3587if test ${ac_cv_prog_cc_c89+y} 3588then : 3589 printf %s "(cached) " >&6 3590else $as_nop 3591 ac_cv_prog_cc_c89=no 3592ac_save_CC=$CC 3593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3594/* end confdefs.h. */ 3595$ac_c_conftest_c89_program 3596_ACEOF 3597for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3598do 3599 CC="$ac_save_CC $ac_arg" 3600 if ac_fn_c_try_compile "$LINENO" 3601then : 3602 ac_cv_prog_cc_c89=$ac_arg 3603fi 3604rm -f core conftest.err conftest.$ac_objext conftest.beam 3605 test "x$ac_cv_prog_cc_c89" != "xno" && break 3606done 3607rm -f conftest.$ac_ext 3608CC=$ac_save_CC 3609fi 3610 3611if test "x$ac_cv_prog_cc_c89" = xno 3612then : 3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3614printf "%s\n" "unsupported" >&6; } 3615else $as_nop 3616 if test "x$ac_cv_prog_cc_c89" = x 3617then : 3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3619printf "%s\n" "none needed" >&6; } 3620else $as_nop 3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3622printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3623 CC="$CC $ac_cv_prog_cc_c89" 3624fi 3625 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3626 ac_prog_cc_stdc=c89 3627fi 3628fi 3629 3630ac_ext=c 3631ac_cpp='$CPP $CPPFLAGS' 3632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3634ac_compiler_gnu=$ac_cv_c_compiler_gnu 3635 3636 3637 ac_ext=c 3638ac_cpp='$CPP $CPPFLAGS' 3639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3641ac_compiler_gnu=$ac_cv_c_compiler_gnu 3642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3643printf %s "checking whether $CC understands -c and -o together... " >&6; } 3644if test ${am_cv_prog_cc_c_o+y} 3645then : 3646 printf %s "(cached) " >&6 3647else $as_nop 3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3649/* end confdefs.h. */ 3650 3651int 3652main (void) 3653{ 3654 3655 ; 3656 return 0; 3657} 3658_ACEOF 3659 # Make sure it works both with $CC and with simple cc. 3660 # Following AC_PROG_CC_C_O, we do the test twice because some 3661 # compilers refuse to overwrite an existing .o file with -o, 3662 # though they will create one. 3663 am_cv_prog_cc_c_o=yes 3664 for am_i in 1 2; do 3665 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3666 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3667 ac_status=$? 3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3669 (exit $ac_status); } \ 3670 && test -f conftest2.$ac_objext; then 3671 : OK 3672 else 3673 am_cv_prog_cc_c_o=no 3674 break 3675 fi 3676 done 3677 rm -f core conftest* 3678 unset am_i 3679fi 3680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3681printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3682if test "$am_cv_prog_cc_c_o" != yes; then 3683 # Losing compiler, so override with the script. 3684 # FIXME: It is wrong to rewrite CC. 3685 # But if we don't then we get into trouble of one sort or another. 3686 # A longer-term fix would be to have automake use am__CC in this case, 3687 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3688 CC="$am_aux_dir/compile $CC" 3689fi 3690ac_ext=c 3691ac_cpp='$CPP $CPPFLAGS' 3692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3694ac_compiler_gnu=$ac_cv_c_compiler_gnu 3695 3696 3697 3698ac_header= ac_cache= 3699for ac_item in $ac_header_c_list 3700do 3701 if test $ac_cache; then 3702 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3703 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3704 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3705 fi 3706 ac_header= ac_cache= 3707 elif test $ac_header; then 3708 ac_cache=$ac_item 3709 else 3710 ac_header=$ac_item 3711 fi 3712done 3713 3714 3715 3716 3717 3718 3719 3720 3721if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3722then : 3723 3724printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3725 3726fi 3727 3728 3729 3730 3731 3732 3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3734printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3735if test ${ac_cv_safe_to_define___extensions__+y} 3736then : 3737 printf %s "(cached) " >&6 3738else $as_nop 3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3740/* end confdefs.h. */ 3741 3742# define __EXTENSIONS__ 1 3743 $ac_includes_default 3744int 3745main (void) 3746{ 3747 3748 ; 3749 return 0; 3750} 3751_ACEOF 3752if ac_fn_c_try_compile "$LINENO" 3753then : 3754 ac_cv_safe_to_define___extensions__=yes 3755else $as_nop 3756 ac_cv_safe_to_define___extensions__=no 3757fi 3758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3759fi 3760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3761printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3762 3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3764printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3765if test ${ac_cv_should_define__xopen_source+y} 3766then : 3767 printf %s "(cached) " >&6 3768else $as_nop 3769 ac_cv_should_define__xopen_source=no 3770 if test $ac_cv_header_wchar_h = yes 3771then : 3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3773/* end confdefs.h. */ 3774 3775 #include <wchar.h> 3776 mbstate_t x; 3777int 3778main (void) 3779{ 3780 3781 ; 3782 return 0; 3783} 3784_ACEOF 3785if ac_fn_c_try_compile "$LINENO" 3786then : 3787 3788else $as_nop 3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3790/* end confdefs.h. */ 3791 3792 #define _XOPEN_SOURCE 500 3793 #include <wchar.h> 3794 mbstate_t x; 3795int 3796main (void) 3797{ 3798 3799 ; 3800 return 0; 3801} 3802_ACEOF 3803if ac_fn_c_try_compile "$LINENO" 3804then : 3805 ac_cv_should_define__xopen_source=yes 3806fi 3807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3808fi 3809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3810fi 3811fi 3812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3813printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3814 3815 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3816 3817 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3818 3819 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3820 3821 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3822 3823 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3824 3825 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3826 3827 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3828 3829 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3830 3831 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3832 3833 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3834 3835 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3836 3837 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3838 3839 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3840 3841 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3842 3843 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3844 3845 if test $ac_cv_header_minix_config_h = yes 3846then : 3847 MINIX=yes 3848 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3849 3850 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3851 3852 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3853 3854else $as_nop 3855 MINIX= 3856fi 3857 if test $ac_cv_safe_to_define___extensions__ = yes 3858then : 3859 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3860 3861fi 3862 if test $ac_cv_should_define__xopen_source = yes 3863then : 3864 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3865 3866fi 3867 3868 3869# Initialize Automake 3870am__api_version='1.16' 3871 3872 3873 # Find a good install program. We prefer a C program (faster), 3874# so one script is as good as another. But avoid the broken or 3875# incompatible versions: 3876# SysV /etc/install, /usr/sbin/install 3877# SunOS /usr/etc/install 3878# IRIX /sbin/install 3879# AIX /bin/install 3880# AmigaOS /C/install, which installs bootblocks on floppy discs 3881# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3882# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3883# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3884# OS/2's system install, which has a completely different semantic 3885# ./install, which can be erroneously created by make from ./install.sh. 3886# Reject install programs that cannot install multiple files. 3887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3888printf %s "checking for a BSD-compatible install... " >&6; } 3889if test -z "$INSTALL"; then 3890if test ${ac_cv_path_install+y} 3891then : 3892 printf %s "(cached) " >&6 3893else $as_nop 3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3895for as_dir in $PATH 3896do 3897 IFS=$as_save_IFS 3898 case $as_dir in #((( 3899 '') as_dir=./ ;; 3900 */) ;; 3901 *) as_dir=$as_dir/ ;; 3902 esac 3903 # Account for fact that we put trailing slashes in our PATH walk. 3904case $as_dir in #(( 3905 ./ | /[cC]/* | \ 3906 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3907 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3908 /usr/ucb/* ) ;; 3909 *) 3910 # OSF1 and SCO ODT 3.0 have their own names for install. 3911 # Don't use installbsd from OSF since it installs stuff as root 3912 # by default. 3913 for ac_prog in ginstall scoinst install; do 3914 for ac_exec_ext in '' $ac_executable_extensions; do 3915 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3916 if test $ac_prog = install && 3917 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3918 # AIX install. It has an incompatible calling convention. 3919 : 3920 elif test $ac_prog = install && 3921 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3922 # program-specific install script used by HP pwplus--don't use. 3923 : 3924 else 3925 rm -rf conftest.one conftest.two conftest.dir 3926 echo one > conftest.one 3927 echo two > conftest.two 3928 mkdir conftest.dir 3929 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3930 test -s conftest.one && test -s conftest.two && 3931 test -s conftest.dir/conftest.one && 3932 test -s conftest.dir/conftest.two 3933 then 3934 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3935 break 3 3936 fi 3937 fi 3938 fi 3939 done 3940 done 3941 ;; 3942esac 3943 3944 done 3945IFS=$as_save_IFS 3946 3947rm -rf conftest.one conftest.two conftest.dir 3948 3949fi 3950 if test ${ac_cv_path_install+y}; then 3951 INSTALL=$ac_cv_path_install 3952 else 3953 # As a last resort, use the slow shell script. Don't cache a 3954 # value for INSTALL within a source directory, because that will 3955 # break other packages using the cache if that directory is 3956 # removed, or if the value is a relative name. 3957 INSTALL=$ac_install_sh 3958 fi 3959fi 3960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3961printf "%s\n" "$INSTALL" >&6; } 3962 3963# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3964# It thinks the first close brace ends the variable substitution. 3965test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3966 3967test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3968 3969test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3970 3971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3972printf %s "checking whether build environment is sane... " >&6; } 3973# Reject unsafe characters in $srcdir or the absolute working directory 3974# name. Accept space and tab only in the latter. 3975am_lf=' 3976' 3977case `pwd` in 3978 *[\\\"\#\$\&\'\`$am_lf]*) 3979 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3980esac 3981case $srcdir in 3982 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3983 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3984esac 3985 3986# Do 'set' in a subshell so we don't clobber the current shell's 3987# arguments. Must try -L first in case configure is actually a 3988# symlink; some systems play weird games with the mod time of symlinks 3989# (eg FreeBSD returns the mod time of the symlink's containing 3990# directory). 3991if ( 3992 am_has_slept=no 3993 for am_try in 1 2; do 3994 echo "timestamp, slept: $am_has_slept" > conftest.file 3995 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3996 if test "$*" = "X"; then 3997 # -L didn't work. 3998 set X `ls -t "$srcdir/configure" conftest.file` 3999 fi 4000 if test "$*" != "X $srcdir/configure conftest.file" \ 4001 && test "$*" != "X conftest.file $srcdir/configure"; then 4002 4003 # If neither matched, then we have a broken ls. This can happen 4004 # if, for instance, CONFIG_SHELL is bash and it inherits a 4005 # broken ls alias from the environment. This has actually 4006 # happened. Such a system could not be considered "sane". 4007 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4008 alias in your environment" "$LINENO" 5 4009 fi 4010 if test "$2" = conftest.file || test $am_try -eq 2; then 4011 break 4012 fi 4013 # Just in case. 4014 sleep 1 4015 am_has_slept=yes 4016 done 4017 test "$2" = conftest.file 4018 ) 4019then 4020 # Ok. 4021 : 4022else 4023 as_fn_error $? "newly created file is older than distributed files! 4024Check your system clock" "$LINENO" 5 4025fi 4026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4027printf "%s\n" "yes" >&6; } 4028# If we didn't sleep, we still need to ensure time stamps of config.status and 4029# generated files are strictly newer. 4030am_sleep_pid= 4031if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4032 ( sleep 1 ) & 4033 am_sleep_pid=$! 4034fi 4035 4036rm -f conftest.file 4037 4038test "$program_prefix" != NONE && 4039 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4040# Use a double $ so make ignores it. 4041test "$program_suffix" != NONE && 4042 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4043# Double any \ or $. 4044# By default was `s,x,x', remove it if useless. 4045ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4046program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4047 4048 4049 if test x"${MISSING+set}" != xset; then 4050 MISSING="\${SHELL} '$am_aux_dir/missing'" 4051fi 4052# Use eval to expand $SHELL 4053if eval "$MISSING --is-lightweight"; then 4054 am_missing_run="$MISSING " 4055else 4056 am_missing_run= 4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4058printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4059fi 4060 4061if test x"${install_sh+set}" != xset; then 4062 case $am_aux_dir in 4063 *\ * | *\ *) 4064 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4065 *) 4066 install_sh="\${SHELL} $am_aux_dir/install-sh" 4067 esac 4068fi 4069 4070# Installed binaries are usually stripped using 'strip' when the user 4071# run "make install-strip". However 'strip' might not be the right 4072# tool to use in cross-compilation environments, therefore Automake 4073# will honor the 'STRIP' environment variable to overrule this program. 4074if test "$cross_compiling" != no; then 4075 if test -n "$ac_tool_prefix"; then 4076 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4077set dummy ${ac_tool_prefix}strip; ac_word=$2 4078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4079printf %s "checking for $ac_word... " >&6; } 4080if test ${ac_cv_prog_STRIP+y} 4081then : 4082 printf %s "(cached) " >&6 4083else $as_nop 4084 if test -n "$STRIP"; then 4085 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4086else 4087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4088for as_dir in $PATH 4089do 4090 IFS=$as_save_IFS 4091 case $as_dir in #((( 4092 '') as_dir=./ ;; 4093 */) ;; 4094 *) as_dir=$as_dir/ ;; 4095 esac 4096 for ac_exec_ext in '' $ac_executable_extensions; do 4097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4098 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4100 break 2 4101 fi 4102done 4103 done 4104IFS=$as_save_IFS 4105 4106fi 4107fi 4108STRIP=$ac_cv_prog_STRIP 4109if test -n "$STRIP"; then 4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4111printf "%s\n" "$STRIP" >&6; } 4112else 4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4114printf "%s\n" "no" >&6; } 4115fi 4116 4117 4118fi 4119if test -z "$ac_cv_prog_STRIP"; then 4120 ac_ct_STRIP=$STRIP 4121 # Extract the first word of "strip", so it can be a program name with args. 4122set dummy strip; ac_word=$2 4123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4124printf %s "checking for $ac_word... " >&6; } 4125if test ${ac_cv_prog_ac_ct_STRIP+y} 4126then : 4127 printf %s "(cached) " >&6 4128else $as_nop 4129 if test -n "$ac_ct_STRIP"; then 4130 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4131else 4132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4133for as_dir in $PATH 4134do 4135 IFS=$as_save_IFS 4136 case $as_dir in #((( 4137 '') as_dir=./ ;; 4138 */) ;; 4139 *) as_dir=$as_dir/ ;; 4140 esac 4141 for ac_exec_ext in '' $ac_executable_extensions; do 4142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4143 ac_cv_prog_ac_ct_STRIP="strip" 4144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4145 break 2 4146 fi 4147done 4148 done 4149IFS=$as_save_IFS 4150 4151fi 4152fi 4153ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4154if test -n "$ac_ct_STRIP"; then 4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4156printf "%s\n" "$ac_ct_STRIP" >&6; } 4157else 4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4159printf "%s\n" "no" >&6; } 4160fi 4161 4162 if test "x$ac_ct_STRIP" = x; then 4163 STRIP=":" 4164 else 4165 case $cross_compiling:$ac_tool_warned in 4166yes:) 4167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4168printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4169ac_tool_warned=yes ;; 4170esac 4171 STRIP=$ac_ct_STRIP 4172 fi 4173else 4174 STRIP="$ac_cv_prog_STRIP" 4175fi 4176 4177fi 4178INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4179 4180 4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4182printf %s "checking for a race-free mkdir -p... " >&6; } 4183if test -z "$MKDIR_P"; then 4184 if test ${ac_cv_path_mkdir+y} 4185then : 4186 printf %s "(cached) " >&6 4187else $as_nop 4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4189for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4190do 4191 IFS=$as_save_IFS 4192 case $as_dir in #((( 4193 '') as_dir=./ ;; 4194 */) ;; 4195 *) as_dir=$as_dir/ ;; 4196 esac 4197 for ac_prog in mkdir gmkdir; do 4198 for ac_exec_ext in '' $ac_executable_extensions; do 4199 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4200 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4201 'mkdir ('*'coreutils) '* | \ 4202 'BusyBox '* | \ 4203 'mkdir (fileutils) '4.1*) 4204 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4205 break 3;; 4206 esac 4207 done 4208 done 4209 done 4210IFS=$as_save_IFS 4211 4212fi 4213 4214 test -d ./--version && rmdir ./--version 4215 if test ${ac_cv_path_mkdir+y}; then 4216 MKDIR_P="$ac_cv_path_mkdir -p" 4217 else 4218 # As a last resort, use the slow shell script. Don't cache a 4219 # value for MKDIR_P within a source directory, because that will 4220 # break other packages using the cache if that directory is 4221 # removed, or if the value is a relative name. 4222 MKDIR_P="$ac_install_sh -d" 4223 fi 4224fi 4225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4226printf "%s\n" "$MKDIR_P" >&6; } 4227 4228for ac_prog in gawk mawk nawk awk 4229do 4230 # Extract the first word of "$ac_prog", so it can be a program name with args. 4231set dummy $ac_prog; ac_word=$2 4232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4233printf %s "checking for $ac_word... " >&6; } 4234if test ${ac_cv_prog_AWK+y} 4235then : 4236 printf %s "(cached) " >&6 4237else $as_nop 4238 if test -n "$AWK"; then 4239 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4240else 4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4242for as_dir in $PATH 4243do 4244 IFS=$as_save_IFS 4245 case $as_dir in #((( 4246 '') as_dir=./ ;; 4247 */) ;; 4248 *) as_dir=$as_dir/ ;; 4249 esac 4250 for ac_exec_ext in '' $ac_executable_extensions; do 4251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4252 ac_cv_prog_AWK="$ac_prog" 4253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4254 break 2 4255 fi 4256done 4257 done 4258IFS=$as_save_IFS 4259 4260fi 4261fi 4262AWK=$ac_cv_prog_AWK 4263if test -n "$AWK"; then 4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4265printf "%s\n" "$AWK" >&6; } 4266else 4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4268printf "%s\n" "no" >&6; } 4269fi 4270 4271 4272 test -n "$AWK" && break 4273done 4274 4275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4276printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4277set x ${MAKE-make} 4278ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4279if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4280then : 4281 printf %s "(cached) " >&6 4282else $as_nop 4283 cat >conftest.make <<\_ACEOF 4284SHELL = /bin/sh 4285all: 4286 @echo '@@@%%%=$(MAKE)=@@@%%%' 4287_ACEOF 4288# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4289case `${MAKE-make} -f conftest.make 2>/dev/null` in 4290 *@@@%%%=?*=@@@%%%*) 4291 eval ac_cv_prog_make_${ac_make}_set=yes;; 4292 *) 4293 eval ac_cv_prog_make_${ac_make}_set=no;; 4294esac 4295rm -f conftest.make 4296fi 4297if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4299printf "%s\n" "yes" >&6; } 4300 SET_MAKE= 4301else 4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4303printf "%s\n" "no" >&6; } 4304 SET_MAKE="MAKE=${MAKE-make}" 4305fi 4306 4307rm -rf .tst 2>/dev/null 4308mkdir .tst 2>/dev/null 4309if test -d .tst; then 4310 am__leading_dot=. 4311else 4312 am__leading_dot=_ 4313fi 4314rmdir .tst 2>/dev/null 4315 4316DEPDIR="${am__leading_dot}deps" 4317 4318ac_config_commands="$ac_config_commands depfiles" 4319 4320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4321printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4322cat > confinc.mk << 'END' 4323am__doit: 4324 @echo this is the am__doit target >confinc.out 4325.PHONY: am__doit 4326END 4327am__include="#" 4328am__quote= 4329# BSD make does it like this. 4330echo '.include "confinc.mk" # ignored' > confmf.BSD 4331# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4332echo 'include confinc.mk # ignored' > confmf.GNU 4333_am_result=no 4334for s in GNU BSD; do 4335 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4336 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4337 ac_status=$? 4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4339 (exit $ac_status); } 4340 case $?:`cat confinc.out 2>/dev/null` in #( 4341 '0:this is the am__doit target') : 4342 case $s in #( 4343 BSD) : 4344 am__include='.include' am__quote='"' ;; #( 4345 *) : 4346 am__include='include' am__quote='' ;; 4347esac ;; #( 4348 *) : 4349 ;; 4350esac 4351 if test "$am__include" != "#"; then 4352 _am_result="yes ($s style)" 4353 break 4354 fi 4355done 4356rm -f confinc.* confmf.* 4357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4358printf "%s\n" "${_am_result}" >&6; } 4359 4360# Check whether --enable-dependency-tracking was given. 4361if test ${enable_dependency_tracking+y} 4362then : 4363 enableval=$enable_dependency_tracking; 4364fi 4365 4366if test "x$enable_dependency_tracking" != xno; then 4367 am_depcomp="$ac_aux_dir/depcomp" 4368 AMDEPBACKSLASH='\' 4369 am__nodep='_no' 4370fi 4371 if test "x$enable_dependency_tracking" != xno; then 4372 AMDEP_TRUE= 4373 AMDEP_FALSE='#' 4374else 4375 AMDEP_TRUE='#' 4376 AMDEP_FALSE= 4377fi 4378 4379 4380# Check whether --enable-silent-rules was given. 4381if test ${enable_silent_rules+y} 4382then : 4383 enableval=$enable_silent_rules; 4384fi 4385 4386case $enable_silent_rules in # ((( 4387 yes) AM_DEFAULT_VERBOSITY=0;; 4388 no) AM_DEFAULT_VERBOSITY=1;; 4389 *) AM_DEFAULT_VERBOSITY=1;; 4390esac 4391am_make=${MAKE-make} 4392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4393printf %s "checking whether $am_make supports nested variables... " >&6; } 4394if test ${am_cv_make_support_nested_variables+y} 4395then : 4396 printf %s "(cached) " >&6 4397else $as_nop 4398 if printf "%s\n" 'TRUE=$(BAR$(V)) 4399BAR0=false 4400BAR1=true 4401V=1 4402am__doit: 4403 @$(TRUE) 4404.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4405 am_cv_make_support_nested_variables=yes 4406else 4407 am_cv_make_support_nested_variables=no 4408fi 4409fi 4410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4411printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4412if test $am_cv_make_support_nested_variables = yes; then 4413 AM_V='$(V)' 4414 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4415else 4416 AM_V=$AM_DEFAULT_VERBOSITY 4417 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4418fi 4419AM_BACKSLASH='\' 4420 4421if test "`cd $srcdir && pwd`" != "`pwd`"; then 4422 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4423 # is not polluted with repeated "-I." 4424 am__isrc=' -I$(srcdir)' 4425 # test to see if srcdir already configured 4426 if test -f $srcdir/config.status; then 4427 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4428 fi 4429fi 4430 4431# test whether we have cygpath 4432if test -z "$CYGPATH_W"; then 4433 if (cygpath --version) >/dev/null 2>/dev/null; then 4434 CYGPATH_W='cygpath -w' 4435 else 4436 CYGPATH_W=echo 4437 fi 4438fi 4439 4440 4441# Define the identity of the package. 4442 PACKAGE='libXcursor' 4443 VERSION='1.2.3' 4444 4445 4446printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4447 4448 4449printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4450 4451# Some tools Automake needs. 4452 4453ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4454 4455 4456AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4457 4458 4459AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4460 4461 4462AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4463 4464 4465MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4466 4467# For better backward compatibility. To be removed once Automake 1.9.x 4468# dies out for good. For more background, see: 4469# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4470# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4471mkdir_p='$(MKDIR_P)' 4472 4473# We need awk for the "check" target (and possibly the TAP driver). The 4474# system "awk" is bad on some platforms. 4475# Always define AMTAR for backward compatibility. Yes, it's still used 4476# in the wild :-( We should find a proper way to deprecate it ... 4477AMTAR='$${TAR-tar}' 4478 4479 4480# We'll loop over all known methods to create a tar archive until one works. 4481_am_tools='gnutar pax cpio none' 4482 4483am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4484 4485 4486 4487 4488 4489depcc="$CC" am_compiler_list= 4490 4491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4492printf %s "checking dependency style of $depcc... " >&6; } 4493if test ${am_cv_CC_dependencies_compiler_type+y} 4494then : 4495 printf %s "(cached) " >&6 4496else $as_nop 4497 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4498 # We make a subdir and do the tests there. Otherwise we can end up 4499 # making bogus files that we don't know about and never remove. For 4500 # instance it was reported that on HP-UX the gcc test will end up 4501 # making a dummy file named 'D' -- because '-MD' means "put the output 4502 # in D". 4503 rm -rf conftest.dir 4504 mkdir conftest.dir 4505 # Copy depcomp to subdir because otherwise we won't find it if we're 4506 # using a relative directory. 4507 cp "$am_depcomp" conftest.dir 4508 cd conftest.dir 4509 # We will build objects and dependencies in a subdirectory because 4510 # it helps to detect inapplicable dependency modes. For instance 4511 # both Tru64's cc and ICC support -MD to output dependencies as a 4512 # side effect of compilation, but ICC will put the dependencies in 4513 # the current directory while Tru64 will put them in the object 4514 # directory. 4515 mkdir sub 4516 4517 am_cv_CC_dependencies_compiler_type=none 4518 if test "$am_compiler_list" = ""; then 4519 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4520 fi 4521 am__universal=false 4522 case " $depcc " in #( 4523 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4524 esac 4525 4526 for depmode in $am_compiler_list; do 4527 # Setup a source with many dependencies, because some compilers 4528 # like to wrap large dependency lists on column 80 (with \), and 4529 # we should not choose a depcomp mode which is confused by this. 4530 # 4531 # We need to recreate these files for each test, as the compiler may 4532 # overwrite some of them when testing with obscure command lines. 4533 # This happens at least with the AIX C compiler. 4534 : > sub/conftest.c 4535 for i in 1 2 3 4 5 6; do 4536 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4537 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4538 # Solaris 10 /bin/sh. 4539 echo '/* dummy */' > sub/conftst$i.h 4540 done 4541 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4542 4543 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4544 # mode. It turns out that the SunPro C++ compiler does not properly 4545 # handle '-M -o', and we need to detect this. Also, some Intel 4546 # versions had trouble with output in subdirs. 4547 am__obj=sub/conftest.${OBJEXT-o} 4548 am__minus_obj="-o $am__obj" 4549 case $depmode in 4550 gcc) 4551 # This depmode causes a compiler race in universal mode. 4552 test "$am__universal" = false || continue 4553 ;; 4554 nosideeffect) 4555 # After this tag, mechanisms are not by side-effect, so they'll 4556 # only be used when explicitly requested. 4557 if test "x$enable_dependency_tracking" = xyes; then 4558 continue 4559 else 4560 break 4561 fi 4562 ;; 4563 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4564 # This compiler won't grok '-c -o', but also, the minuso test has 4565 # not run yet. These depmodes are late enough in the game, and 4566 # so weak that their functioning should not be impacted. 4567 am__obj=conftest.${OBJEXT-o} 4568 am__minus_obj= 4569 ;; 4570 none) break ;; 4571 esac 4572 if depmode=$depmode \ 4573 source=sub/conftest.c object=$am__obj \ 4574 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4575 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4576 >/dev/null 2>conftest.err && 4577 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4578 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4579 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4580 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4581 # icc doesn't choke on unknown options, it will just issue warnings 4582 # or remarks (even with -Werror). So we grep stderr for any message 4583 # that says an option was ignored or not supported. 4584 # When given -MP, icc 7.0 and 7.1 complain thusly: 4585 # icc: Command line warning: ignoring option '-M'; no argument required 4586 # The diagnosis changed in icc 8.0: 4587 # icc: Command line remark: option '-MP' not supported 4588 if (grep 'ignoring option' conftest.err || 4589 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4590 am_cv_CC_dependencies_compiler_type=$depmode 4591 break 4592 fi 4593 fi 4594 done 4595 4596 cd .. 4597 rm -rf conftest.dir 4598else 4599 am_cv_CC_dependencies_compiler_type=none 4600fi 4601 4602fi 4603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4604printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4605CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4606 4607 if 4608 test "x$enable_dependency_tracking" != xno \ 4609 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4610 am__fastdepCC_TRUE= 4611 am__fastdepCC_FALSE='#' 4612else 4613 am__fastdepCC_TRUE='#' 4614 am__fastdepCC_FALSE= 4615fi 4616 4617 4618# Variables for tags utilities; see am/tags.am 4619if test -z "$CTAGS"; then 4620 CTAGS=ctags 4621fi 4622 4623if test -z "$ETAGS"; then 4624 ETAGS=etags 4625fi 4626 4627if test -z "$CSCOPE"; then 4628 CSCOPE=cscope 4629fi 4630 4631 4632 4633# POSIX will say in a future version that running "rm -f" with no argument 4634# is OK; and we want to be able to make that assumption in our Makefile 4635# recipes. So use an aggressive probe to check that the usage we want is 4636# actually supported "in the wild" to an acceptable degree. 4637# See automake bug#10828. 4638# To make any issue more visible, cause the running configure to be aborted 4639# by default if the 'rm' program in use doesn't match our expectations; the 4640# user can still override this though. 4641if rm -f && rm -fr && rm -rf; then : OK; else 4642 cat >&2 <<'END' 4643Oops! 4644 4645Your 'rm' program seems unable to run without file operands specified 4646on the command line, even when the '-f' option is present. This is contrary 4647to the behaviour of most rm programs out there, and not conforming with 4648the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4649 4650Please tell bug-automake@gnu.org about your system, including the value 4651of your $PATH and any error possibly output before this message. This 4652can help us improve future automake versions. 4653 4654END 4655 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4656 echo 'Configuration will proceed anyway, since you have set the' >&2 4657 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4658 echo >&2 4659 else 4660 cat >&2 <<'END' 4661Aborting the configuration process, to ensure you take notice of the issue. 4662 4663You can download and install GNU coreutils to get an 'rm' implementation 4664that behaves properly: <https://www.gnu.org/software/coreutils/>. 4665 4666If you want to complete the configuration process using your problematic 4667'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4668to "yes", and re-run configure. 4669 4670END 4671 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4672 fi 4673fi 4674 4675 4676# Initialize libtool 4677case `pwd` in 4678 *\ * | *\ *) 4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4680printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4681esac 4682 4683 4684 4685macro_version='2.4.7' 4686macro_revision='2.4.7' 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701ltmain=$ac_aux_dir/ltmain.sh 4702 4703 4704 4705 # Make sure we can run config.sub. 4706$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4707 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4708 4709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4710printf %s "checking build system type... " >&6; } 4711if test ${ac_cv_build+y} 4712then : 4713 printf %s "(cached) " >&6 4714else $as_nop 4715 ac_build_alias=$build_alias 4716test "x$ac_build_alias" = x && 4717 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4718test "x$ac_build_alias" = x && 4719 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4720ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4721 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4722 4723fi 4724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4725printf "%s\n" "$ac_cv_build" >&6; } 4726case $ac_cv_build in 4727*-*-*) ;; 4728*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4729esac 4730build=$ac_cv_build 4731ac_save_IFS=$IFS; IFS='-' 4732set x $ac_cv_build 4733shift 4734build_cpu=$1 4735build_vendor=$2 4736shift; shift 4737# Remember, the first character of IFS is used to create $*, 4738# except with old shells: 4739build_os=$* 4740IFS=$ac_save_IFS 4741case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4742 4743 4744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4745printf %s "checking host system type... " >&6; } 4746if test ${ac_cv_host+y} 4747then : 4748 printf %s "(cached) " >&6 4749else $as_nop 4750 if test "x$host_alias" = x; then 4751 ac_cv_host=$ac_cv_build 4752else 4753 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4754 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4755fi 4756 4757fi 4758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4759printf "%s\n" "$ac_cv_host" >&6; } 4760case $ac_cv_host in 4761*-*-*) ;; 4762*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4763esac 4764host=$ac_cv_host 4765ac_save_IFS=$IFS; IFS='-' 4766set x $ac_cv_host 4767shift 4768host_cpu=$1 4769host_vendor=$2 4770shift; shift 4771# Remember, the first character of IFS is used to create $*, 4772# except with old shells: 4773host_os=$* 4774IFS=$ac_save_IFS 4775case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4776 4777 4778# Backslashify metacharacters that are still active within 4779# double-quoted strings. 4780sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4781 4782# Same as above, but do not quote variable references. 4783double_quote_subst='s/\(["`\\]\)/\\\1/g' 4784 4785# Sed substitution to delay expansion of an escaped shell variable in a 4786# double_quote_subst'ed string. 4787delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4788 4789# Sed substitution to delay expansion of an escaped single quote. 4790delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4791 4792# Sed substitution to avoid accidental globbing in evaled expressions 4793no_glob_subst='s/\*/\\\*/g' 4794 4795ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4796ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4797ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4798 4799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4800printf %s "checking how to print strings... " >&6; } 4801# Test print first, because it will be a builtin if present. 4802if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4803 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4804 ECHO='print -r --' 4805elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4806 ECHO='printf %s\n' 4807else 4808 # Use this function as a fallback that always works. 4809 func_fallback_echo () 4810 { 4811 eval 'cat <<_LTECHO_EOF 4812$1 4813_LTECHO_EOF' 4814 } 4815 ECHO='func_fallback_echo' 4816fi 4817 4818# func_echo_all arg... 4819# Invoke $ECHO with all args, space-separated. 4820func_echo_all () 4821{ 4822 $ECHO "" 4823} 4824 4825case $ECHO in 4826 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4827printf "%s\n" "printf" >&6; } ;; 4828 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4829printf "%s\n" "print -r" >&6; } ;; 4830 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4831printf "%s\n" "cat" >&6; } ;; 4832esac 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4848printf %s "checking for a sed that does not truncate output... " >&6; } 4849if test ${ac_cv_path_SED+y} 4850then : 4851 printf %s "(cached) " >&6 4852else $as_nop 4853 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4854 for ac_i in 1 2 3 4 5 6 7; do 4855 ac_script="$ac_script$as_nl$ac_script" 4856 done 4857 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4858 { ac_script=; unset ac_script;} 4859 if test -z "$SED"; then 4860 ac_path_SED_found=false 4861 # Loop through the user's path and test for each of PROGNAME-LIST 4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4863for as_dir in $PATH 4864do 4865 IFS=$as_save_IFS 4866 case $as_dir in #((( 4867 '') as_dir=./ ;; 4868 */) ;; 4869 *) as_dir=$as_dir/ ;; 4870 esac 4871 for ac_prog in sed gsed 4872 do 4873 for ac_exec_ext in '' $ac_executable_extensions; do 4874 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4875 as_fn_executable_p "$ac_path_SED" || continue 4876# Check for GNU ac_path_SED and select it if it is found. 4877 # Check for GNU $ac_path_SED 4878case `"$ac_path_SED" --version 2>&1` in 4879*GNU*) 4880 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4881*) 4882 ac_count=0 4883 printf %s 0123456789 >"conftest.in" 4884 while : 4885 do 4886 cat "conftest.in" "conftest.in" >"conftest.tmp" 4887 mv "conftest.tmp" "conftest.in" 4888 cp "conftest.in" "conftest.nl" 4889 printf "%s\n" '' >> "conftest.nl" 4890 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4892 as_fn_arith $ac_count + 1 && ac_count=$as_val 4893 if test $ac_count -gt ${ac_path_SED_max-0}; then 4894 # Best one so far, save it but keep looking for a better one 4895 ac_cv_path_SED="$ac_path_SED" 4896 ac_path_SED_max=$ac_count 4897 fi 4898 # 10*(2^10) chars as input seems more than enough 4899 test $ac_count -gt 10 && break 4900 done 4901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4902esac 4903 4904 $ac_path_SED_found && break 3 4905 done 4906 done 4907 done 4908IFS=$as_save_IFS 4909 if test -z "$ac_cv_path_SED"; then 4910 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4911 fi 4912else 4913 ac_cv_path_SED=$SED 4914fi 4915 4916fi 4917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4918printf "%s\n" "$ac_cv_path_SED" >&6; } 4919 SED="$ac_cv_path_SED" 4920 rm -f conftest.sed 4921 4922test -z "$SED" && SED=sed 4923Xsed="$SED -e 1s/^X//" 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4936printf %s "checking for grep that handles long lines and -e... " >&6; } 4937if test ${ac_cv_path_GREP+y} 4938then : 4939 printf %s "(cached) " >&6 4940else $as_nop 4941 if test -z "$GREP"; then 4942 ac_path_GREP_found=false 4943 # Loop through the user's path and test for each of PROGNAME-LIST 4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4945for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4946do 4947 IFS=$as_save_IFS 4948 case $as_dir in #((( 4949 '') as_dir=./ ;; 4950 */) ;; 4951 *) as_dir=$as_dir/ ;; 4952 esac 4953 for ac_prog in grep ggrep 4954 do 4955 for ac_exec_ext in '' $ac_executable_extensions; do 4956 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4957 as_fn_executable_p "$ac_path_GREP" || continue 4958# Check for GNU ac_path_GREP and select it if it is found. 4959 # Check for GNU $ac_path_GREP 4960case `"$ac_path_GREP" --version 2>&1` in 4961*GNU*) 4962 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4963*) 4964 ac_count=0 4965 printf %s 0123456789 >"conftest.in" 4966 while : 4967 do 4968 cat "conftest.in" "conftest.in" >"conftest.tmp" 4969 mv "conftest.tmp" "conftest.in" 4970 cp "conftest.in" "conftest.nl" 4971 printf "%s\n" 'GREP' >> "conftest.nl" 4972 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4974 as_fn_arith $ac_count + 1 && ac_count=$as_val 4975 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4976 # Best one so far, save it but keep looking for a better one 4977 ac_cv_path_GREP="$ac_path_GREP" 4978 ac_path_GREP_max=$ac_count 4979 fi 4980 # 10*(2^10) chars as input seems more than enough 4981 test $ac_count -gt 10 && break 4982 done 4983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4984esac 4985 4986 $ac_path_GREP_found && break 3 4987 done 4988 done 4989 done 4990IFS=$as_save_IFS 4991 if test -z "$ac_cv_path_GREP"; then 4992 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4993 fi 4994else 4995 ac_cv_path_GREP=$GREP 4996fi 4997 4998fi 4999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5000printf "%s\n" "$ac_cv_path_GREP" >&6; } 5001 GREP="$ac_cv_path_GREP" 5002 5003 5004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5005printf %s "checking for egrep... " >&6; } 5006if test ${ac_cv_path_EGREP+y} 5007then : 5008 printf %s "(cached) " >&6 5009else $as_nop 5010 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5011 then ac_cv_path_EGREP="$GREP -E" 5012 else 5013 if test -z "$EGREP"; then 5014 ac_path_EGREP_found=false 5015 # Loop through the user's path and test for each of PROGNAME-LIST 5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5017for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5018do 5019 IFS=$as_save_IFS 5020 case $as_dir in #((( 5021 '') as_dir=./ ;; 5022 */) ;; 5023 *) as_dir=$as_dir/ ;; 5024 esac 5025 for ac_prog in egrep 5026 do 5027 for ac_exec_ext in '' $ac_executable_extensions; do 5028 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5029 as_fn_executable_p "$ac_path_EGREP" || continue 5030# Check for GNU ac_path_EGREP and select it if it is found. 5031 # Check for GNU $ac_path_EGREP 5032case `"$ac_path_EGREP" --version 2>&1` in 5033*GNU*) 5034 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5035*) 5036 ac_count=0 5037 printf %s 0123456789 >"conftest.in" 5038 while : 5039 do 5040 cat "conftest.in" "conftest.in" >"conftest.tmp" 5041 mv "conftest.tmp" "conftest.in" 5042 cp "conftest.in" "conftest.nl" 5043 printf "%s\n" 'EGREP' >> "conftest.nl" 5044 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5045 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5046 as_fn_arith $ac_count + 1 && ac_count=$as_val 5047 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5048 # Best one so far, save it but keep looking for a better one 5049 ac_cv_path_EGREP="$ac_path_EGREP" 5050 ac_path_EGREP_max=$ac_count 5051 fi 5052 # 10*(2^10) chars as input seems more than enough 5053 test $ac_count -gt 10 && break 5054 done 5055 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5056esac 5057 5058 $ac_path_EGREP_found && break 3 5059 done 5060 done 5061 done 5062IFS=$as_save_IFS 5063 if test -z "$ac_cv_path_EGREP"; then 5064 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5065 fi 5066else 5067 ac_cv_path_EGREP=$EGREP 5068fi 5069 5070 fi 5071fi 5072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5073printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5074 EGREP="$ac_cv_path_EGREP" 5075 5076 5077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5078printf %s "checking for fgrep... " >&6; } 5079if test ${ac_cv_path_FGREP+y} 5080then : 5081 printf %s "(cached) " >&6 5082else $as_nop 5083 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5084 then ac_cv_path_FGREP="$GREP -F" 5085 else 5086 if test -z "$FGREP"; then 5087 ac_path_FGREP_found=false 5088 # Loop through the user's path and test for each of PROGNAME-LIST 5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5090for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5091do 5092 IFS=$as_save_IFS 5093 case $as_dir in #((( 5094 '') as_dir=./ ;; 5095 */) ;; 5096 *) as_dir=$as_dir/ ;; 5097 esac 5098 for ac_prog in fgrep 5099 do 5100 for ac_exec_ext in '' $ac_executable_extensions; do 5101 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5102 as_fn_executable_p "$ac_path_FGREP" || continue 5103# Check for GNU ac_path_FGREP and select it if it is found. 5104 # Check for GNU $ac_path_FGREP 5105case `"$ac_path_FGREP" --version 2>&1` in 5106*GNU*) 5107 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5108*) 5109 ac_count=0 5110 printf %s 0123456789 >"conftest.in" 5111 while : 5112 do 5113 cat "conftest.in" "conftest.in" >"conftest.tmp" 5114 mv "conftest.tmp" "conftest.in" 5115 cp "conftest.in" "conftest.nl" 5116 printf "%s\n" 'FGREP' >> "conftest.nl" 5117 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5119 as_fn_arith $ac_count + 1 && ac_count=$as_val 5120 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5121 # Best one so far, save it but keep looking for a better one 5122 ac_cv_path_FGREP="$ac_path_FGREP" 5123 ac_path_FGREP_max=$ac_count 5124 fi 5125 # 10*(2^10) chars as input seems more than enough 5126 test $ac_count -gt 10 && break 5127 done 5128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5129esac 5130 5131 $ac_path_FGREP_found && break 3 5132 done 5133 done 5134 done 5135IFS=$as_save_IFS 5136 if test -z "$ac_cv_path_FGREP"; then 5137 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5138 fi 5139else 5140 ac_cv_path_FGREP=$FGREP 5141fi 5142 5143 fi 5144fi 5145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5146printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5147 FGREP="$ac_cv_path_FGREP" 5148 5149 5150test -z "$GREP" && GREP=grep 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170# Check whether --with-gnu-ld was given. 5171if test ${with_gnu_ld+y} 5172then : 5173 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5174else $as_nop 5175 with_gnu_ld=no 5176fi 5177 5178ac_prog=ld 5179if test yes = "$GCC"; then 5180 # Check if gcc -print-prog-name=ld gives a path. 5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5182printf %s "checking for ld used by $CC... " >&6; } 5183 case $host in 5184 *-*-mingw*) 5185 # gcc leaves a trailing carriage return, which upsets mingw 5186 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5187 *) 5188 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5189 esac 5190 case $ac_prog in 5191 # Accept absolute paths. 5192 [\\/]* | ?:[\\/]*) 5193 re_direlt='/[^/][^/]*/\.\./' 5194 # Canonicalize the pathname of ld 5195 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5196 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5197 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5198 done 5199 test -z "$LD" && LD=$ac_prog 5200 ;; 5201 "") 5202 # If it fails, then pretend we aren't using GCC. 5203 ac_prog=ld 5204 ;; 5205 *) 5206 # If it is relative, then search for the first ld in PATH. 5207 with_gnu_ld=unknown 5208 ;; 5209 esac 5210elif test yes = "$with_gnu_ld"; then 5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5212printf %s "checking for GNU ld... " >&6; } 5213else 5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5215printf %s "checking for non-GNU ld... " >&6; } 5216fi 5217if test ${lt_cv_path_LD+y} 5218then : 5219 printf %s "(cached) " >&6 5220else $as_nop 5221 if test -z "$LD"; then 5222 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5223 for ac_dir in $PATH; do 5224 IFS=$lt_save_ifs 5225 test -z "$ac_dir" && ac_dir=. 5226 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5227 lt_cv_path_LD=$ac_dir/$ac_prog 5228 # Check to see if the program is GNU ld. I'd rather use --version, 5229 # but apparently some variants of GNU ld only accept -v. 5230 # Break only if it was the GNU/non-GNU ld that we prefer. 5231 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5232 *GNU* | *'with BFD'*) 5233 test no != "$with_gnu_ld" && break 5234 ;; 5235 *) 5236 test yes != "$with_gnu_ld" && break 5237 ;; 5238 esac 5239 fi 5240 done 5241 IFS=$lt_save_ifs 5242else 5243 lt_cv_path_LD=$LD # Let the user override the test with a path. 5244fi 5245fi 5246 5247LD=$lt_cv_path_LD 5248if test -n "$LD"; then 5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5250printf "%s\n" "$LD" >&6; } 5251else 5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5253printf "%s\n" "no" >&6; } 5254fi 5255test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5257printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5258if test ${lt_cv_prog_gnu_ld+y} 5259then : 5260 printf %s "(cached) " >&6 5261else $as_nop 5262 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5263case `$LD -v 2>&1 </dev/null` in 5264*GNU* | *'with BFD'*) 5265 lt_cv_prog_gnu_ld=yes 5266 ;; 5267*) 5268 lt_cv_prog_gnu_ld=no 5269 ;; 5270esac 5271fi 5272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5273printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5274with_gnu_ld=$lt_cv_prog_gnu_ld 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5285printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5286if test ${lt_cv_path_NM+y} 5287then : 5288 printf %s "(cached) " >&6 5289else $as_nop 5290 if test -n "$NM"; then 5291 # Let the user override the test. 5292 lt_cv_path_NM=$NM 5293else 5294 lt_nm_to_check=${ac_tool_prefix}nm 5295 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5296 lt_nm_to_check="$lt_nm_to_check nm" 5297 fi 5298 for lt_tmp_nm in $lt_nm_to_check; do 5299 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5300 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5301 IFS=$lt_save_ifs 5302 test -z "$ac_dir" && ac_dir=. 5303 tmp_nm=$ac_dir/$lt_tmp_nm 5304 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5305 # Check to see if the nm accepts a BSD-compat flag. 5306 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5307 # nm: unknown option "B" ignored 5308 # Tru64's nm complains that /dev/null is an invalid object file 5309 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5310 case $build_os in 5311 mingw*) lt_bad_file=conftest.nm/nofile ;; 5312 *) lt_bad_file=/dev/null ;; 5313 esac 5314 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5315 *$lt_bad_file* | *'Invalid file or object type'*) 5316 lt_cv_path_NM="$tmp_nm -B" 5317 break 2 5318 ;; 5319 *) 5320 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5321 */dev/null*) 5322 lt_cv_path_NM="$tmp_nm -p" 5323 break 2 5324 ;; 5325 *) 5326 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5327 continue # so that we can try to find one that supports BSD flags 5328 ;; 5329 esac 5330 ;; 5331 esac 5332 fi 5333 done 5334 IFS=$lt_save_ifs 5335 done 5336 : ${lt_cv_path_NM=no} 5337fi 5338fi 5339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5340printf "%s\n" "$lt_cv_path_NM" >&6; } 5341if test no != "$lt_cv_path_NM"; then 5342 NM=$lt_cv_path_NM 5343else 5344 # Didn't find any BSD compatible name lister, look for dumpbin. 5345 if test -n "$DUMPBIN"; then : 5346 # Let the user override the test. 5347 else 5348 if test -n "$ac_tool_prefix"; then 5349 for ac_prog in dumpbin "link -dump" 5350 do 5351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5352set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5354printf %s "checking for $ac_word... " >&6; } 5355if test ${ac_cv_prog_DUMPBIN+y} 5356then : 5357 printf %s "(cached) " >&6 5358else $as_nop 5359 if test -n "$DUMPBIN"; then 5360 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5361else 5362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5363for as_dir in $PATH 5364do 5365 IFS=$as_save_IFS 5366 case $as_dir in #((( 5367 '') as_dir=./ ;; 5368 */) ;; 5369 *) as_dir=$as_dir/ ;; 5370 esac 5371 for ac_exec_ext in '' $ac_executable_extensions; do 5372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5373 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5375 break 2 5376 fi 5377done 5378 done 5379IFS=$as_save_IFS 5380 5381fi 5382fi 5383DUMPBIN=$ac_cv_prog_DUMPBIN 5384if test -n "$DUMPBIN"; then 5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5386printf "%s\n" "$DUMPBIN" >&6; } 5387else 5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5389printf "%s\n" "no" >&6; } 5390fi 5391 5392 5393 test -n "$DUMPBIN" && break 5394 done 5395fi 5396if test -z "$DUMPBIN"; then 5397 ac_ct_DUMPBIN=$DUMPBIN 5398 for ac_prog in dumpbin "link -dump" 5399do 5400 # Extract the first word of "$ac_prog", so it can be a program name with args. 5401set dummy $ac_prog; ac_word=$2 5402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5403printf %s "checking for $ac_word... " >&6; } 5404if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5405then : 5406 printf %s "(cached) " >&6 5407else $as_nop 5408 if test -n "$ac_ct_DUMPBIN"; then 5409 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5410else 5411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5412for as_dir in $PATH 5413do 5414 IFS=$as_save_IFS 5415 case $as_dir in #((( 5416 '') as_dir=./ ;; 5417 */) ;; 5418 *) as_dir=$as_dir/ ;; 5419 esac 5420 for ac_exec_ext in '' $ac_executable_extensions; do 5421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5422 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5424 break 2 5425 fi 5426done 5427 done 5428IFS=$as_save_IFS 5429 5430fi 5431fi 5432ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5433if test -n "$ac_ct_DUMPBIN"; then 5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5435printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5436else 5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5438printf "%s\n" "no" >&6; } 5439fi 5440 5441 5442 test -n "$ac_ct_DUMPBIN" && break 5443done 5444 5445 if test "x$ac_ct_DUMPBIN" = x; then 5446 DUMPBIN=":" 5447 else 5448 case $cross_compiling:$ac_tool_warned in 5449yes:) 5450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5451printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5452ac_tool_warned=yes ;; 5453esac 5454 DUMPBIN=$ac_ct_DUMPBIN 5455 fi 5456fi 5457 5458 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5459 *COFF*) 5460 DUMPBIN="$DUMPBIN -symbols -headers" 5461 ;; 5462 *) 5463 DUMPBIN=: 5464 ;; 5465 esac 5466 fi 5467 5468 if test : != "$DUMPBIN"; then 5469 NM=$DUMPBIN 5470 fi 5471fi 5472test -z "$NM" && NM=nm 5473 5474 5475 5476 5477 5478 5479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5480printf %s "checking the name lister ($NM) interface... " >&6; } 5481if test ${lt_cv_nm_interface+y} 5482then : 5483 printf %s "(cached) " >&6 5484else $as_nop 5485 lt_cv_nm_interface="BSD nm" 5486 echo "int some_variable = 0;" > conftest.$ac_ext 5487 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5488 (eval "$ac_compile" 2>conftest.err) 5489 cat conftest.err >&5 5490 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5491 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5492 cat conftest.err >&5 5493 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5494 cat conftest.out >&5 5495 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5496 lt_cv_nm_interface="MS dumpbin" 5497 fi 5498 rm -f conftest* 5499fi 5500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5501printf "%s\n" "$lt_cv_nm_interface" >&6; } 5502 5503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5504printf %s "checking whether ln -s works... " >&6; } 5505LN_S=$as_ln_s 5506if test "$LN_S" = "ln -s"; then 5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5508printf "%s\n" "yes" >&6; } 5509else 5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5511printf "%s\n" "no, using $LN_S" >&6; } 5512fi 5513 5514# find the maximum length of command line arguments 5515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5516printf %s "checking the maximum length of command line arguments... " >&6; } 5517if test ${lt_cv_sys_max_cmd_len+y} 5518then : 5519 printf %s "(cached) " >&6 5520else $as_nop 5521 i=0 5522 teststring=ABCD 5523 5524 case $build_os in 5525 msdosdjgpp*) 5526 # On DJGPP, this test can blow up pretty badly due to problems in libc 5527 # (any single argument exceeding 2000 bytes causes a buffer overrun 5528 # during glob expansion). Even if it were fixed, the result of this 5529 # check would be larger than it should be. 5530 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5531 ;; 5532 5533 gnu*) 5534 # Under GNU Hurd, this test is not required because there is 5535 # no limit to the length of command line arguments. 5536 # Libtool will interpret -1 as no limit whatsoever 5537 lt_cv_sys_max_cmd_len=-1; 5538 ;; 5539 5540 cygwin* | mingw* | cegcc*) 5541 # On Win9x/ME, this test blows up -- it succeeds, but takes 5542 # about 5 minutes as the teststring grows exponentially. 5543 # Worse, since 9x/ME are not pre-emptively multitasking, 5544 # you end up with a "frozen" computer, even though with patience 5545 # the test eventually succeeds (with a max line length of 256k). 5546 # Instead, let's just punt: use the minimum linelength reported by 5547 # all of the supported platforms: 8192 (on NT/2K/XP). 5548 lt_cv_sys_max_cmd_len=8192; 5549 ;; 5550 5551 mint*) 5552 # On MiNT this can take a long time and run out of memory. 5553 lt_cv_sys_max_cmd_len=8192; 5554 ;; 5555 5556 amigaos*) 5557 # On AmigaOS with pdksh, this test takes hours, literally. 5558 # So we just punt and use a minimum line length of 8192. 5559 lt_cv_sys_max_cmd_len=8192; 5560 ;; 5561 5562 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5563 # This has been around since 386BSD, at least. Likely further. 5564 if test -x /sbin/sysctl; then 5565 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5566 elif test -x /usr/sbin/sysctl; then 5567 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5568 else 5569 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5570 fi 5571 # And add a safety zone 5572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5574 ;; 5575 5576 interix*) 5577 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5578 lt_cv_sys_max_cmd_len=196608 5579 ;; 5580 5581 os2*) 5582 # The test takes a long time on OS/2. 5583 lt_cv_sys_max_cmd_len=8192 5584 ;; 5585 5586 osf*) 5587 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5588 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5589 # nice to cause kernel panics so lets avoid the loop below. 5590 # First set a reasonable default. 5591 lt_cv_sys_max_cmd_len=16384 5592 # 5593 if test -x /sbin/sysconfig; then 5594 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5595 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5596 esac 5597 fi 5598 ;; 5599 sco3.2v5*) 5600 lt_cv_sys_max_cmd_len=102400 5601 ;; 5602 sysv5* | sco5v6* | sysv4.2uw2*) 5603 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5604 if test -n "$kargmax"; then 5605 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5606 else 5607 lt_cv_sys_max_cmd_len=32768 5608 fi 5609 ;; 5610 *) 5611 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5612 if test -n "$lt_cv_sys_max_cmd_len" && \ 5613 test undefined != "$lt_cv_sys_max_cmd_len"; then 5614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5616 else 5617 # Make teststring a little bigger before we do anything with it. 5618 # a 1K string should be a reasonable start. 5619 for i in 1 2 3 4 5 6 7 8; do 5620 teststring=$teststring$teststring 5621 done 5622 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5623 # If test is not a shell built-in, we'll probably end up computing a 5624 # maximum length that is only half of the actual maximum length, but 5625 # we can't tell. 5626 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5627 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5628 test 17 != "$i" # 1/2 MB should be enough 5629 do 5630 i=`expr $i + 1` 5631 teststring=$teststring$teststring 5632 done 5633 # Only check the string length outside the loop. 5634 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5635 teststring= 5636 # Add a significant safety factor because C++ compilers can tack on 5637 # massive amounts of additional arguments before passing them to the 5638 # linker. It appears as though 1/2 is a usable value. 5639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5640 fi 5641 ;; 5642 esac 5643 5644fi 5645 5646if test -n "$lt_cv_sys_max_cmd_len"; then 5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5648printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5649else 5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5651printf "%s\n" "none" >&6; } 5652fi 5653max_cmd_len=$lt_cv_sys_max_cmd_len 5654 5655 5656 5657 5658 5659 5660: ${CP="cp -f"} 5661: ${MV="mv -f"} 5662: ${RM="rm -f"} 5663 5664if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5665 lt_unset=unset 5666else 5667 lt_unset=false 5668fi 5669 5670 5671 5672 5673 5674# test EBCDIC or ASCII 5675case `echo X|tr X '\101'` in 5676 A) # ASCII based system 5677 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5678 lt_SP2NL='tr \040 \012' 5679 lt_NL2SP='tr \015\012 \040\040' 5680 ;; 5681 *) # EBCDIC based system 5682 lt_SP2NL='tr \100 \n' 5683 lt_NL2SP='tr \r\n \100\100' 5684 ;; 5685esac 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5696printf %s "checking how to convert $build file names to $host format... " >&6; } 5697if test ${lt_cv_to_host_file_cmd+y} 5698then : 5699 printf %s "(cached) " >&6 5700else $as_nop 5701 case $host in 5702 *-*-mingw* ) 5703 case $build in 5704 *-*-mingw* ) # actually msys 5705 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5706 ;; 5707 *-*-cygwin* ) 5708 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5709 ;; 5710 * ) # otherwise, assume *nix 5711 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5712 ;; 5713 esac 5714 ;; 5715 *-*-cygwin* ) 5716 case $build in 5717 *-*-mingw* ) # actually msys 5718 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5719 ;; 5720 *-*-cygwin* ) 5721 lt_cv_to_host_file_cmd=func_convert_file_noop 5722 ;; 5723 * ) # otherwise, assume *nix 5724 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5725 ;; 5726 esac 5727 ;; 5728 * ) # unhandled hosts (and "normal" native builds) 5729 lt_cv_to_host_file_cmd=func_convert_file_noop 5730 ;; 5731esac 5732 5733fi 5734 5735to_host_file_cmd=$lt_cv_to_host_file_cmd 5736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5737printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5738 5739 5740 5741 5742 5743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5744printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5745if test ${lt_cv_to_tool_file_cmd+y} 5746then : 5747 printf %s "(cached) " >&6 5748else $as_nop 5749 #assume ordinary cross tools, or native build. 5750lt_cv_to_tool_file_cmd=func_convert_file_noop 5751case $host in 5752 *-*-mingw* ) 5753 case $build in 5754 *-*-mingw* ) # actually msys 5755 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5756 ;; 5757 esac 5758 ;; 5759esac 5760 5761fi 5762 5763to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5765printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5766 5767 5768 5769 5770 5771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5772printf %s "checking for $LD option to reload object files... " >&6; } 5773if test ${lt_cv_ld_reload_flag+y} 5774then : 5775 printf %s "(cached) " >&6 5776else $as_nop 5777 lt_cv_ld_reload_flag='-r' 5778fi 5779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5780printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5781reload_flag=$lt_cv_ld_reload_flag 5782case $reload_flag in 5783"" | " "*) ;; 5784*) reload_flag=" $reload_flag" ;; 5785esac 5786reload_cmds='$LD$reload_flag -o $output$reload_objs' 5787case $host_os in 5788 cygwin* | mingw* | pw32* | cegcc*) 5789 if test yes != "$GCC"; then 5790 reload_cmds=false 5791 fi 5792 ;; 5793 darwin*) 5794 if test yes = "$GCC"; then 5795 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5796 else 5797 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5798 fi 5799 ;; 5800esac 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810if test -n "$ac_tool_prefix"; then 5811 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5812set dummy ${ac_tool_prefix}file; ac_word=$2 5813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5814printf %s "checking for $ac_word... " >&6; } 5815if test ${ac_cv_prog_FILECMD+y} 5816then : 5817 printf %s "(cached) " >&6 5818else $as_nop 5819 if test -n "$FILECMD"; then 5820 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5821else 5822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5823for as_dir in $PATH 5824do 5825 IFS=$as_save_IFS 5826 case $as_dir in #((( 5827 '') as_dir=./ ;; 5828 */) ;; 5829 *) as_dir=$as_dir/ ;; 5830 esac 5831 for ac_exec_ext in '' $ac_executable_extensions; do 5832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5833 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5835 break 2 5836 fi 5837done 5838 done 5839IFS=$as_save_IFS 5840 5841fi 5842fi 5843FILECMD=$ac_cv_prog_FILECMD 5844if test -n "$FILECMD"; then 5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5846printf "%s\n" "$FILECMD" >&6; } 5847else 5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5849printf "%s\n" "no" >&6; } 5850fi 5851 5852 5853fi 5854if test -z "$ac_cv_prog_FILECMD"; then 5855 ac_ct_FILECMD=$FILECMD 5856 # Extract the first word of "file", so it can be a program name with args. 5857set dummy file; ac_word=$2 5858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5859printf %s "checking for $ac_word... " >&6; } 5860if test ${ac_cv_prog_ac_ct_FILECMD+y} 5861then : 5862 printf %s "(cached) " >&6 5863else $as_nop 5864 if test -n "$ac_ct_FILECMD"; then 5865 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5866else 5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5868for as_dir in $PATH 5869do 5870 IFS=$as_save_IFS 5871 case $as_dir in #((( 5872 '') as_dir=./ ;; 5873 */) ;; 5874 *) as_dir=$as_dir/ ;; 5875 esac 5876 for ac_exec_ext in '' $ac_executable_extensions; do 5877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5878 ac_cv_prog_ac_ct_FILECMD="file" 5879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5880 break 2 5881 fi 5882done 5883 done 5884IFS=$as_save_IFS 5885 5886fi 5887fi 5888ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5889if test -n "$ac_ct_FILECMD"; then 5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5891printf "%s\n" "$ac_ct_FILECMD" >&6; } 5892else 5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5894printf "%s\n" "no" >&6; } 5895fi 5896 5897 if test "x$ac_ct_FILECMD" = x; then 5898 FILECMD=":" 5899 else 5900 case $cross_compiling:$ac_tool_warned in 5901yes:) 5902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5903printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5904ac_tool_warned=yes ;; 5905esac 5906 FILECMD=$ac_ct_FILECMD 5907 fi 5908else 5909 FILECMD="$ac_cv_prog_FILECMD" 5910fi 5911 5912 5913 5914 5915 5916 5917 5918if test -n "$ac_tool_prefix"; then 5919 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5920set dummy ${ac_tool_prefix}objdump; ac_word=$2 5921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5922printf %s "checking for $ac_word... " >&6; } 5923if test ${ac_cv_prog_OBJDUMP+y} 5924then : 5925 printf %s "(cached) " >&6 5926else $as_nop 5927 if test -n "$OBJDUMP"; then 5928 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5929else 5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5931for as_dir in $PATH 5932do 5933 IFS=$as_save_IFS 5934 case $as_dir in #((( 5935 '') as_dir=./ ;; 5936 */) ;; 5937 *) as_dir=$as_dir/ ;; 5938 esac 5939 for ac_exec_ext in '' $ac_executable_extensions; do 5940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5941 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5943 break 2 5944 fi 5945done 5946 done 5947IFS=$as_save_IFS 5948 5949fi 5950fi 5951OBJDUMP=$ac_cv_prog_OBJDUMP 5952if test -n "$OBJDUMP"; then 5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5954printf "%s\n" "$OBJDUMP" >&6; } 5955else 5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5957printf "%s\n" "no" >&6; } 5958fi 5959 5960 5961fi 5962if test -z "$ac_cv_prog_OBJDUMP"; then 5963 ac_ct_OBJDUMP=$OBJDUMP 5964 # Extract the first word of "objdump", so it can be a program name with args. 5965set dummy objdump; ac_word=$2 5966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5967printf %s "checking for $ac_word... " >&6; } 5968if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5969then : 5970 printf %s "(cached) " >&6 5971else $as_nop 5972 if test -n "$ac_ct_OBJDUMP"; then 5973 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5974else 5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5976for as_dir in $PATH 5977do 5978 IFS=$as_save_IFS 5979 case $as_dir in #((( 5980 '') as_dir=./ ;; 5981 */) ;; 5982 *) as_dir=$as_dir/ ;; 5983 esac 5984 for ac_exec_ext in '' $ac_executable_extensions; do 5985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5986 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5988 break 2 5989 fi 5990done 5991 done 5992IFS=$as_save_IFS 5993 5994fi 5995fi 5996ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5997if test -n "$ac_ct_OBJDUMP"; then 5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5999printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6000else 6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6002printf "%s\n" "no" >&6; } 6003fi 6004 6005 if test "x$ac_ct_OBJDUMP" = x; then 6006 OBJDUMP="false" 6007 else 6008 case $cross_compiling:$ac_tool_warned in 6009yes:) 6010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6011printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6012ac_tool_warned=yes ;; 6013esac 6014 OBJDUMP=$ac_ct_OBJDUMP 6015 fi 6016else 6017 OBJDUMP="$ac_cv_prog_OBJDUMP" 6018fi 6019 6020test -z "$OBJDUMP" && OBJDUMP=objdump 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6031printf %s "checking how to recognize dependent libraries... " >&6; } 6032if test ${lt_cv_deplibs_check_method+y} 6033then : 6034 printf %s "(cached) " >&6 6035else $as_nop 6036 lt_cv_file_magic_cmd='$MAGIC_CMD' 6037lt_cv_file_magic_test_file= 6038lt_cv_deplibs_check_method='unknown' 6039# Need to set the preceding variable on all platforms that support 6040# interlibrary dependencies. 6041# 'none' -- dependencies not supported. 6042# 'unknown' -- same as none, but documents that we really don't know. 6043# 'pass_all' -- all dependencies passed with no checks. 6044# 'test_compile' -- check by making test program. 6045# 'file_magic [[regex]]' -- check by looking for files in library path 6046# that responds to the $file_magic_cmd with a given extended regex. 6047# If you have 'file' or equivalent on your system and you're not sure 6048# whether 'pass_all' will *always* work, you probably want this one. 6049 6050case $host_os in 6051aix[4-9]*) 6052 lt_cv_deplibs_check_method=pass_all 6053 ;; 6054 6055beos*) 6056 lt_cv_deplibs_check_method=pass_all 6057 ;; 6058 6059bsdi[45]*) 6060 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6061 lt_cv_file_magic_cmd='$FILECMD -L' 6062 lt_cv_file_magic_test_file=/shlib/libc.so 6063 ;; 6064 6065cygwin*) 6066 # func_win32_libid is a shell function defined in ltmain.sh 6067 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6068 lt_cv_file_magic_cmd='func_win32_libid' 6069 ;; 6070 6071mingw* | pw32*) 6072 # Base MSYS/MinGW do not provide the 'file' command needed by 6073 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6074 # unless we find 'file', for example because we are cross-compiling. 6075 if ( file / ) >/dev/null 2>&1; then 6076 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6077 lt_cv_file_magic_cmd='func_win32_libid' 6078 else 6079 # Keep this pattern in sync with the one in func_win32_libid. 6080 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6081 lt_cv_file_magic_cmd='$OBJDUMP -f' 6082 fi 6083 ;; 6084 6085cegcc*) 6086 # use the weaker test based on 'objdump'. See mingw*. 6087 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6088 lt_cv_file_magic_cmd='$OBJDUMP -f' 6089 ;; 6090 6091darwin* | rhapsody*) 6092 lt_cv_deplibs_check_method=pass_all 6093 ;; 6094 6095freebsd* | dragonfly* | midnightbsd*) 6096 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6097 case $host_cpu in 6098 i*86 ) 6099 # Not sure whether the presence of OpenBSD here was a mistake. 6100 # Let's accept both of them until this is cleared up. 6101 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6102 lt_cv_file_magic_cmd=$FILECMD 6103 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6104 ;; 6105 esac 6106 else 6107 lt_cv_deplibs_check_method=pass_all 6108 fi 6109 ;; 6110 6111haiku*) 6112 lt_cv_deplibs_check_method=pass_all 6113 ;; 6114 6115hpux10.20* | hpux11*) 6116 lt_cv_file_magic_cmd=$FILECMD 6117 case $host_cpu in 6118 ia64*) 6119 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6120 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6121 ;; 6122 hppa*64*) 6123 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]' 6124 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6125 ;; 6126 *) 6127 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6128 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6129 ;; 6130 esac 6131 ;; 6132 6133interix[3-9]*) 6134 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6136 ;; 6137 6138irix5* | irix6* | nonstopux*) 6139 case $LD in 6140 *-32|*"-32 ") libmagic=32-bit;; 6141 *-n32|*"-n32 ") libmagic=N32;; 6142 *-64|*"-64 ") libmagic=64-bit;; 6143 *) libmagic=never-match;; 6144 esac 6145 lt_cv_deplibs_check_method=pass_all 6146 ;; 6147 6148# This must be glibc/ELF. 6149linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6150 lt_cv_deplibs_check_method=pass_all 6151 ;; 6152 6153netbsd* | netbsdelf*-gnu) 6154 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6156 else 6157 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6158 fi 6159 ;; 6160 6161newos6*) 6162 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6163 lt_cv_file_magic_cmd=$FILECMD 6164 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6165 ;; 6166 6167*nto* | *qnx*) 6168 lt_cv_deplibs_check_method=pass_all 6169 ;; 6170 6171openbsd* | bitrig*) 6172 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6174 else 6175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6176 fi 6177 ;; 6178 6179osf3* | osf4* | osf5*) 6180 lt_cv_deplibs_check_method=pass_all 6181 ;; 6182 6183rdos*) 6184 lt_cv_deplibs_check_method=pass_all 6185 ;; 6186 6187solaris*) 6188 lt_cv_deplibs_check_method=pass_all 6189 ;; 6190 6191sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6192 lt_cv_deplibs_check_method=pass_all 6193 ;; 6194 6195sysv4 | sysv4.3*) 6196 case $host_vendor in 6197 motorola) 6198 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]' 6199 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6200 ;; 6201 ncr) 6202 lt_cv_deplibs_check_method=pass_all 6203 ;; 6204 sequent) 6205 lt_cv_file_magic_cmd='/bin/file' 6206 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6207 ;; 6208 sni) 6209 lt_cv_file_magic_cmd='/bin/file' 6210 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6211 lt_cv_file_magic_test_file=/lib/libc.so 6212 ;; 6213 siemens) 6214 lt_cv_deplibs_check_method=pass_all 6215 ;; 6216 pc) 6217 lt_cv_deplibs_check_method=pass_all 6218 ;; 6219 esac 6220 ;; 6221 6222tpf*) 6223 lt_cv_deplibs_check_method=pass_all 6224 ;; 6225os2*) 6226 lt_cv_deplibs_check_method=pass_all 6227 ;; 6228esac 6229 6230fi 6231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6232printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6233 6234file_magic_glob= 6235want_nocaseglob=no 6236if test "$build" = "$host"; then 6237 case $host_os in 6238 mingw* | pw32*) 6239 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6240 want_nocaseglob=yes 6241 else 6242 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6243 fi 6244 ;; 6245 esac 6246fi 6247 6248file_magic_cmd=$lt_cv_file_magic_cmd 6249deplibs_check_method=$lt_cv_deplibs_check_method 6250test -z "$deplibs_check_method" && deplibs_check_method=unknown 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273if test -n "$ac_tool_prefix"; then 6274 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6275set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6277printf %s "checking for $ac_word... " >&6; } 6278if test ${ac_cv_prog_DLLTOOL+y} 6279then : 6280 printf %s "(cached) " >&6 6281else $as_nop 6282 if test -n "$DLLTOOL"; then 6283 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6284else 6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6286for as_dir in $PATH 6287do 6288 IFS=$as_save_IFS 6289 case $as_dir in #((( 6290 '') as_dir=./ ;; 6291 */) ;; 6292 *) as_dir=$as_dir/ ;; 6293 esac 6294 for ac_exec_ext in '' $ac_executable_extensions; do 6295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6296 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6298 break 2 6299 fi 6300done 6301 done 6302IFS=$as_save_IFS 6303 6304fi 6305fi 6306DLLTOOL=$ac_cv_prog_DLLTOOL 6307if test -n "$DLLTOOL"; then 6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6309printf "%s\n" "$DLLTOOL" >&6; } 6310else 6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6312printf "%s\n" "no" >&6; } 6313fi 6314 6315 6316fi 6317if test -z "$ac_cv_prog_DLLTOOL"; then 6318 ac_ct_DLLTOOL=$DLLTOOL 6319 # Extract the first word of "dlltool", so it can be a program name with args. 6320set dummy dlltool; ac_word=$2 6321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6322printf %s "checking for $ac_word... " >&6; } 6323if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6324then : 6325 printf %s "(cached) " >&6 6326else $as_nop 6327 if test -n "$ac_ct_DLLTOOL"; then 6328 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6329else 6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6331for as_dir in $PATH 6332do 6333 IFS=$as_save_IFS 6334 case $as_dir in #((( 6335 '') as_dir=./ ;; 6336 */) ;; 6337 *) as_dir=$as_dir/ ;; 6338 esac 6339 for ac_exec_ext in '' $ac_executable_extensions; do 6340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6341 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6343 break 2 6344 fi 6345done 6346 done 6347IFS=$as_save_IFS 6348 6349fi 6350fi 6351ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6352if test -n "$ac_ct_DLLTOOL"; then 6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6354printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6355else 6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6357printf "%s\n" "no" >&6; } 6358fi 6359 6360 if test "x$ac_ct_DLLTOOL" = x; then 6361 DLLTOOL="false" 6362 else 6363 case $cross_compiling:$ac_tool_warned in 6364yes:) 6365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6366printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6367ac_tool_warned=yes ;; 6368esac 6369 DLLTOOL=$ac_ct_DLLTOOL 6370 fi 6371else 6372 DLLTOOL="$ac_cv_prog_DLLTOOL" 6373fi 6374 6375test -z "$DLLTOOL" && DLLTOOL=dlltool 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6387printf %s "checking how to associate runtime and link libraries... " >&6; } 6388if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6389then : 6390 printf %s "(cached) " >&6 6391else $as_nop 6392 lt_cv_sharedlib_from_linklib_cmd='unknown' 6393 6394case $host_os in 6395cygwin* | mingw* | pw32* | cegcc*) 6396 # two different shell functions defined in ltmain.sh; 6397 # decide which one to use based on capabilities of $DLLTOOL 6398 case `$DLLTOOL --help 2>&1` in 6399 *--identify-strict*) 6400 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6401 ;; 6402 *) 6403 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6404 ;; 6405 esac 6406 ;; 6407*) 6408 # fallback: assume linklib IS sharedlib 6409 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6410 ;; 6411esac 6412 6413fi 6414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6415printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6416sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6417test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6418 6419 6420 6421 6422 6423 6424 6425if test -n "$ac_tool_prefix"; then 6426 for ac_prog in ar 6427 do 6428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6429set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6431printf %s "checking for $ac_word... " >&6; } 6432if test ${ac_cv_prog_AR+y} 6433then : 6434 printf %s "(cached) " >&6 6435else $as_nop 6436 if test -n "$AR"; then 6437 ac_cv_prog_AR="$AR" # Let the user override the test. 6438else 6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6440for as_dir in $PATH 6441do 6442 IFS=$as_save_IFS 6443 case $as_dir in #((( 6444 '') as_dir=./ ;; 6445 */) ;; 6446 *) as_dir=$as_dir/ ;; 6447 esac 6448 for ac_exec_ext in '' $ac_executable_extensions; do 6449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6450 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6452 break 2 6453 fi 6454done 6455 done 6456IFS=$as_save_IFS 6457 6458fi 6459fi 6460AR=$ac_cv_prog_AR 6461if test -n "$AR"; then 6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6463printf "%s\n" "$AR" >&6; } 6464else 6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6466printf "%s\n" "no" >&6; } 6467fi 6468 6469 6470 test -n "$AR" && break 6471 done 6472fi 6473if test -z "$AR"; then 6474 ac_ct_AR=$AR 6475 for ac_prog in ar 6476do 6477 # Extract the first word of "$ac_prog", so it can be a program name with args. 6478set dummy $ac_prog; ac_word=$2 6479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6480printf %s "checking for $ac_word... " >&6; } 6481if test ${ac_cv_prog_ac_ct_AR+y} 6482then : 6483 printf %s "(cached) " >&6 6484else $as_nop 6485 if test -n "$ac_ct_AR"; then 6486 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6487else 6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6489for as_dir in $PATH 6490do 6491 IFS=$as_save_IFS 6492 case $as_dir in #((( 6493 '') as_dir=./ ;; 6494 */) ;; 6495 *) as_dir=$as_dir/ ;; 6496 esac 6497 for ac_exec_ext in '' $ac_executable_extensions; do 6498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6499 ac_cv_prog_ac_ct_AR="$ac_prog" 6500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6501 break 2 6502 fi 6503done 6504 done 6505IFS=$as_save_IFS 6506 6507fi 6508fi 6509ac_ct_AR=$ac_cv_prog_ac_ct_AR 6510if test -n "$ac_ct_AR"; then 6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6512printf "%s\n" "$ac_ct_AR" >&6; } 6513else 6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6515printf "%s\n" "no" >&6; } 6516fi 6517 6518 6519 test -n "$ac_ct_AR" && break 6520done 6521 6522 if test "x$ac_ct_AR" = x; then 6523 AR="false" 6524 else 6525 case $cross_compiling:$ac_tool_warned in 6526yes:) 6527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6528printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6529ac_tool_warned=yes ;; 6530esac 6531 AR=$ac_ct_AR 6532 fi 6533fi 6534 6535: ${AR=ar} 6536 6537 6538 6539 6540 6541 6542# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6543# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6544# higher priority because thats what people were doing historically (setting 6545# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6546# variable obsoleted/removed. 6547 6548test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6549lt_ar_flags=$AR_FLAGS 6550 6551 6552 6553 6554 6555 6556# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6557# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6558 6559 6560 6561 6562 6563 6564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6565printf %s "checking for archiver @FILE support... " >&6; } 6566if test ${lt_cv_ar_at_file+y} 6567then : 6568 printf %s "(cached) " >&6 6569else $as_nop 6570 lt_cv_ar_at_file=no 6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6572/* end confdefs.h. */ 6573 6574int 6575main (void) 6576{ 6577 6578 ; 6579 return 0; 6580} 6581_ACEOF 6582if ac_fn_c_try_compile "$LINENO" 6583then : 6584 echo conftest.$ac_objext > conftest.lst 6585 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6587 (eval $lt_ar_try) 2>&5 6588 ac_status=$? 6589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6590 test $ac_status = 0; } 6591 if test 0 -eq "$ac_status"; then 6592 # Ensure the archiver fails upon bogus file names. 6593 rm -f conftest.$ac_objext libconftest.a 6594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6595 (eval $lt_ar_try) 2>&5 6596 ac_status=$? 6597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6598 test $ac_status = 0; } 6599 if test 0 -ne "$ac_status"; then 6600 lt_cv_ar_at_file=@ 6601 fi 6602 fi 6603 rm -f conftest.* libconftest.a 6604 6605fi 6606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6607 6608fi 6609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6610printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6611 6612if test no = "$lt_cv_ar_at_file"; then 6613 archiver_list_spec= 6614else 6615 archiver_list_spec=$lt_cv_ar_at_file 6616fi 6617 6618 6619 6620 6621 6622 6623 6624if test -n "$ac_tool_prefix"; then 6625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6626set dummy ${ac_tool_prefix}strip; ac_word=$2 6627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6628printf %s "checking for $ac_word... " >&6; } 6629if test ${ac_cv_prog_STRIP+y} 6630then : 6631 printf %s "(cached) " >&6 6632else $as_nop 6633 if test -n "$STRIP"; then 6634 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6635else 6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6637for as_dir in $PATH 6638do 6639 IFS=$as_save_IFS 6640 case $as_dir in #((( 6641 '') as_dir=./ ;; 6642 */) ;; 6643 *) as_dir=$as_dir/ ;; 6644 esac 6645 for ac_exec_ext in '' $ac_executable_extensions; do 6646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6647 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6649 break 2 6650 fi 6651done 6652 done 6653IFS=$as_save_IFS 6654 6655fi 6656fi 6657STRIP=$ac_cv_prog_STRIP 6658if test -n "$STRIP"; then 6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6660printf "%s\n" "$STRIP" >&6; } 6661else 6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6663printf "%s\n" "no" >&6; } 6664fi 6665 6666 6667fi 6668if test -z "$ac_cv_prog_STRIP"; then 6669 ac_ct_STRIP=$STRIP 6670 # Extract the first word of "strip", so it can be a program name with args. 6671set dummy strip; ac_word=$2 6672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6673printf %s "checking for $ac_word... " >&6; } 6674if test ${ac_cv_prog_ac_ct_STRIP+y} 6675then : 6676 printf %s "(cached) " >&6 6677else $as_nop 6678 if test -n "$ac_ct_STRIP"; then 6679 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6680else 6681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6682for as_dir in $PATH 6683do 6684 IFS=$as_save_IFS 6685 case $as_dir in #((( 6686 '') as_dir=./ ;; 6687 */) ;; 6688 *) as_dir=$as_dir/ ;; 6689 esac 6690 for ac_exec_ext in '' $ac_executable_extensions; do 6691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6692 ac_cv_prog_ac_ct_STRIP="strip" 6693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6694 break 2 6695 fi 6696done 6697 done 6698IFS=$as_save_IFS 6699 6700fi 6701fi 6702ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6703if test -n "$ac_ct_STRIP"; then 6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6705printf "%s\n" "$ac_ct_STRIP" >&6; } 6706else 6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6708printf "%s\n" "no" >&6; } 6709fi 6710 6711 if test "x$ac_ct_STRIP" = x; then 6712 STRIP=":" 6713 else 6714 case $cross_compiling:$ac_tool_warned in 6715yes:) 6716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6717printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6718ac_tool_warned=yes ;; 6719esac 6720 STRIP=$ac_ct_STRIP 6721 fi 6722else 6723 STRIP="$ac_cv_prog_STRIP" 6724fi 6725 6726test -z "$STRIP" && STRIP=: 6727 6728 6729 6730 6731 6732 6733if test -n "$ac_tool_prefix"; then 6734 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6735set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6737printf %s "checking for $ac_word... " >&6; } 6738if test ${ac_cv_prog_RANLIB+y} 6739then : 6740 printf %s "(cached) " >&6 6741else $as_nop 6742 if test -n "$RANLIB"; then 6743 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6744else 6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6746for as_dir in $PATH 6747do 6748 IFS=$as_save_IFS 6749 case $as_dir in #((( 6750 '') as_dir=./ ;; 6751 */) ;; 6752 *) as_dir=$as_dir/ ;; 6753 esac 6754 for ac_exec_ext in '' $ac_executable_extensions; do 6755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6758 break 2 6759 fi 6760done 6761 done 6762IFS=$as_save_IFS 6763 6764fi 6765fi 6766RANLIB=$ac_cv_prog_RANLIB 6767if test -n "$RANLIB"; then 6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6769printf "%s\n" "$RANLIB" >&6; } 6770else 6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6772printf "%s\n" "no" >&6; } 6773fi 6774 6775 6776fi 6777if test -z "$ac_cv_prog_RANLIB"; then 6778 ac_ct_RANLIB=$RANLIB 6779 # Extract the first word of "ranlib", so it can be a program name with args. 6780set dummy ranlib; ac_word=$2 6781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6782printf %s "checking for $ac_word... " >&6; } 6783if test ${ac_cv_prog_ac_ct_RANLIB+y} 6784then : 6785 printf %s "(cached) " >&6 6786else $as_nop 6787 if test -n "$ac_ct_RANLIB"; then 6788 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6789else 6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6791for as_dir in $PATH 6792do 6793 IFS=$as_save_IFS 6794 case $as_dir in #((( 6795 '') as_dir=./ ;; 6796 */) ;; 6797 *) as_dir=$as_dir/ ;; 6798 esac 6799 for ac_exec_ext in '' $ac_executable_extensions; do 6800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6801 ac_cv_prog_ac_ct_RANLIB="ranlib" 6802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6803 break 2 6804 fi 6805done 6806 done 6807IFS=$as_save_IFS 6808 6809fi 6810fi 6811ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6812if test -n "$ac_ct_RANLIB"; then 6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6814printf "%s\n" "$ac_ct_RANLIB" >&6; } 6815else 6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6817printf "%s\n" "no" >&6; } 6818fi 6819 6820 if test "x$ac_ct_RANLIB" = x; then 6821 RANLIB=":" 6822 else 6823 case $cross_compiling:$ac_tool_warned in 6824yes:) 6825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6826printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6827ac_tool_warned=yes ;; 6828esac 6829 RANLIB=$ac_ct_RANLIB 6830 fi 6831else 6832 RANLIB="$ac_cv_prog_RANLIB" 6833fi 6834 6835test -z "$RANLIB" && RANLIB=: 6836 6837 6838 6839 6840 6841 6842# Determine commands to create old-style static archives. 6843old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6844old_postinstall_cmds='chmod 644 $oldlib' 6845old_postuninstall_cmds= 6846 6847if test -n "$RANLIB"; then 6848 case $host_os in 6849 bitrig* | openbsd*) 6850 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6851 ;; 6852 *) 6853 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6854 ;; 6855 esac 6856 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6857fi 6858 6859case $host_os in 6860 darwin*) 6861 lock_old_archive_extraction=yes ;; 6862 *) 6863 lock_old_archive_extraction=no ;; 6864esac 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904# If no C compiler was specified, use CC. 6905LTCC=${LTCC-"$CC"} 6906 6907# If no C compiler flags were specified, use CFLAGS. 6908LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6909 6910# Allow CC to be a program name with arguments. 6911compiler=$CC 6912 6913 6914# Check for command to grab the raw symbol name followed by C symbol from nm. 6915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6916printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6917if test ${lt_cv_sys_global_symbol_pipe+y} 6918then : 6919 printf %s "(cached) " >&6 6920else $as_nop 6921 6922# These are sane defaults that work on at least a few old systems. 6923# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6924 6925# Character class describing NM global symbol codes. 6926symcode='[BCDEGRST]' 6927 6928# Regexp to match symbols that can be accessed directly from C. 6929sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6930 6931# Define system-specific variables. 6932case $host_os in 6933aix*) 6934 symcode='[BCDT]' 6935 ;; 6936cygwin* | mingw* | pw32* | cegcc*) 6937 symcode='[ABCDGISTW]' 6938 ;; 6939hpux*) 6940 if test ia64 = "$host_cpu"; then 6941 symcode='[ABCDEGRST]' 6942 fi 6943 ;; 6944irix* | nonstopux*) 6945 symcode='[BCDEGRST]' 6946 ;; 6947osf*) 6948 symcode='[BCDEGQRST]' 6949 ;; 6950solaris*) 6951 symcode='[BDRT]' 6952 ;; 6953sco3.2v5*) 6954 symcode='[DT]' 6955 ;; 6956sysv4.2uw2*) 6957 symcode='[DT]' 6958 ;; 6959sysv5* | sco5v6* | unixware* | OpenUNIX*) 6960 symcode='[ABDT]' 6961 ;; 6962sysv4) 6963 symcode='[DFNSTU]' 6964 ;; 6965esac 6966 6967# If we're using GNU nm, then use its standard symbol codes. 6968case `$NM -V 2>&1` in 6969*GNU* | *'with BFD'*) 6970 symcode='[ABCDGIRSTW]' ;; 6971esac 6972 6973if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6974 # Gets list of data symbols to import. 6975 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6976 # Adjust the below global symbol transforms to fixup imported variables. 6977 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6978 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6979 lt_c_name_lib_hook="\ 6980 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6981 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6982else 6983 # Disable hooks by default. 6984 lt_cv_sys_global_symbol_to_import= 6985 lt_cdecl_hook= 6986 lt_c_name_hook= 6987 lt_c_name_lib_hook= 6988fi 6989 6990# Transform an extracted symbol line into a proper C declaration. 6991# Some systems (esp. on ia64) link data and code symbols differently, 6992# so use this general approach. 6993lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6994$lt_cdecl_hook\ 6995" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6996" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6997 6998# Transform an extracted symbol line into symbol name and symbol address 6999lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7000$lt_c_name_hook\ 7001" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7002" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7003 7004# Transform an extracted symbol line into symbol name with lib prefix and 7005# symbol address. 7006lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7007$lt_c_name_lib_hook\ 7008" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7009" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7010" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7011 7012# Handle CRLF in mingw tool chain 7013opt_cr= 7014case $build_os in 7015mingw*) 7016 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7017 ;; 7018esac 7019 7020# Try without a prefix underscore, then with it. 7021for ac_symprfx in "" "_"; do 7022 7023 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7024 symxfrm="\\1 $ac_symprfx\\2 \\2" 7025 7026 # Write the raw and C identifiers. 7027 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7028 # Fake it for dumpbin and say T for any non-static function, 7029 # D for any global variable and I for any imported variable. 7030 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7031 # which start with @ or ?. 7032 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7033" {last_section=section; section=\$ 3};"\ 7034" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7035" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7036" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7037" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7038" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7039" \$ 0!~/External *\|/{next};"\ 7040" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7041" {if(hide[section]) next};"\ 7042" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7043" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7044" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7045" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7046" ' prfx=^$ac_symprfx" 7047 else 7048 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7049 fi 7050 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7051 7052 # Check to see that the pipe works correctly. 7053 pipe_works=no 7054 7055 rm -f conftest* 7056 cat > conftest.$ac_ext <<_LT_EOF 7057#ifdef __cplusplus 7058extern "C" { 7059#endif 7060char nm_test_var; 7061void nm_test_func(void); 7062void nm_test_func(void){} 7063#ifdef __cplusplus 7064} 7065#endif 7066int main(){nm_test_var='a';nm_test_func();return(0);} 7067_LT_EOF 7068 7069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7070 (eval $ac_compile) 2>&5 7071 ac_status=$? 7072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7073 test $ac_status = 0; }; then 7074 # Now try to grab the symbols. 7075 nlist=conftest.nm 7076 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7077 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7078 # Try sorting and uniquifying the output. 7079 if sort "$nlist" | uniq > "$nlist"T; then 7080 mv -f "$nlist"T "$nlist" 7081 else 7082 rm -f "$nlist"T 7083 fi 7084 7085 # Make sure that we snagged all the symbols we need. 7086 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7087 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7088 cat <<_LT_EOF > conftest.$ac_ext 7089/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7090#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7091/* DATA imports from DLLs on WIN32 can't be const, because runtime 7092 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7093# define LT_DLSYM_CONST 7094#elif defined __osf__ 7095/* This system does not cope well with relocations in const data. */ 7096# define LT_DLSYM_CONST 7097#else 7098# define LT_DLSYM_CONST const 7099#endif 7100 7101#ifdef __cplusplus 7102extern "C" { 7103#endif 7104 7105_LT_EOF 7106 # Now generate the symbol file. 7107 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7108 7109 cat <<_LT_EOF >> conftest.$ac_ext 7110 7111/* The mapping between symbol names and symbols. */ 7112LT_DLSYM_CONST struct { 7113 const char *name; 7114 void *address; 7115} 7116lt__PROGRAM__LTX_preloaded_symbols[] = 7117{ 7118 { "@PROGRAM@", (void *) 0 }, 7119_LT_EOF 7120 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7121 cat <<\_LT_EOF >> conftest.$ac_ext 7122 {0, (void *) 0} 7123}; 7124 7125/* This works around a problem in FreeBSD linker */ 7126#ifdef FREEBSD_WORKAROUND 7127static const void *lt_preloaded_setup() { 7128 return lt__PROGRAM__LTX_preloaded_symbols; 7129} 7130#endif 7131 7132#ifdef __cplusplus 7133} 7134#endif 7135_LT_EOF 7136 # Now try linking the two files. 7137 mv conftest.$ac_objext conftstm.$ac_objext 7138 lt_globsym_save_LIBS=$LIBS 7139 lt_globsym_save_CFLAGS=$CFLAGS 7140 LIBS=conftstm.$ac_objext 7141 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7143 (eval $ac_link) 2>&5 7144 ac_status=$? 7145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7146 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7147 pipe_works=yes 7148 fi 7149 LIBS=$lt_globsym_save_LIBS 7150 CFLAGS=$lt_globsym_save_CFLAGS 7151 else 7152 echo "cannot find nm_test_func in $nlist" >&5 7153 fi 7154 else 7155 echo "cannot find nm_test_var in $nlist" >&5 7156 fi 7157 else 7158 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7159 fi 7160 else 7161 echo "$progname: failed program was:" >&5 7162 cat conftest.$ac_ext >&5 7163 fi 7164 rm -rf conftest* conftst* 7165 7166 # Do not use the global_symbol_pipe unless it works. 7167 if test yes = "$pipe_works"; then 7168 break 7169 else 7170 lt_cv_sys_global_symbol_pipe= 7171 fi 7172done 7173 7174fi 7175 7176if test -z "$lt_cv_sys_global_symbol_pipe"; then 7177 lt_cv_sys_global_symbol_to_cdecl= 7178fi 7179if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7181printf "%s\n" "failed" >&6; } 7182else 7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7184printf "%s\n" "ok" >&6; } 7185fi 7186 7187# Response file support. 7188if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7189 nm_file_list_spec='@' 7190elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7191 nm_file_list_spec='@' 7192fi 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7231printf %s "checking for sysroot... " >&6; } 7232 7233# Check whether --with-sysroot was given. 7234if test ${with_sysroot+y} 7235then : 7236 withval=$with_sysroot; 7237else $as_nop 7238 with_sysroot=no 7239fi 7240 7241 7242lt_sysroot= 7243case $with_sysroot in #( 7244 yes) 7245 if test yes = "$GCC"; then 7246 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7247 fi 7248 ;; #( 7249 /*) 7250 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7251 ;; #( 7252 no|'') 7253 ;; #( 7254 *) 7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7256printf "%s\n" "$with_sysroot" >&6; } 7257 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7258 ;; 7259esac 7260 7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7262printf "%s\n" "${lt_sysroot:-no}" >&6; } 7263 7264 7265 7266 7267 7268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7269printf %s "checking for a working dd... " >&6; } 7270if test ${ac_cv_path_lt_DD+y} 7271then : 7272 printf %s "(cached) " >&6 7273else $as_nop 7274 printf 0123456789abcdef0123456789abcdef >conftest.i 7275cat conftest.i conftest.i >conftest2.i 7276: ${lt_DD:=$DD} 7277if test -z "$lt_DD"; then 7278 ac_path_lt_DD_found=false 7279 # Loop through the user's path and test for each of PROGNAME-LIST 7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7281for as_dir in $PATH 7282do 7283 IFS=$as_save_IFS 7284 case $as_dir in #((( 7285 '') as_dir=./ ;; 7286 */) ;; 7287 *) as_dir=$as_dir/ ;; 7288 esac 7289 for ac_prog in dd 7290 do 7291 for ac_exec_ext in '' $ac_executable_extensions; do 7292 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7293 as_fn_executable_p "$ac_path_lt_DD" || continue 7294if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7295 cmp -s conftest.i conftest.out \ 7296 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7297fi 7298 $ac_path_lt_DD_found && break 3 7299 done 7300 done 7301 done 7302IFS=$as_save_IFS 7303 if test -z "$ac_cv_path_lt_DD"; then 7304 : 7305 fi 7306else 7307 ac_cv_path_lt_DD=$lt_DD 7308fi 7309 7310rm -f conftest.i conftest2.i conftest.out 7311fi 7312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7313printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7314 7315 7316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7317printf %s "checking how to truncate binary pipes... " >&6; } 7318if test ${lt_cv_truncate_bin+y} 7319then : 7320 printf %s "(cached) " >&6 7321else $as_nop 7322 printf 0123456789abcdef0123456789abcdef >conftest.i 7323cat conftest.i conftest.i >conftest2.i 7324lt_cv_truncate_bin= 7325if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7326 cmp -s conftest.i conftest.out \ 7327 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7328fi 7329rm -f conftest.i conftest2.i conftest.out 7330test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7331fi 7332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7333printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7334 7335 7336 7337 7338 7339 7340 7341# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7342func_cc_basename () 7343{ 7344 for cc_temp in $*""; do 7345 case $cc_temp in 7346 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7347 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7348 \-*) ;; 7349 *) break;; 7350 esac 7351 done 7352 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7353} 7354 7355# Check whether --enable-libtool-lock was given. 7356if test ${enable_libtool_lock+y} 7357then : 7358 enableval=$enable_libtool_lock; 7359fi 7360 7361test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7362 7363# Some flags need to be propagated to the compiler or linker for good 7364# libtool support. 7365case $host in 7366ia64-*-hpux*) 7367 # Find out what ABI is being produced by ac_compile, and set mode 7368 # options accordingly. 7369 echo 'int i;' > conftest.$ac_ext 7370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7371 (eval $ac_compile) 2>&5 7372 ac_status=$? 7373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7374 test $ac_status = 0; }; then 7375 case `$FILECMD conftest.$ac_objext` in 7376 *ELF-32*) 7377 HPUX_IA64_MODE=32 7378 ;; 7379 *ELF-64*) 7380 HPUX_IA64_MODE=64 7381 ;; 7382 esac 7383 fi 7384 rm -rf conftest* 7385 ;; 7386*-*-irix6*) 7387 # Find out what ABI is being produced by ac_compile, and set linker 7388 # options accordingly. 7389 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7391 (eval $ac_compile) 2>&5 7392 ac_status=$? 7393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7394 test $ac_status = 0; }; then 7395 if test yes = "$lt_cv_prog_gnu_ld"; then 7396 case `$FILECMD conftest.$ac_objext` in 7397 *32-bit*) 7398 LD="${LD-ld} -melf32bsmip" 7399 ;; 7400 *N32*) 7401 LD="${LD-ld} -melf32bmipn32" 7402 ;; 7403 *64-bit*) 7404 LD="${LD-ld} -melf64bmip" 7405 ;; 7406 esac 7407 else 7408 case `$FILECMD conftest.$ac_objext` in 7409 *32-bit*) 7410 LD="${LD-ld} -32" 7411 ;; 7412 *N32*) 7413 LD="${LD-ld} -n32" 7414 ;; 7415 *64-bit*) 7416 LD="${LD-ld} -64" 7417 ;; 7418 esac 7419 fi 7420 fi 7421 rm -rf conftest* 7422 ;; 7423 7424mips64*-*linux*) 7425 # Find out what ABI is being produced by ac_compile, and set linker 7426 # options accordingly. 7427 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7429 (eval $ac_compile) 2>&5 7430 ac_status=$? 7431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7432 test $ac_status = 0; }; then 7433 emul=elf 7434 case `$FILECMD conftest.$ac_objext` in 7435 *32-bit*) 7436 emul="${emul}32" 7437 ;; 7438 *64-bit*) 7439 emul="${emul}64" 7440 ;; 7441 esac 7442 case `$FILECMD conftest.$ac_objext` in 7443 *MSB*) 7444 emul="${emul}btsmip" 7445 ;; 7446 *LSB*) 7447 emul="${emul}ltsmip" 7448 ;; 7449 esac 7450 case `$FILECMD conftest.$ac_objext` in 7451 *N32*) 7452 emul="${emul}n32" 7453 ;; 7454 esac 7455 LD="${LD-ld} -m $emul" 7456 fi 7457 rm -rf conftest* 7458 ;; 7459 7460x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7461s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7462 # Find out what ABI is being produced by ac_compile, and set linker 7463 # options accordingly. Note that the listed cases only cover the 7464 # situations where additional linker options are needed (such as when 7465 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7466 # vice versa); the common cases where no linker options are needed do 7467 # not appear in the list. 7468 echo 'int i;' > conftest.$ac_ext 7469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7470 (eval $ac_compile) 2>&5 7471 ac_status=$? 7472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7473 test $ac_status = 0; }; then 7474 case `$FILECMD conftest.o` in 7475 *32-bit*) 7476 case $host in 7477 x86_64-*kfreebsd*-gnu) 7478 LD="${LD-ld} -m elf_i386_fbsd" 7479 ;; 7480 x86_64-*linux*) 7481 case `$FILECMD conftest.o` in 7482 *x86-64*) 7483 LD="${LD-ld} -m elf32_x86_64" 7484 ;; 7485 *) 7486 LD="${LD-ld} -m elf_i386" 7487 ;; 7488 esac 7489 ;; 7490 powerpc64le-*linux*) 7491 LD="${LD-ld} -m elf32lppclinux" 7492 ;; 7493 powerpc64-*linux*) 7494 LD="${LD-ld} -m elf32ppclinux" 7495 ;; 7496 s390x-*linux*) 7497 LD="${LD-ld} -m elf_s390" 7498 ;; 7499 sparc64-*linux*) 7500 LD="${LD-ld} -m elf32_sparc" 7501 ;; 7502 esac 7503 ;; 7504 *64-bit*) 7505 case $host in 7506 x86_64-*kfreebsd*-gnu) 7507 LD="${LD-ld} -m elf_x86_64_fbsd" 7508 ;; 7509 x86_64-*linux*) 7510 LD="${LD-ld} -m elf_x86_64" 7511 ;; 7512 powerpcle-*linux*) 7513 LD="${LD-ld} -m elf64lppc" 7514 ;; 7515 powerpc-*linux*) 7516 LD="${LD-ld} -m elf64ppc" 7517 ;; 7518 s390*-*linux*|s390*-*tpf*) 7519 LD="${LD-ld} -m elf64_s390" 7520 ;; 7521 sparc*-*linux*) 7522 LD="${LD-ld} -m elf64_sparc" 7523 ;; 7524 esac 7525 ;; 7526 esac 7527 fi 7528 rm -rf conftest* 7529 ;; 7530 7531*-*-sco3.2v5*) 7532 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7533 SAVE_CFLAGS=$CFLAGS 7534 CFLAGS="$CFLAGS -belf" 7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7536printf %s "checking whether the C compiler needs -belf... " >&6; } 7537if test ${lt_cv_cc_needs_belf+y} 7538then : 7539 printf %s "(cached) " >&6 7540else $as_nop 7541 ac_ext=c 7542ac_cpp='$CPP $CPPFLAGS' 7543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7545ac_compiler_gnu=$ac_cv_c_compiler_gnu 7546 7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7548/* end confdefs.h. */ 7549 7550int 7551main (void) 7552{ 7553 7554 ; 7555 return 0; 7556} 7557_ACEOF 7558if ac_fn_c_try_link "$LINENO" 7559then : 7560 lt_cv_cc_needs_belf=yes 7561else $as_nop 7562 lt_cv_cc_needs_belf=no 7563fi 7564rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7565 conftest$ac_exeext conftest.$ac_ext 7566 ac_ext=c 7567ac_cpp='$CPP $CPPFLAGS' 7568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7570ac_compiler_gnu=$ac_cv_c_compiler_gnu 7571 7572fi 7573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7574printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7575 if test yes != "$lt_cv_cc_needs_belf"; then 7576 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7577 CFLAGS=$SAVE_CFLAGS 7578 fi 7579 ;; 7580*-*solaris*) 7581 # Find out what ABI is being produced by ac_compile, and set linker 7582 # options accordingly. 7583 echo 'int i;' > conftest.$ac_ext 7584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7585 (eval $ac_compile) 2>&5 7586 ac_status=$? 7587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7588 test $ac_status = 0; }; then 7589 case `$FILECMD conftest.o` in 7590 *64-bit*) 7591 case $lt_cv_prog_gnu_ld in 7592 yes*) 7593 case $host in 7594 i?86-*-solaris*|x86_64-*-solaris*) 7595 LD="${LD-ld} -m elf_x86_64" 7596 ;; 7597 sparc*-*-solaris*) 7598 LD="${LD-ld} -m elf64_sparc" 7599 ;; 7600 esac 7601 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7602 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7603 LD=${LD-ld}_sol2 7604 fi 7605 ;; 7606 *) 7607 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7608 LD="${LD-ld} -64" 7609 fi 7610 ;; 7611 esac 7612 ;; 7613 esac 7614 fi 7615 rm -rf conftest* 7616 ;; 7617esac 7618 7619need_locks=$enable_libtool_lock 7620 7621if test -n "$ac_tool_prefix"; then 7622 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7623set dummy ${ac_tool_prefix}mt; ac_word=$2 7624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7625printf %s "checking for $ac_word... " >&6; } 7626if test ${ac_cv_prog_MANIFEST_TOOL+y} 7627then : 7628 printf %s "(cached) " >&6 7629else $as_nop 7630 if test -n "$MANIFEST_TOOL"; then 7631 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7632else 7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7634for as_dir in $PATH 7635do 7636 IFS=$as_save_IFS 7637 case $as_dir in #((( 7638 '') as_dir=./ ;; 7639 */) ;; 7640 *) as_dir=$as_dir/ ;; 7641 esac 7642 for ac_exec_ext in '' $ac_executable_extensions; do 7643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7644 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7646 break 2 7647 fi 7648done 7649 done 7650IFS=$as_save_IFS 7651 7652fi 7653fi 7654MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7655if test -n "$MANIFEST_TOOL"; then 7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7657printf "%s\n" "$MANIFEST_TOOL" >&6; } 7658else 7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7660printf "%s\n" "no" >&6; } 7661fi 7662 7663 7664fi 7665if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7666 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7667 # Extract the first word of "mt", so it can be a program name with args. 7668set dummy mt; ac_word=$2 7669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7670printf %s "checking for $ac_word... " >&6; } 7671if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7672then : 7673 printf %s "(cached) " >&6 7674else $as_nop 7675 if test -n "$ac_ct_MANIFEST_TOOL"; then 7676 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7677else 7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7679for as_dir in $PATH 7680do 7681 IFS=$as_save_IFS 7682 case $as_dir in #((( 7683 '') as_dir=./ ;; 7684 */) ;; 7685 *) as_dir=$as_dir/ ;; 7686 esac 7687 for ac_exec_ext in '' $ac_executable_extensions; do 7688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7689 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7691 break 2 7692 fi 7693done 7694 done 7695IFS=$as_save_IFS 7696 7697fi 7698fi 7699ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7700if test -n "$ac_ct_MANIFEST_TOOL"; then 7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7702printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7703else 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7705printf "%s\n" "no" >&6; } 7706fi 7707 7708 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7709 MANIFEST_TOOL=":" 7710 else 7711 case $cross_compiling:$ac_tool_warned in 7712yes:) 7713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7714printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7715ac_tool_warned=yes ;; 7716esac 7717 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7718 fi 7719else 7720 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7721fi 7722 7723test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7725printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7726if test ${lt_cv_path_mainfest_tool+y} 7727then : 7728 printf %s "(cached) " >&6 7729else $as_nop 7730 lt_cv_path_mainfest_tool=no 7731 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7732 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7733 cat conftest.err >&5 7734 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7735 lt_cv_path_mainfest_tool=yes 7736 fi 7737 rm -f conftest* 7738fi 7739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7740printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7741if test yes != "$lt_cv_path_mainfest_tool"; then 7742 MANIFEST_TOOL=: 7743fi 7744 7745 7746 7747 7748 7749 7750 case $host_os in 7751 rhapsody* | darwin*) 7752 if test -n "$ac_tool_prefix"; then 7753 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7754set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7756printf %s "checking for $ac_word... " >&6; } 7757if test ${ac_cv_prog_DSYMUTIL+y} 7758then : 7759 printf %s "(cached) " >&6 7760else $as_nop 7761 if test -n "$DSYMUTIL"; then 7762 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7763else 7764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7765for as_dir in $PATH 7766do 7767 IFS=$as_save_IFS 7768 case $as_dir in #((( 7769 '') as_dir=./ ;; 7770 */) ;; 7771 *) as_dir=$as_dir/ ;; 7772 esac 7773 for ac_exec_ext in '' $ac_executable_extensions; do 7774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7775 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7777 break 2 7778 fi 7779done 7780 done 7781IFS=$as_save_IFS 7782 7783fi 7784fi 7785DSYMUTIL=$ac_cv_prog_DSYMUTIL 7786if test -n "$DSYMUTIL"; then 7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7788printf "%s\n" "$DSYMUTIL" >&6; } 7789else 7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7791printf "%s\n" "no" >&6; } 7792fi 7793 7794 7795fi 7796if test -z "$ac_cv_prog_DSYMUTIL"; then 7797 ac_ct_DSYMUTIL=$DSYMUTIL 7798 # Extract the first word of "dsymutil", so it can be a program name with args. 7799set dummy dsymutil; ac_word=$2 7800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7801printf %s "checking for $ac_word... " >&6; } 7802if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7803then : 7804 printf %s "(cached) " >&6 7805else $as_nop 7806 if test -n "$ac_ct_DSYMUTIL"; then 7807 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7808else 7809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7810for as_dir in $PATH 7811do 7812 IFS=$as_save_IFS 7813 case $as_dir in #((( 7814 '') as_dir=./ ;; 7815 */) ;; 7816 *) as_dir=$as_dir/ ;; 7817 esac 7818 for ac_exec_ext in '' $ac_executable_extensions; do 7819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7820 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7822 break 2 7823 fi 7824done 7825 done 7826IFS=$as_save_IFS 7827 7828fi 7829fi 7830ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7831if test -n "$ac_ct_DSYMUTIL"; then 7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7833printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7834else 7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7836printf "%s\n" "no" >&6; } 7837fi 7838 7839 if test "x$ac_ct_DSYMUTIL" = x; then 7840 DSYMUTIL=":" 7841 else 7842 case $cross_compiling:$ac_tool_warned in 7843yes:) 7844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7845printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7846ac_tool_warned=yes ;; 7847esac 7848 DSYMUTIL=$ac_ct_DSYMUTIL 7849 fi 7850else 7851 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7852fi 7853 7854 if test -n "$ac_tool_prefix"; then 7855 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7856set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7858printf %s "checking for $ac_word... " >&6; } 7859if test ${ac_cv_prog_NMEDIT+y} 7860then : 7861 printf %s "(cached) " >&6 7862else $as_nop 7863 if test -n "$NMEDIT"; then 7864 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7865else 7866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7867for as_dir in $PATH 7868do 7869 IFS=$as_save_IFS 7870 case $as_dir in #((( 7871 '') as_dir=./ ;; 7872 */) ;; 7873 *) as_dir=$as_dir/ ;; 7874 esac 7875 for ac_exec_ext in '' $ac_executable_extensions; do 7876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7877 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7879 break 2 7880 fi 7881done 7882 done 7883IFS=$as_save_IFS 7884 7885fi 7886fi 7887NMEDIT=$ac_cv_prog_NMEDIT 7888if test -n "$NMEDIT"; then 7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7890printf "%s\n" "$NMEDIT" >&6; } 7891else 7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7893printf "%s\n" "no" >&6; } 7894fi 7895 7896 7897fi 7898if test -z "$ac_cv_prog_NMEDIT"; then 7899 ac_ct_NMEDIT=$NMEDIT 7900 # Extract the first word of "nmedit", so it can be a program name with args. 7901set dummy nmedit; ac_word=$2 7902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7903printf %s "checking for $ac_word... " >&6; } 7904if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7905then : 7906 printf %s "(cached) " >&6 7907else $as_nop 7908 if test -n "$ac_ct_NMEDIT"; then 7909 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7910else 7911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7912for as_dir in $PATH 7913do 7914 IFS=$as_save_IFS 7915 case $as_dir in #((( 7916 '') as_dir=./ ;; 7917 */) ;; 7918 *) as_dir=$as_dir/ ;; 7919 esac 7920 for ac_exec_ext in '' $ac_executable_extensions; do 7921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7922 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7924 break 2 7925 fi 7926done 7927 done 7928IFS=$as_save_IFS 7929 7930fi 7931fi 7932ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7933if test -n "$ac_ct_NMEDIT"; then 7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7935printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7936else 7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7938printf "%s\n" "no" >&6; } 7939fi 7940 7941 if test "x$ac_ct_NMEDIT" = x; then 7942 NMEDIT=":" 7943 else 7944 case $cross_compiling:$ac_tool_warned in 7945yes:) 7946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7947printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7948ac_tool_warned=yes ;; 7949esac 7950 NMEDIT=$ac_ct_NMEDIT 7951 fi 7952else 7953 NMEDIT="$ac_cv_prog_NMEDIT" 7954fi 7955 7956 if test -n "$ac_tool_prefix"; then 7957 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7958set dummy ${ac_tool_prefix}lipo; ac_word=$2 7959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7960printf %s "checking for $ac_word... " >&6; } 7961if test ${ac_cv_prog_LIPO+y} 7962then : 7963 printf %s "(cached) " >&6 7964else $as_nop 7965 if test -n "$LIPO"; then 7966 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7967else 7968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7969for as_dir in $PATH 7970do 7971 IFS=$as_save_IFS 7972 case $as_dir in #((( 7973 '') as_dir=./ ;; 7974 */) ;; 7975 *) as_dir=$as_dir/ ;; 7976 esac 7977 for ac_exec_ext in '' $ac_executable_extensions; do 7978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7979 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7981 break 2 7982 fi 7983done 7984 done 7985IFS=$as_save_IFS 7986 7987fi 7988fi 7989LIPO=$ac_cv_prog_LIPO 7990if test -n "$LIPO"; then 7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7992printf "%s\n" "$LIPO" >&6; } 7993else 7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7995printf "%s\n" "no" >&6; } 7996fi 7997 7998 7999fi 8000if test -z "$ac_cv_prog_LIPO"; then 8001 ac_ct_LIPO=$LIPO 8002 # Extract the first word of "lipo", so it can be a program name with args. 8003set dummy lipo; ac_word=$2 8004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8005printf %s "checking for $ac_word... " >&6; } 8006if test ${ac_cv_prog_ac_ct_LIPO+y} 8007then : 8008 printf %s "(cached) " >&6 8009else $as_nop 8010 if test -n "$ac_ct_LIPO"; then 8011 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8012else 8013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8014for as_dir in $PATH 8015do 8016 IFS=$as_save_IFS 8017 case $as_dir in #((( 8018 '') as_dir=./ ;; 8019 */) ;; 8020 *) as_dir=$as_dir/ ;; 8021 esac 8022 for ac_exec_ext in '' $ac_executable_extensions; do 8023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8024 ac_cv_prog_ac_ct_LIPO="lipo" 8025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8026 break 2 8027 fi 8028done 8029 done 8030IFS=$as_save_IFS 8031 8032fi 8033fi 8034ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8035if test -n "$ac_ct_LIPO"; then 8036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8037printf "%s\n" "$ac_ct_LIPO" >&6; } 8038else 8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8040printf "%s\n" "no" >&6; } 8041fi 8042 8043 if test "x$ac_ct_LIPO" = x; then 8044 LIPO=":" 8045 else 8046 case $cross_compiling:$ac_tool_warned in 8047yes:) 8048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8049printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8050ac_tool_warned=yes ;; 8051esac 8052 LIPO=$ac_ct_LIPO 8053 fi 8054else 8055 LIPO="$ac_cv_prog_LIPO" 8056fi 8057 8058 if test -n "$ac_tool_prefix"; then 8059 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8060set dummy ${ac_tool_prefix}otool; ac_word=$2 8061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8062printf %s "checking for $ac_word... " >&6; } 8063if test ${ac_cv_prog_OTOOL+y} 8064then : 8065 printf %s "(cached) " >&6 8066else $as_nop 8067 if test -n "$OTOOL"; then 8068 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8069else 8070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8071for as_dir in $PATH 8072do 8073 IFS=$as_save_IFS 8074 case $as_dir in #((( 8075 '') as_dir=./ ;; 8076 */) ;; 8077 *) as_dir=$as_dir/ ;; 8078 esac 8079 for ac_exec_ext in '' $ac_executable_extensions; do 8080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8081 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8083 break 2 8084 fi 8085done 8086 done 8087IFS=$as_save_IFS 8088 8089fi 8090fi 8091OTOOL=$ac_cv_prog_OTOOL 8092if test -n "$OTOOL"; then 8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8094printf "%s\n" "$OTOOL" >&6; } 8095else 8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8097printf "%s\n" "no" >&6; } 8098fi 8099 8100 8101fi 8102if test -z "$ac_cv_prog_OTOOL"; then 8103 ac_ct_OTOOL=$OTOOL 8104 # Extract the first word of "otool", so it can be a program name with args. 8105set dummy otool; ac_word=$2 8106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8107printf %s "checking for $ac_word... " >&6; } 8108if test ${ac_cv_prog_ac_ct_OTOOL+y} 8109then : 8110 printf %s "(cached) " >&6 8111else $as_nop 8112 if test -n "$ac_ct_OTOOL"; then 8113 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8114else 8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8116for as_dir in $PATH 8117do 8118 IFS=$as_save_IFS 8119 case $as_dir in #((( 8120 '') as_dir=./ ;; 8121 */) ;; 8122 *) as_dir=$as_dir/ ;; 8123 esac 8124 for ac_exec_ext in '' $ac_executable_extensions; do 8125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8126 ac_cv_prog_ac_ct_OTOOL="otool" 8127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8128 break 2 8129 fi 8130done 8131 done 8132IFS=$as_save_IFS 8133 8134fi 8135fi 8136ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8137if test -n "$ac_ct_OTOOL"; then 8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8139printf "%s\n" "$ac_ct_OTOOL" >&6; } 8140else 8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8142printf "%s\n" "no" >&6; } 8143fi 8144 8145 if test "x$ac_ct_OTOOL" = x; then 8146 OTOOL=":" 8147 else 8148 case $cross_compiling:$ac_tool_warned in 8149yes:) 8150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8151printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8152ac_tool_warned=yes ;; 8153esac 8154 OTOOL=$ac_ct_OTOOL 8155 fi 8156else 8157 OTOOL="$ac_cv_prog_OTOOL" 8158fi 8159 8160 if test -n "$ac_tool_prefix"; then 8161 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8162set dummy ${ac_tool_prefix}otool64; ac_word=$2 8163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8164printf %s "checking for $ac_word... " >&6; } 8165if test ${ac_cv_prog_OTOOL64+y} 8166then : 8167 printf %s "(cached) " >&6 8168else $as_nop 8169 if test -n "$OTOOL64"; then 8170 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8171else 8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8173for as_dir in $PATH 8174do 8175 IFS=$as_save_IFS 8176 case $as_dir in #((( 8177 '') as_dir=./ ;; 8178 */) ;; 8179 *) as_dir=$as_dir/ ;; 8180 esac 8181 for ac_exec_ext in '' $ac_executable_extensions; do 8182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8183 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8185 break 2 8186 fi 8187done 8188 done 8189IFS=$as_save_IFS 8190 8191fi 8192fi 8193OTOOL64=$ac_cv_prog_OTOOL64 8194if test -n "$OTOOL64"; then 8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8196printf "%s\n" "$OTOOL64" >&6; } 8197else 8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8199printf "%s\n" "no" >&6; } 8200fi 8201 8202 8203fi 8204if test -z "$ac_cv_prog_OTOOL64"; then 8205 ac_ct_OTOOL64=$OTOOL64 8206 # Extract the first word of "otool64", so it can be a program name with args. 8207set dummy otool64; ac_word=$2 8208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8209printf %s "checking for $ac_word... " >&6; } 8210if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8211then : 8212 printf %s "(cached) " >&6 8213else $as_nop 8214 if test -n "$ac_ct_OTOOL64"; then 8215 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8216else 8217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8218for as_dir in $PATH 8219do 8220 IFS=$as_save_IFS 8221 case $as_dir in #((( 8222 '') as_dir=./ ;; 8223 */) ;; 8224 *) as_dir=$as_dir/ ;; 8225 esac 8226 for ac_exec_ext in '' $ac_executable_extensions; do 8227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8228 ac_cv_prog_ac_ct_OTOOL64="otool64" 8229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8230 break 2 8231 fi 8232done 8233 done 8234IFS=$as_save_IFS 8235 8236fi 8237fi 8238ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8239if test -n "$ac_ct_OTOOL64"; then 8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8241printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8242else 8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8244printf "%s\n" "no" >&6; } 8245fi 8246 8247 if test "x$ac_ct_OTOOL64" = x; then 8248 OTOOL64=":" 8249 else 8250 case $cross_compiling:$ac_tool_warned in 8251yes:) 8252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8253printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8254ac_tool_warned=yes ;; 8255esac 8256 OTOOL64=$ac_ct_OTOOL64 8257 fi 8258else 8259 OTOOL64="$ac_cv_prog_OTOOL64" 8260fi 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8289printf %s "checking for -single_module linker flag... " >&6; } 8290if test ${lt_cv_apple_cc_single_mod+y} 8291then : 8292 printf %s "(cached) " >&6 8293else $as_nop 8294 lt_cv_apple_cc_single_mod=no 8295 if test -z "$LT_MULTI_MODULE"; then 8296 # By default we will add the -single_module flag. You can override 8297 # by either setting the environment variable LT_MULTI_MODULE 8298 # non-empty at configure time, or by adding -multi_module to the 8299 # link flags. 8300 rm -rf libconftest.dylib* 8301 echo "int foo(void){return 1;}" > conftest.c 8302 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8303-dynamiclib -Wl,-single_module conftest.c" >&5 8304 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8305 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8306 _lt_result=$? 8307 # If there is a non-empty error log, and "single_module" 8308 # appears in it, assume the flag caused a linker warning 8309 if test -s conftest.err && $GREP single_module conftest.err; then 8310 cat conftest.err >&5 8311 # Otherwise, if the output was created with a 0 exit code from 8312 # the compiler, it worked. 8313 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8314 lt_cv_apple_cc_single_mod=yes 8315 else 8316 cat conftest.err >&5 8317 fi 8318 rm -rf libconftest.dylib* 8319 rm -f conftest.* 8320 fi 8321fi 8322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8323printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8324 8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8326printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8327if test ${lt_cv_ld_exported_symbols_list+y} 8328then : 8329 printf %s "(cached) " >&6 8330else $as_nop 8331 lt_cv_ld_exported_symbols_list=no 8332 save_LDFLAGS=$LDFLAGS 8333 echo "_main" > conftest.sym 8334 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8336/* end confdefs.h. */ 8337 8338int 8339main (void) 8340{ 8341 8342 ; 8343 return 0; 8344} 8345_ACEOF 8346if ac_fn_c_try_link "$LINENO" 8347then : 8348 lt_cv_ld_exported_symbols_list=yes 8349else $as_nop 8350 lt_cv_ld_exported_symbols_list=no 8351fi 8352rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8353 conftest$ac_exeext conftest.$ac_ext 8354 LDFLAGS=$save_LDFLAGS 8355 8356fi 8357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8358printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8359 8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8361printf %s "checking for -force_load linker flag... " >&6; } 8362if test ${lt_cv_ld_force_load+y} 8363then : 8364 printf %s "(cached) " >&6 8365else $as_nop 8366 lt_cv_ld_force_load=no 8367 cat > conftest.c << _LT_EOF 8368int forced_loaded() { return 2;} 8369_LT_EOF 8370 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8371 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8372 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8373 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8374 echo "$RANLIB libconftest.a" >&5 8375 $RANLIB libconftest.a 2>&5 8376 cat > conftest.c << _LT_EOF 8377int main() { return 0;} 8378_LT_EOF 8379 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8380 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8381 _lt_result=$? 8382 if test -s conftest.err && $GREP force_load conftest.err; then 8383 cat conftest.err >&5 8384 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8385 lt_cv_ld_force_load=yes 8386 else 8387 cat conftest.err >&5 8388 fi 8389 rm -f conftest.err libconftest.a conftest conftest.c 8390 rm -rf conftest.dSYM 8391 8392fi 8393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8394printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8395 case $host_os in 8396 rhapsody* | darwin1.[012]) 8397 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8398 darwin1.*) 8399 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8400 darwin*) 8401 case $MACOSX_DEPLOYMENT_TARGET,$host in 8402 10.[012],*|,*powerpc*-darwin[5-8]*) 8403 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8404 *) 8405 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8406 esac 8407 ;; 8408 esac 8409 if test yes = "$lt_cv_apple_cc_single_mod"; then 8410 _lt_dar_single_mod='$single_module' 8411 fi 8412 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8413 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8414 else 8415 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8416 fi 8417 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8418 _lt_dsymutil='~$DSYMUTIL $lib || :' 8419 else 8420 _lt_dsymutil= 8421 fi 8422 ;; 8423 esac 8424 8425# func_munge_path_list VARIABLE PATH 8426# ----------------------------------- 8427# VARIABLE is name of variable containing _space_ separated list of 8428# directories to be munged by the contents of PATH, which is string 8429# having a format: 8430# "DIR[:DIR]:" 8431# string "DIR[ DIR]" will be prepended to VARIABLE 8432# ":DIR[:DIR]" 8433# string "DIR[ DIR]" will be appended to VARIABLE 8434# "DIRP[:DIRP]::[DIRA:]DIRA" 8435# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8436# "DIRA[ DIRA]" will be appended to VARIABLE 8437# "DIR[:DIR]" 8438# VARIABLE will be replaced by "DIR[ DIR]" 8439func_munge_path_list () 8440{ 8441 case x$2 in 8442 x) 8443 ;; 8444 *:) 8445 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8446 ;; 8447 x:*) 8448 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8449 ;; 8450 *::*) 8451 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8452 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8453 ;; 8454 *) 8455 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8456 ;; 8457 esac 8458} 8459 8460ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8461" 8462if test "x$ac_cv_header_dlfcn_h" = xyes 8463then : 8464 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8465 8466fi 8467 8468 8469 8470 8471 8472# Set options 8473 8474 8475 8476 enable_dlopen=no 8477 8478 8479 enable_win32_dll=no 8480 8481 8482 # Check whether --enable-shared was given. 8483if test ${enable_shared+y} 8484then : 8485 enableval=$enable_shared; p=${PACKAGE-default} 8486 case $enableval in 8487 yes) enable_shared=yes ;; 8488 no) enable_shared=no ;; 8489 *) 8490 enable_shared=no 8491 # Look at the argument we got. We use all the common list separators. 8492 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8493 for pkg in $enableval; do 8494 IFS=$lt_save_ifs 8495 if test "X$pkg" = "X$p"; then 8496 enable_shared=yes 8497 fi 8498 done 8499 IFS=$lt_save_ifs 8500 ;; 8501 esac 8502else $as_nop 8503 enable_shared=yes 8504fi 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 # Check whether --enable-static was given. 8515if test ${enable_static+y} 8516then : 8517 enableval=$enable_static; p=${PACKAGE-default} 8518 case $enableval in 8519 yes) enable_static=yes ;; 8520 no) enable_static=no ;; 8521 *) 8522 enable_static=no 8523 # Look at the argument we got. We use all the common list separators. 8524 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8525 for pkg in $enableval; do 8526 IFS=$lt_save_ifs 8527 if test "X$pkg" = "X$p"; then 8528 enable_static=yes 8529 fi 8530 done 8531 IFS=$lt_save_ifs 8532 ;; 8533 esac 8534else $as_nop 8535 enable_static=yes 8536fi 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547# Check whether --with-pic was given. 8548if test ${with_pic+y} 8549then : 8550 withval=$with_pic; lt_p=${PACKAGE-default} 8551 case $withval in 8552 yes|no) pic_mode=$withval ;; 8553 *) 8554 pic_mode=default 8555 # Look at the argument we got. We use all the common list separators. 8556 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8557 for lt_pkg in $withval; do 8558 IFS=$lt_save_ifs 8559 if test "X$lt_pkg" = "X$lt_p"; then 8560 pic_mode=yes 8561 fi 8562 done 8563 IFS=$lt_save_ifs 8564 ;; 8565 esac 8566else $as_nop 8567 pic_mode=default 8568fi 8569 8570 8571 8572 8573 8574 8575 8576 8577 # Check whether --enable-fast-install was given. 8578if test ${enable_fast_install+y} 8579then : 8580 enableval=$enable_fast_install; p=${PACKAGE-default} 8581 case $enableval in 8582 yes) enable_fast_install=yes ;; 8583 no) enable_fast_install=no ;; 8584 *) 8585 enable_fast_install=no 8586 # Look at the argument we got. We use all the common list separators. 8587 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8588 for pkg in $enableval; do 8589 IFS=$lt_save_ifs 8590 if test "X$pkg" = "X$p"; then 8591 enable_fast_install=yes 8592 fi 8593 done 8594 IFS=$lt_save_ifs 8595 ;; 8596 esac 8597else $as_nop 8598 enable_fast_install=yes 8599fi 8600 8601 8602 8603 8604 8605 8606 8607 8608 shared_archive_member_spec= 8609case $host,$enable_shared in 8610power*-*-aix[5-9]*,yes) 8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8612printf %s "checking which variant of shared library versioning to provide... " >&6; } 8613 8614# Check whether --with-aix-soname was given. 8615if test ${with_aix_soname+y} 8616then : 8617 withval=$with_aix_soname; case $withval in 8618 aix|svr4|both) 8619 ;; 8620 *) 8621 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8622 ;; 8623 esac 8624 lt_cv_with_aix_soname=$with_aix_soname 8625else $as_nop 8626 if test ${lt_cv_with_aix_soname+y} 8627then : 8628 printf %s "(cached) " >&6 8629else $as_nop 8630 lt_cv_with_aix_soname=aix 8631fi 8632 8633 with_aix_soname=$lt_cv_with_aix_soname 8634fi 8635 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8637printf "%s\n" "$with_aix_soname" >&6; } 8638 if test aix != "$with_aix_soname"; then 8639 # For the AIX way of multilib, we name the shared archive member 8640 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8641 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8642 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8643 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8644 if test 64 = "${OBJECT_MODE-32}"; then 8645 shared_archive_member_spec=shr_64 8646 else 8647 shared_archive_member_spec=shr 8648 fi 8649 fi 8650 ;; 8651*) 8652 with_aix_soname=aix 8653 ;; 8654esac 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665# This can be used to rebuild libtool when needed 8666LIBTOOL_DEPS=$ltmain 8667 8668# Always use our own libtool. 8669LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700test -z "$LN_S" && LN_S="ln -s" 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715if test -n "${ZSH_VERSION+set}"; then 8716 setopt NO_GLOB_SUBST 8717fi 8718 8719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8720printf %s "checking for objdir... " >&6; } 8721if test ${lt_cv_objdir+y} 8722then : 8723 printf %s "(cached) " >&6 8724else $as_nop 8725 rm -f .libs 2>/dev/null 8726mkdir .libs 2>/dev/null 8727if test -d .libs; then 8728 lt_cv_objdir=.libs 8729else 8730 # MS-DOS does not allow filenames that begin with a dot. 8731 lt_cv_objdir=_libs 8732fi 8733rmdir .libs 2>/dev/null 8734fi 8735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8736printf "%s\n" "$lt_cv_objdir" >&6; } 8737objdir=$lt_cv_objdir 8738 8739 8740 8741 8742 8743printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8744 8745 8746 8747 8748case $host_os in 8749aix3*) 8750 # AIX sometimes has problems with the GCC collect2 program. For some 8751 # reason, if we set the COLLECT_NAMES environment variable, the problems 8752 # vanish in a puff of smoke. 8753 if test set != "${COLLECT_NAMES+set}"; then 8754 COLLECT_NAMES= 8755 export COLLECT_NAMES 8756 fi 8757 ;; 8758esac 8759 8760# Global variables: 8761ofile=libtool 8762can_build_shared=yes 8763 8764# All known linkers require a '.a' archive for static linking (except MSVC and 8765# ICC, which need '.lib'). 8766libext=a 8767 8768with_gnu_ld=$lt_cv_prog_gnu_ld 8769 8770old_CC=$CC 8771old_CFLAGS=$CFLAGS 8772 8773# Set sane defaults for various variables 8774test -z "$CC" && CC=cc 8775test -z "$LTCC" && LTCC=$CC 8776test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8777test -z "$LD" && LD=ld 8778test -z "$ac_objext" && ac_objext=o 8779 8780func_cc_basename $compiler 8781cc_basename=$func_cc_basename_result 8782 8783 8784# Only perform the check for file, if the check method requires it 8785test -z "$MAGIC_CMD" && MAGIC_CMD=file 8786case $deplibs_check_method in 8787file_magic*) 8788 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8790printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8791if test ${lt_cv_path_MAGIC_CMD+y} 8792then : 8793 printf %s "(cached) " >&6 8794else $as_nop 8795 case $MAGIC_CMD in 8796[\\/*] | ?:[\\/]*) 8797 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8798 ;; 8799*) 8800 lt_save_MAGIC_CMD=$MAGIC_CMD 8801 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8802 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8803 for ac_dir in $ac_dummy; do 8804 IFS=$lt_save_ifs 8805 test -z "$ac_dir" && ac_dir=. 8806 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8807 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8808 if test -n "$file_magic_test_file"; then 8809 case $deplibs_check_method in 8810 "file_magic "*) 8811 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8812 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8813 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8814 $EGREP "$file_magic_regex" > /dev/null; then 8815 : 8816 else 8817 cat <<_LT_EOF 1>&2 8818 8819*** Warning: the command libtool uses to detect shared libraries, 8820*** $file_magic_cmd, produces output that libtool cannot recognize. 8821*** The result is that libtool may fail to recognize shared libraries 8822*** as such. This will affect the creation of libtool libraries that 8823*** depend on shared libraries, but programs linked with such libtool 8824*** libraries will work regardless of this problem. Nevertheless, you 8825*** may want to report the problem to your system manager and/or to 8826*** bug-libtool@gnu.org 8827 8828_LT_EOF 8829 fi ;; 8830 esac 8831 fi 8832 break 8833 fi 8834 done 8835 IFS=$lt_save_ifs 8836 MAGIC_CMD=$lt_save_MAGIC_CMD 8837 ;; 8838esac 8839fi 8840 8841MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8842if test -n "$MAGIC_CMD"; then 8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8844printf "%s\n" "$MAGIC_CMD" >&6; } 8845else 8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8847printf "%s\n" "no" >&6; } 8848fi 8849 8850 8851 8852 8853 8854if test -z "$lt_cv_path_MAGIC_CMD"; then 8855 if test -n "$ac_tool_prefix"; then 8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8857printf %s "checking for file... " >&6; } 8858if test ${lt_cv_path_MAGIC_CMD+y} 8859then : 8860 printf %s "(cached) " >&6 8861else $as_nop 8862 case $MAGIC_CMD in 8863[\\/*] | ?:[\\/]*) 8864 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8865 ;; 8866*) 8867 lt_save_MAGIC_CMD=$MAGIC_CMD 8868 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8869 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8870 for ac_dir in $ac_dummy; do 8871 IFS=$lt_save_ifs 8872 test -z "$ac_dir" && ac_dir=. 8873 if test -f "$ac_dir/file"; then 8874 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8875 if test -n "$file_magic_test_file"; then 8876 case $deplibs_check_method in 8877 "file_magic "*) 8878 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8879 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8880 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8881 $EGREP "$file_magic_regex" > /dev/null; then 8882 : 8883 else 8884 cat <<_LT_EOF 1>&2 8885 8886*** Warning: the command libtool uses to detect shared libraries, 8887*** $file_magic_cmd, produces output that libtool cannot recognize. 8888*** The result is that libtool may fail to recognize shared libraries 8889*** as such. This will affect the creation of libtool libraries that 8890*** depend on shared libraries, but programs linked with such libtool 8891*** libraries will work regardless of this problem. Nevertheless, you 8892*** may want to report the problem to your system manager and/or to 8893*** bug-libtool@gnu.org 8894 8895_LT_EOF 8896 fi ;; 8897 esac 8898 fi 8899 break 8900 fi 8901 done 8902 IFS=$lt_save_ifs 8903 MAGIC_CMD=$lt_save_MAGIC_CMD 8904 ;; 8905esac 8906fi 8907 8908MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8909if test -n "$MAGIC_CMD"; then 8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8911printf "%s\n" "$MAGIC_CMD" >&6; } 8912else 8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8914printf "%s\n" "no" >&6; } 8915fi 8916 8917 8918 else 8919 MAGIC_CMD=: 8920 fi 8921fi 8922 8923 fi 8924 ;; 8925esac 8926 8927# Use C for the default configuration in the libtool script 8928 8929lt_save_CC=$CC 8930ac_ext=c 8931ac_cpp='$CPP $CPPFLAGS' 8932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8934ac_compiler_gnu=$ac_cv_c_compiler_gnu 8935 8936 8937# Source file extension for C test sources. 8938ac_ext=c 8939 8940# Object file extension for compiled C test sources. 8941objext=o 8942objext=$objext 8943 8944# Code to be used in simple compile tests 8945lt_simple_compile_test_code="int some_variable = 0;" 8946 8947# Code to be used in simple link tests 8948lt_simple_link_test_code='int main(){return(0);}' 8949 8950 8951 8952 8953 8954 8955 8956# If no C compiler was specified, use CC. 8957LTCC=${LTCC-"$CC"} 8958 8959# If no C compiler flags were specified, use CFLAGS. 8960LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8961 8962# Allow CC to be a program name with arguments. 8963compiler=$CC 8964 8965# Save the default compiler, since it gets overwritten when the other 8966# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8967compiler_DEFAULT=$CC 8968 8969# save warnings/boilerplate of simple test code 8970ac_outfile=conftest.$ac_objext 8971echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8972eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8973_lt_compiler_boilerplate=`cat conftest.err` 8974$RM conftest* 8975 8976ac_outfile=conftest.$ac_objext 8977echo "$lt_simple_link_test_code" >conftest.$ac_ext 8978eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8979_lt_linker_boilerplate=`cat conftest.err` 8980$RM -r conftest* 8981 8982 8983## CAVEAT EMPTOR: 8984## There is no encapsulation within the following macros, do not change 8985## the running order or otherwise move them around unless you know exactly 8986## what you are doing... 8987if test -n "$compiler"; then 8988 8989lt_prog_compiler_no_builtin_flag= 8990 8991if test yes = "$GCC"; then 8992 case $cc_basename in 8993 nvcc*) 8994 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8995 *) 8996 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8997 esac 8998 8999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9000printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9001if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9002then : 9003 printf %s "(cached) " >&6 9004else $as_nop 9005 lt_cv_prog_compiler_rtti_exceptions=no 9006 ac_outfile=conftest.$ac_objext 9007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9008 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9009 # Insert the option either (1) after the last *FLAGS variable, or 9010 # (2) before a word containing "conftest.", or (3) at the end. 9011 # Note that $ac_compile itself does not contain backslashes and begins 9012 # with a dollar sign (not a hyphen), so the echo should work correctly. 9013 # The option is referenced via a variable to avoid confusing sed. 9014 lt_compile=`echo "$ac_compile" | $SED \ 9015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9017 -e 's:$: $lt_compiler_flag:'` 9018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9019 (eval "$lt_compile" 2>conftest.err) 9020 ac_status=$? 9021 cat conftest.err >&5 9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9023 if (exit $ac_status) && test -s "$ac_outfile"; then 9024 # The compiler can only warn and ignore the option if not recognized 9025 # So say no if there are warnings other than the usual output. 9026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9029 lt_cv_prog_compiler_rtti_exceptions=yes 9030 fi 9031 fi 9032 $RM conftest* 9033 9034fi 9035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9036printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9037 9038if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9039 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9040else 9041 : 9042fi 9043 9044fi 9045 9046 9047 9048 9049 9050 9051 lt_prog_compiler_wl= 9052lt_prog_compiler_pic= 9053lt_prog_compiler_static= 9054 9055 9056 if test yes = "$GCC"; then 9057 lt_prog_compiler_wl='-Wl,' 9058 lt_prog_compiler_static='-static' 9059 9060 case $host_os in 9061 aix*) 9062 # All AIX code is PIC. 9063 if test ia64 = "$host_cpu"; then 9064 # AIX 5 now supports IA64 processor 9065 lt_prog_compiler_static='-Bstatic' 9066 fi 9067 lt_prog_compiler_pic='-fPIC' 9068 ;; 9069 9070 amigaos*) 9071 case $host_cpu in 9072 powerpc) 9073 # see comment about AmigaOS4 .so support 9074 lt_prog_compiler_pic='-fPIC' 9075 ;; 9076 m68k) 9077 # FIXME: we need at least 68020 code to build shared libraries, but 9078 # adding the '-m68020' flag to GCC prevents building anything better, 9079 # like '-m68040'. 9080 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9081 ;; 9082 esac 9083 ;; 9084 9085 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9086 # PIC is the default for these OSes. 9087 ;; 9088 9089 mingw* | cygwin* | pw32* | os2* | cegcc*) 9090 # This hack is so that the source file can tell whether it is being 9091 # built for inclusion in a dll (and should export symbols for example). 9092 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9093 # (--disable-auto-import) libraries 9094 lt_prog_compiler_pic='-DDLL_EXPORT' 9095 case $host_os in 9096 os2*) 9097 lt_prog_compiler_static='$wl-static' 9098 ;; 9099 esac 9100 ;; 9101 9102 darwin* | rhapsody*) 9103 # PIC is the default on this platform 9104 # Common symbols not allowed in MH_DYLIB files 9105 lt_prog_compiler_pic='-fno-common' 9106 ;; 9107 9108 haiku*) 9109 # PIC is the default for Haiku. 9110 # The "-static" flag exists, but is broken. 9111 lt_prog_compiler_static= 9112 ;; 9113 9114 hpux*) 9115 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9116 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9117 # sets the default TLS model and affects inlining. 9118 case $host_cpu in 9119 hppa*64*) 9120 # +Z the default 9121 ;; 9122 *) 9123 lt_prog_compiler_pic='-fPIC' 9124 ;; 9125 esac 9126 ;; 9127 9128 interix[3-9]*) 9129 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9130 # Instead, we relocate shared libraries at runtime. 9131 ;; 9132 9133 msdosdjgpp*) 9134 # Just because we use GCC doesn't mean we suddenly get shared libraries 9135 # on systems that don't support them. 9136 lt_prog_compiler_can_build_shared=no 9137 enable_shared=no 9138 ;; 9139 9140 *nto* | *qnx*) 9141 # QNX uses GNU C++, but need to define -shared option too, otherwise 9142 # it will coredump. 9143 lt_prog_compiler_pic='-fPIC -shared' 9144 ;; 9145 9146 sysv4*MP*) 9147 if test -d /usr/nec; then 9148 lt_prog_compiler_pic=-Kconform_pic 9149 fi 9150 ;; 9151 9152 *) 9153 lt_prog_compiler_pic='-fPIC' 9154 ;; 9155 esac 9156 9157 case $cc_basename in 9158 nvcc*) # Cuda Compiler Driver 2.2 9159 lt_prog_compiler_wl='-Xlinker ' 9160 if test -n "$lt_prog_compiler_pic"; then 9161 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9162 fi 9163 ;; 9164 esac 9165 else 9166 # PORTME Check for flag to pass linker flags through the system compiler. 9167 case $host_os in 9168 aix*) 9169 lt_prog_compiler_wl='-Wl,' 9170 if test ia64 = "$host_cpu"; then 9171 # AIX 5 now supports IA64 processor 9172 lt_prog_compiler_static='-Bstatic' 9173 else 9174 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9175 fi 9176 ;; 9177 9178 darwin* | rhapsody*) 9179 # PIC is the default on this platform 9180 # Common symbols not allowed in MH_DYLIB files 9181 lt_prog_compiler_pic='-fno-common' 9182 case $cc_basename in 9183 nagfor*) 9184 # NAG Fortran compiler 9185 lt_prog_compiler_wl='-Wl,-Wl,,' 9186 lt_prog_compiler_pic='-PIC' 9187 lt_prog_compiler_static='-Bstatic' 9188 ;; 9189 esac 9190 ;; 9191 9192 mingw* | cygwin* | pw32* | os2* | cegcc*) 9193 # This hack is so that the source file can tell whether it is being 9194 # built for inclusion in a dll (and should export symbols for example). 9195 lt_prog_compiler_pic='-DDLL_EXPORT' 9196 case $host_os in 9197 os2*) 9198 lt_prog_compiler_static='$wl-static' 9199 ;; 9200 esac 9201 ;; 9202 9203 hpux9* | hpux10* | hpux11*) 9204 lt_prog_compiler_wl='-Wl,' 9205 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9206 # not for PA HP-UX. 9207 case $host_cpu in 9208 hppa*64*|ia64*) 9209 # +Z the default 9210 ;; 9211 *) 9212 lt_prog_compiler_pic='+Z' 9213 ;; 9214 esac 9215 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9216 lt_prog_compiler_static='$wl-a ${wl}archive' 9217 ;; 9218 9219 irix5* | irix6* | nonstopux*) 9220 lt_prog_compiler_wl='-Wl,' 9221 # PIC (with -KPIC) is the default. 9222 lt_prog_compiler_static='-non_shared' 9223 ;; 9224 9225 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9226 case $cc_basename in 9227 # old Intel for x86_64, which still supported -KPIC. 9228 ecc*) 9229 lt_prog_compiler_wl='-Wl,' 9230 lt_prog_compiler_pic='-KPIC' 9231 lt_prog_compiler_static='-static' 9232 ;; 9233 # flang / f18. f95 an alias for gfortran or flang on Debian 9234 flang* | f18* | f95*) 9235 lt_prog_compiler_wl='-Wl,' 9236 lt_prog_compiler_pic='-fPIC' 9237 lt_prog_compiler_static='-static' 9238 ;; 9239 # icc used to be incompatible with GCC. 9240 # ICC 10 doesn't accept -KPIC any more. 9241 icc* | ifort*) 9242 lt_prog_compiler_wl='-Wl,' 9243 lt_prog_compiler_pic='-fPIC' 9244 lt_prog_compiler_static='-static' 9245 ;; 9246 # Lahey Fortran 8.1. 9247 lf95*) 9248 lt_prog_compiler_wl='-Wl,' 9249 lt_prog_compiler_pic='--shared' 9250 lt_prog_compiler_static='--static' 9251 ;; 9252 nagfor*) 9253 # NAG Fortran compiler 9254 lt_prog_compiler_wl='-Wl,-Wl,,' 9255 lt_prog_compiler_pic='-PIC' 9256 lt_prog_compiler_static='-Bstatic' 9257 ;; 9258 tcc*) 9259 # Fabrice Bellard et al's Tiny C Compiler 9260 lt_prog_compiler_wl='-Wl,' 9261 lt_prog_compiler_pic='-fPIC' 9262 lt_prog_compiler_static='-static' 9263 ;; 9264 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9265 # Portland Group compilers (*not* the Pentium gcc compiler, 9266 # which looks to be a dead project) 9267 lt_prog_compiler_wl='-Wl,' 9268 lt_prog_compiler_pic='-fpic' 9269 lt_prog_compiler_static='-Bstatic' 9270 ;; 9271 ccc*) 9272 lt_prog_compiler_wl='-Wl,' 9273 # All Alpha code is PIC. 9274 lt_prog_compiler_static='-non_shared' 9275 ;; 9276 xl* | bgxl* | bgf* | mpixl*) 9277 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9278 lt_prog_compiler_wl='-Wl,' 9279 lt_prog_compiler_pic='-qpic' 9280 lt_prog_compiler_static='-qstaticlink' 9281 ;; 9282 *) 9283 case `$CC -V 2>&1 | $SED 5q` in 9284 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9285 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9286 lt_prog_compiler_pic='-KPIC' 9287 lt_prog_compiler_static='-Bstatic' 9288 lt_prog_compiler_wl='' 9289 ;; 9290 *Sun\ F* | *Sun*Fortran*) 9291 lt_prog_compiler_pic='-KPIC' 9292 lt_prog_compiler_static='-Bstatic' 9293 lt_prog_compiler_wl='-Qoption ld ' 9294 ;; 9295 *Sun\ C*) 9296 # Sun C 5.9 9297 lt_prog_compiler_pic='-KPIC' 9298 lt_prog_compiler_static='-Bstatic' 9299 lt_prog_compiler_wl='-Wl,' 9300 ;; 9301 *Intel*\ [CF]*Compiler*) 9302 lt_prog_compiler_wl='-Wl,' 9303 lt_prog_compiler_pic='-fPIC' 9304 lt_prog_compiler_static='-static' 9305 ;; 9306 *Portland\ Group*) 9307 lt_prog_compiler_wl='-Wl,' 9308 lt_prog_compiler_pic='-fpic' 9309 lt_prog_compiler_static='-Bstatic' 9310 ;; 9311 esac 9312 ;; 9313 esac 9314 ;; 9315 9316 newsos6) 9317 lt_prog_compiler_pic='-KPIC' 9318 lt_prog_compiler_static='-Bstatic' 9319 ;; 9320 9321 *nto* | *qnx*) 9322 # QNX uses GNU C++, but need to define -shared option too, otherwise 9323 # it will coredump. 9324 lt_prog_compiler_pic='-fPIC -shared' 9325 ;; 9326 9327 osf3* | osf4* | osf5*) 9328 lt_prog_compiler_wl='-Wl,' 9329 # All OSF/1 code is PIC. 9330 lt_prog_compiler_static='-non_shared' 9331 ;; 9332 9333 rdos*) 9334 lt_prog_compiler_static='-non_shared' 9335 ;; 9336 9337 solaris*) 9338 lt_prog_compiler_pic='-KPIC' 9339 lt_prog_compiler_static='-Bstatic' 9340 case $cc_basename in 9341 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9342 lt_prog_compiler_wl='-Qoption ld ';; 9343 *) 9344 lt_prog_compiler_wl='-Wl,';; 9345 esac 9346 ;; 9347 9348 sunos4*) 9349 lt_prog_compiler_wl='-Qoption ld ' 9350 lt_prog_compiler_pic='-PIC' 9351 lt_prog_compiler_static='-Bstatic' 9352 ;; 9353 9354 sysv4 | sysv4.2uw2* | sysv4.3*) 9355 lt_prog_compiler_wl='-Wl,' 9356 lt_prog_compiler_pic='-KPIC' 9357 lt_prog_compiler_static='-Bstatic' 9358 ;; 9359 9360 sysv4*MP*) 9361 if test -d /usr/nec; then 9362 lt_prog_compiler_pic='-Kconform_pic' 9363 lt_prog_compiler_static='-Bstatic' 9364 fi 9365 ;; 9366 9367 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9368 lt_prog_compiler_wl='-Wl,' 9369 lt_prog_compiler_pic='-KPIC' 9370 lt_prog_compiler_static='-Bstatic' 9371 ;; 9372 9373 unicos*) 9374 lt_prog_compiler_wl='-Wl,' 9375 lt_prog_compiler_can_build_shared=no 9376 ;; 9377 9378 uts4*) 9379 lt_prog_compiler_pic='-pic' 9380 lt_prog_compiler_static='-Bstatic' 9381 ;; 9382 9383 *) 9384 lt_prog_compiler_can_build_shared=no 9385 ;; 9386 esac 9387 fi 9388 9389case $host_os in 9390 # For platforms that do not support PIC, -DPIC is meaningless: 9391 *djgpp*) 9392 lt_prog_compiler_pic= 9393 ;; 9394 *) 9395 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9396 ;; 9397esac 9398 9399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9400printf %s "checking for $compiler option to produce PIC... " >&6; } 9401if test ${lt_cv_prog_compiler_pic+y} 9402then : 9403 printf %s "(cached) " >&6 9404else $as_nop 9405 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9406fi 9407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9408printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9409lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9410 9411# 9412# Check to make sure the PIC flag actually works. 9413# 9414if test -n "$lt_prog_compiler_pic"; then 9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9416printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9417if test ${lt_cv_prog_compiler_pic_works+y} 9418then : 9419 printf %s "(cached) " >&6 9420else $as_nop 9421 lt_cv_prog_compiler_pic_works=no 9422 ac_outfile=conftest.$ac_objext 9423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9424 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9425 # Insert the option either (1) after the last *FLAGS variable, or 9426 # (2) before a word containing "conftest.", or (3) at the end. 9427 # Note that $ac_compile itself does not contain backslashes and begins 9428 # with a dollar sign (not a hyphen), so the echo should work correctly. 9429 # The option is referenced via a variable to avoid confusing sed. 9430 lt_compile=`echo "$ac_compile" | $SED \ 9431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9433 -e 's:$: $lt_compiler_flag:'` 9434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9435 (eval "$lt_compile" 2>conftest.err) 9436 ac_status=$? 9437 cat conftest.err >&5 9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9439 if (exit $ac_status) && test -s "$ac_outfile"; then 9440 # The compiler can only warn and ignore the option if not recognized 9441 # So say no if there are warnings other than the usual output. 9442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9445 lt_cv_prog_compiler_pic_works=yes 9446 fi 9447 fi 9448 $RM conftest* 9449 9450fi 9451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9452printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9453 9454if test yes = "$lt_cv_prog_compiler_pic_works"; then 9455 case $lt_prog_compiler_pic in 9456 "" | " "*) ;; 9457 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9458 esac 9459else 9460 lt_prog_compiler_pic= 9461 lt_prog_compiler_can_build_shared=no 9462fi 9463 9464fi 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476# 9477# Check to make sure the static flag actually works. 9478# 9479wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9481printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9482if test ${lt_cv_prog_compiler_static_works+y} 9483then : 9484 printf %s "(cached) " >&6 9485else $as_nop 9486 lt_cv_prog_compiler_static_works=no 9487 save_LDFLAGS=$LDFLAGS 9488 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9489 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9490 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9491 # The linker can only warn and ignore the option if not recognized 9492 # So say no if there are warnings 9493 if test -s conftest.err; then 9494 # Append any errors to the config.log. 9495 cat conftest.err 1>&5 9496 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9498 if diff conftest.exp conftest.er2 >/dev/null; then 9499 lt_cv_prog_compiler_static_works=yes 9500 fi 9501 else 9502 lt_cv_prog_compiler_static_works=yes 9503 fi 9504 fi 9505 $RM -r conftest* 9506 LDFLAGS=$save_LDFLAGS 9507 9508fi 9509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9510printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9511 9512if test yes = "$lt_cv_prog_compiler_static_works"; then 9513 : 9514else 9515 lt_prog_compiler_static= 9516fi 9517 9518 9519 9520 9521 9522 9523 9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9525printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9526if test ${lt_cv_prog_compiler_c_o+y} 9527then : 9528 printf %s "(cached) " >&6 9529else $as_nop 9530 lt_cv_prog_compiler_c_o=no 9531 $RM -r conftest 2>/dev/null 9532 mkdir conftest 9533 cd conftest 9534 mkdir out 9535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9536 9537 lt_compiler_flag="-o out/conftest2.$ac_objext" 9538 # Insert the option either (1) after the last *FLAGS variable, or 9539 # (2) before a word containing "conftest.", or (3) at the end. 9540 # Note that $ac_compile itself does not contain backslashes and begins 9541 # with a dollar sign (not a hyphen), so the echo should work correctly. 9542 lt_compile=`echo "$ac_compile" | $SED \ 9543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9545 -e 's:$: $lt_compiler_flag:'` 9546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9547 (eval "$lt_compile" 2>out/conftest.err) 9548 ac_status=$? 9549 cat out/conftest.err >&5 9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9551 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9552 then 9553 # The compiler can only warn and ignore the option if not recognized 9554 # So say no if there are warnings 9555 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9556 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9557 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9558 lt_cv_prog_compiler_c_o=yes 9559 fi 9560 fi 9561 chmod u+w . 2>&5 9562 $RM conftest* 9563 # SGI C++ compiler will create directory out/ii_files/ for 9564 # template instantiation 9565 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9566 $RM out/* && rmdir out 9567 cd .. 9568 $RM -r conftest 9569 $RM conftest* 9570 9571fi 9572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9573printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9574 9575 9576 9577 9578 9579 9580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9581printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9582if test ${lt_cv_prog_compiler_c_o+y} 9583then : 9584 printf %s "(cached) " >&6 9585else $as_nop 9586 lt_cv_prog_compiler_c_o=no 9587 $RM -r conftest 2>/dev/null 9588 mkdir conftest 9589 cd conftest 9590 mkdir out 9591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9592 9593 lt_compiler_flag="-o out/conftest2.$ac_objext" 9594 # Insert the option either (1) after the last *FLAGS variable, or 9595 # (2) before a word containing "conftest.", or (3) at the end. 9596 # Note that $ac_compile itself does not contain backslashes and begins 9597 # with a dollar sign (not a hyphen), so the echo should work correctly. 9598 lt_compile=`echo "$ac_compile" | $SED \ 9599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9601 -e 's:$: $lt_compiler_flag:'` 9602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9603 (eval "$lt_compile" 2>out/conftest.err) 9604 ac_status=$? 9605 cat out/conftest.err >&5 9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9607 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9608 then 9609 # The compiler can only warn and ignore the option if not recognized 9610 # So say no if there are warnings 9611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9614 lt_cv_prog_compiler_c_o=yes 9615 fi 9616 fi 9617 chmod u+w . 2>&5 9618 $RM conftest* 9619 # SGI C++ compiler will create directory out/ii_files/ for 9620 # template instantiation 9621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9622 $RM out/* && rmdir out 9623 cd .. 9624 $RM -r conftest 9625 $RM conftest* 9626 9627fi 9628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9629printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9630 9631 9632 9633 9634hard_links=nottested 9635if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9636 # do not overwrite the value of need_locks provided by the user 9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9638printf %s "checking if we can lock with hard links... " >&6; } 9639 hard_links=yes 9640 $RM conftest* 9641 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9642 touch conftest.a 9643 ln conftest.a conftest.b 2>&5 || hard_links=no 9644 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9646printf "%s\n" "$hard_links" >&6; } 9647 if test no = "$hard_links"; then 9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9649printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9650 need_locks=warn 9651 fi 9652else 9653 need_locks=no 9654fi 9655 9656 9657 9658 9659 9660 9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9662printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9663 9664 runpath_var= 9665 allow_undefined_flag= 9666 always_export_symbols=no 9667 archive_cmds= 9668 archive_expsym_cmds= 9669 compiler_needs_object=no 9670 enable_shared_with_static_runtimes=no 9671 export_dynamic_flag_spec= 9672 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9673 hardcode_automatic=no 9674 hardcode_direct=no 9675 hardcode_direct_absolute=no 9676 hardcode_libdir_flag_spec= 9677 hardcode_libdir_separator= 9678 hardcode_minus_L=no 9679 hardcode_shlibpath_var=unsupported 9680 inherit_rpath=no 9681 link_all_deplibs=unknown 9682 module_cmds= 9683 module_expsym_cmds= 9684 old_archive_from_new_cmds= 9685 old_archive_from_expsyms_cmds= 9686 thread_safe_flag_spec= 9687 whole_archive_flag_spec= 9688 # include_expsyms should be a list of space-separated symbols to be *always* 9689 # included in the symbol list 9690 include_expsyms= 9691 # exclude_expsyms can be an extended regexp of symbols to exclude 9692 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9693 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9694 # as well as any symbol that contains 'd'. 9695 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9696 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9697 # platforms (ab)use it in PIC code, but their linkers get confused if 9698 # the symbol is explicitly referenced. Since portable code cannot 9699 # rely on this symbol name, it's probably fine to never include it in 9700 # preloaded symbol tables. 9701 # Exclude shared library initialization/finalization symbols. 9702 extract_expsyms_cmds= 9703 9704 case $host_os in 9705 cygwin* | mingw* | pw32* | cegcc*) 9706 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9707 # When not using gcc, we currently assume that we are using 9708 # Microsoft Visual C++ or Intel C++ Compiler. 9709 if test yes != "$GCC"; then 9710 with_gnu_ld=no 9711 fi 9712 ;; 9713 interix*) 9714 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9715 with_gnu_ld=yes 9716 ;; 9717 openbsd* | bitrig*) 9718 with_gnu_ld=no 9719 ;; 9720 linux* | k*bsd*-gnu | gnu*) 9721 link_all_deplibs=no 9722 ;; 9723 esac 9724 9725 ld_shlibs=yes 9726 9727 # On some targets, GNU ld is compatible enough with the native linker 9728 # that we're better off using the native interface for both. 9729 lt_use_gnu_ld_interface=no 9730 if test yes = "$with_gnu_ld"; then 9731 case $host_os in 9732 aix*) 9733 # The AIX port of GNU ld has always aspired to compatibility 9734 # with the native linker. However, as the warning in the GNU ld 9735 # block says, versions before 2.19.5* couldn't really create working 9736 # shared libraries, regardless of the interface used. 9737 case `$LD -v 2>&1` in 9738 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9739 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9740 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9741 *) 9742 lt_use_gnu_ld_interface=yes 9743 ;; 9744 esac 9745 ;; 9746 *) 9747 lt_use_gnu_ld_interface=yes 9748 ;; 9749 esac 9750 fi 9751 9752 if test yes = "$lt_use_gnu_ld_interface"; then 9753 # If archive_cmds runs LD, not CC, wlarc should be empty 9754 wlarc='$wl' 9755 9756 # Set some defaults for GNU ld with shared library support. These 9757 # are reset later if shared libraries are not supported. Putting them 9758 # here allows them to be overridden if necessary. 9759 runpath_var=LD_RUN_PATH 9760 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9761 export_dynamic_flag_spec='$wl--export-dynamic' 9762 # ancient GNU ld didn't support --whole-archive et. al. 9763 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9764 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9765 else 9766 whole_archive_flag_spec= 9767 fi 9768 supports_anon_versioning=no 9769 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9770 *GNU\ gold*) supports_anon_versioning=yes ;; 9771 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9772 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9773 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9774 *\ 2.11.*) ;; # other 2.11 versions 9775 *) supports_anon_versioning=yes ;; 9776 esac 9777 9778 # See if GNU ld supports shared libraries. 9779 case $host_os in 9780 aix[3-9]*) 9781 # On AIX/PPC, the GNU linker is very broken 9782 if test ia64 != "$host_cpu"; then 9783 ld_shlibs=no 9784 cat <<_LT_EOF 1>&2 9785 9786*** Warning: the GNU linker, at least up to release 2.19, is reported 9787*** to be unable to reliably create shared libraries on AIX. 9788*** Therefore, libtool is disabling shared libraries support. If you 9789*** really care for shared libraries, you may want to install binutils 9790*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9791*** You will then need to restart the configuration process. 9792 9793_LT_EOF 9794 fi 9795 ;; 9796 9797 amigaos*) 9798 case $host_cpu in 9799 powerpc) 9800 # see comment about AmigaOS4 .so support 9801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9802 archive_expsym_cmds='' 9803 ;; 9804 m68k) 9805 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)' 9806 hardcode_libdir_flag_spec='-L$libdir' 9807 hardcode_minus_L=yes 9808 ;; 9809 esac 9810 ;; 9811 9812 beos*) 9813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9814 allow_undefined_flag=unsupported 9815 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9816 # support --undefined. This deserves some investigation. FIXME 9817 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9818 else 9819 ld_shlibs=no 9820 fi 9821 ;; 9822 9823 cygwin* | mingw* | pw32* | cegcc*) 9824 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9825 # as there is no search path for DLLs. 9826 hardcode_libdir_flag_spec='-L$libdir' 9827 export_dynamic_flag_spec='$wl--export-all-symbols' 9828 allow_undefined_flag=unsupported 9829 always_export_symbols=no 9830 enable_shared_with_static_runtimes=yes 9831 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' 9832 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9833 9834 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9836 # If the export-symbols file already is a .def file, use it as 9837 # is; otherwise, prepend EXPORTS... 9838 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9839 cp $export_symbols $output_objdir/$soname.def; 9840 else 9841 echo EXPORTS > $output_objdir/$soname.def; 9842 cat $export_symbols >> $output_objdir/$soname.def; 9843 fi~ 9844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9845 else 9846 ld_shlibs=no 9847 fi 9848 ;; 9849 9850 haiku*) 9851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9852 link_all_deplibs=yes 9853 ;; 9854 9855 os2*) 9856 hardcode_libdir_flag_spec='-L$libdir' 9857 hardcode_minus_L=yes 9858 allow_undefined_flag=unsupported 9859 shrext_cmds=.dll 9860 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9861 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9862 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9863 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9864 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9865 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9866 emximp -o $lib $output_objdir/$libname.def' 9867 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9868 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9869 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9870 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9871 prefix_cmds="$SED"~ 9872 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9873 prefix_cmds="$prefix_cmds -e 1d"; 9874 fi~ 9875 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9876 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9877 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9878 emximp -o $lib $output_objdir/$libname.def' 9879 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9880 enable_shared_with_static_runtimes=yes 9881 file_list_spec='@' 9882 ;; 9883 9884 interix[3-9]*) 9885 hardcode_direct=no 9886 hardcode_shlibpath_var=no 9887 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9888 export_dynamic_flag_spec='$wl-E' 9889 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9890 # Instead, shared libraries are loaded at an image base (0x10000000 by 9891 # default) and relocated if they conflict, which is a slow very memory 9892 # consuming and fragmenting process. To avoid this, we pick a random, 9893 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9894 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9895 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9896 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' 9897 ;; 9898 9899 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9900 tmp_diet=no 9901 if test linux-dietlibc = "$host_os"; then 9902 case $cc_basename in 9903 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9904 esac 9905 fi 9906 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9907 && test no = "$tmp_diet" 9908 then 9909 tmp_addflag=' $pic_flag' 9910 tmp_sharedflag='-shared' 9911 case $cc_basename,$host_cpu in 9912 pgcc*) # Portland Group C compiler 9913 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' 9914 tmp_addflag=' $pic_flag' 9915 ;; 9916 pgf77* | pgf90* | pgf95* | pgfortran*) 9917 # Portland Group f77 and f90 compilers 9918 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' 9919 tmp_addflag=' $pic_flag -Mnomain' ;; 9920 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9921 tmp_addflag=' -i_dynamic' ;; 9922 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9923 tmp_addflag=' -i_dynamic -nofor_main' ;; 9924 ifc* | ifort*) # Intel Fortran compiler 9925 tmp_addflag=' -nofor_main' ;; 9926 lf95*) # Lahey Fortran 8.1 9927 whole_archive_flag_spec= 9928 tmp_sharedflag='--shared' ;; 9929 nagfor*) # NAGFOR 5.3 9930 tmp_sharedflag='-Wl,-shared' ;; 9931 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9932 tmp_sharedflag='-qmkshrobj' 9933 tmp_addflag= ;; 9934 nvcc*) # Cuda Compiler Driver 2.2 9935 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' 9936 compiler_needs_object=yes 9937 ;; 9938 esac 9939 case `$CC -V 2>&1 | $SED 5q` in 9940 *Sun\ C*) # Sun C 5.9 9941 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' 9942 compiler_needs_object=yes 9943 tmp_sharedflag='-G' ;; 9944 *Sun\ F*) # Sun Fortran 8.3 9945 tmp_sharedflag='-G' ;; 9946 esac 9947 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9948 9949 if test yes = "$supports_anon_versioning"; then 9950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9951 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9952 echo "local: *; };" >> $output_objdir/$libname.ver~ 9953 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9954 fi 9955 9956 case $cc_basename in 9957 tcc*) 9958 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9959 export_dynamic_flag_spec='-rdynamic' 9960 ;; 9961 xlf* | bgf* | bgxlf* | mpixlf*) 9962 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9963 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9964 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9965 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9966 if test yes = "$supports_anon_versioning"; then 9967 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9968 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9969 echo "local: *; };" >> $output_objdir/$libname.ver~ 9970 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9971 fi 9972 ;; 9973 esac 9974 else 9975 ld_shlibs=no 9976 fi 9977 ;; 9978 9979 netbsd* | netbsdelf*-gnu) 9980 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9981 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9982 wlarc= 9983 else 9984 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9985 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9986 fi 9987 ;; 9988 9989 solaris*) 9990 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9991 ld_shlibs=no 9992 cat <<_LT_EOF 1>&2 9993 9994*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9995*** create shared libraries on Solaris systems. Therefore, libtool 9996*** is disabling shared libraries support. We urge you to upgrade GNU 9997*** binutils to release 2.9.1 or newer. Another option is to modify 9998*** your PATH or compiler configuration so that the native linker is 9999*** used, and then restart. 10000 10001_LT_EOF 10002 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10003 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10004 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10005 else 10006 ld_shlibs=no 10007 fi 10008 ;; 10009 10010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10011 case `$LD -v 2>&1` in 10012 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10013 ld_shlibs=no 10014 cat <<_LT_EOF 1>&2 10015 10016*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10017*** reliably create shared libraries on SCO systems. Therefore, libtool 10018*** is disabling shared libraries support. We urge you to upgrade GNU 10019*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10020*** your PATH or compiler configuration so that the native linker is 10021*** used, and then restart. 10022 10023_LT_EOF 10024 ;; 10025 *) 10026 # For security reasons, it is highly recommended that you always 10027 # use absolute paths for naming shared libraries, and exclude the 10028 # DT_RUNPATH tag from executables and libraries. But doing so 10029 # requires that you compile everything twice, which is a pain. 10030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10031 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10034 else 10035 ld_shlibs=no 10036 fi 10037 ;; 10038 esac 10039 ;; 10040 10041 sunos4*) 10042 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10043 wlarc= 10044 hardcode_direct=yes 10045 hardcode_shlibpath_var=no 10046 ;; 10047 10048 *) 10049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10050 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10051 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10052 else 10053 ld_shlibs=no 10054 fi 10055 ;; 10056 esac 10057 10058 if test no = "$ld_shlibs"; then 10059 runpath_var= 10060 hardcode_libdir_flag_spec= 10061 export_dynamic_flag_spec= 10062 whole_archive_flag_spec= 10063 fi 10064 else 10065 # PORTME fill in a description of your system's linker (not GNU ld) 10066 case $host_os in 10067 aix3*) 10068 allow_undefined_flag=unsupported 10069 always_export_symbols=yes 10070 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' 10071 # Note: this linker hardcodes the directories in LIBPATH if there 10072 # are no directories specified by -L. 10073 hardcode_minus_L=yes 10074 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10075 # Neither direct hardcoding nor static linking is supported with a 10076 # broken collect2. 10077 hardcode_direct=unsupported 10078 fi 10079 ;; 10080 10081 aix[4-9]*) 10082 if test ia64 = "$host_cpu"; then 10083 # On IA64, the linker does run time linking by default, so we don't 10084 # have to do anything special. 10085 aix_use_runtimelinking=no 10086 exp_sym_flag='-Bexport' 10087 no_entry_flag= 10088 else 10089 # If we're using GNU nm, then we don't want the "-C" option. 10090 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10091 # Without the "-l" option, or with the "-B" option, AIX nm treats 10092 # weak defined symbols like other global defined symbols, whereas 10093 # GNU nm marks them as "W". 10094 # While the 'weak' keyword is ignored in the Export File, we need 10095 # it in the Import File for the 'aix-soname' feature, so we have 10096 # to replace the "-B" option with "-P" for AIX nm. 10097 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10098 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' 10099 else 10100 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' 10101 fi 10102 aix_use_runtimelinking=no 10103 10104 # Test if we are trying to use run time linking or normal 10105 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10106 # have runtime linking enabled, and use it for executables. 10107 # For shared libraries, we enable/disable runtime linking 10108 # depending on the kind of the shared library created - 10109 # when "with_aix_soname,aix_use_runtimelinking" is: 10110 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10111 # "aix,yes" lib.so shared, rtl:yes, for executables 10112 # lib.a static archive 10113 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10114 # lib.a(lib.so.V) shared, rtl:no, for executables 10115 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10116 # lib.a(lib.so.V) shared, rtl:no 10117 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10118 # lib.a static archive 10119 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10120 for ld_flag in $LDFLAGS; do 10121 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10122 aix_use_runtimelinking=yes 10123 break 10124 fi 10125 done 10126 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10127 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10128 # so we don't have lib.a shared libs to link our executables. 10129 # We have to force runtime linking in this case. 10130 aix_use_runtimelinking=yes 10131 LDFLAGS="$LDFLAGS -Wl,-brtl" 10132 fi 10133 ;; 10134 esac 10135 10136 exp_sym_flag='-bexport' 10137 no_entry_flag='-bnoentry' 10138 fi 10139 10140 # When large executables or shared objects are built, AIX ld can 10141 # have problems creating the table of contents. If linking a library 10142 # or program results in "error TOC overflow" add -mminimal-toc to 10143 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10144 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10145 10146 archive_cmds='' 10147 hardcode_direct=yes 10148 hardcode_direct_absolute=yes 10149 hardcode_libdir_separator=':' 10150 link_all_deplibs=yes 10151 file_list_spec='$wl-f,' 10152 case $with_aix_soname,$aix_use_runtimelinking in 10153 aix,*) ;; # traditional, no import file 10154 svr4,* | *,yes) # use import file 10155 # The Import File defines what to hardcode. 10156 hardcode_direct=no 10157 hardcode_direct_absolute=no 10158 ;; 10159 esac 10160 10161 if test yes = "$GCC"; then 10162 case $host_os in aix4.[012]|aix4.[012].*) 10163 # We only want to do this on AIX 4.2 and lower, the check 10164 # below for broken collect2 doesn't work under 4.3+ 10165 collect2name=`$CC -print-prog-name=collect2` 10166 if test -f "$collect2name" && 10167 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10168 then 10169 # We have reworked collect2 10170 : 10171 else 10172 # We have old collect2 10173 hardcode_direct=unsupported 10174 # It fails to find uninstalled libraries when the uninstalled 10175 # path is not listed in the libpath. Setting hardcode_minus_L 10176 # to unsupported forces relinking 10177 hardcode_minus_L=yes 10178 hardcode_libdir_flag_spec='-L$libdir' 10179 hardcode_libdir_separator= 10180 fi 10181 ;; 10182 esac 10183 shared_flag='-shared' 10184 if test yes = "$aix_use_runtimelinking"; then 10185 shared_flag="$shared_flag "'$wl-G' 10186 fi 10187 # Need to ensure runtime linking is disabled for the traditional 10188 # shared library, or the linker may eventually find shared libraries 10189 # /with/ Import File - we do not want to mix them. 10190 shared_flag_aix='-shared' 10191 shared_flag_svr4='-shared $wl-G' 10192 else 10193 # not using gcc 10194 if test ia64 = "$host_cpu"; then 10195 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10196 # chokes on -Wl,-G. The following line is correct: 10197 shared_flag='-G' 10198 else 10199 if test yes = "$aix_use_runtimelinking"; then 10200 shared_flag='$wl-G' 10201 else 10202 shared_flag='$wl-bM:SRE' 10203 fi 10204 shared_flag_aix='$wl-bM:SRE' 10205 shared_flag_svr4='$wl-G' 10206 fi 10207 fi 10208 10209 export_dynamic_flag_spec='$wl-bexpall' 10210 # It seems that -bexpall does not export symbols beginning with 10211 # underscore (_), so it is better to generate a list of symbols to export. 10212 always_export_symbols=yes 10213 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10214 # Warning - without using the other runtime loading flags (-brtl), 10215 # -berok will link without error, but may produce a broken library. 10216 allow_undefined_flag='-berok' 10217 # Determine the default libpath from the value encoded in an 10218 # empty executable. 10219 if test set = "${lt_cv_aix_libpath+set}"; then 10220 aix_libpath=$lt_cv_aix_libpath 10221else 10222 if test ${lt_cv_aix_libpath_+y} 10223then : 10224 printf %s "(cached) " >&6 10225else $as_nop 10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10227/* end confdefs.h. */ 10228 10229int 10230main (void) 10231{ 10232 10233 ; 10234 return 0; 10235} 10236_ACEOF 10237if ac_fn_c_try_link "$LINENO" 10238then : 10239 10240 lt_aix_libpath_sed=' 10241 /Import File Strings/,/^$/ { 10242 /^0/ { 10243 s/^0 *\([^ ]*\) *$/\1/ 10244 p 10245 } 10246 }' 10247 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10248 # Check for a 64-bit object if we didn't find anything. 10249 if test -z "$lt_cv_aix_libpath_"; then 10250 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10251 fi 10252fi 10253rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10254 conftest$ac_exeext conftest.$ac_ext 10255 if test -z "$lt_cv_aix_libpath_"; then 10256 lt_cv_aix_libpath_=/usr/lib:/lib 10257 fi 10258 10259fi 10260 10261 aix_libpath=$lt_cv_aix_libpath_ 10262fi 10263 10264 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10265 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 10266 else 10267 if test ia64 = "$host_cpu"; then 10268 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10269 allow_undefined_flag="-z nodefs" 10270 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" 10271 else 10272 # Determine the default libpath from the value encoded in an 10273 # empty executable. 10274 if test set = "${lt_cv_aix_libpath+set}"; then 10275 aix_libpath=$lt_cv_aix_libpath 10276else 10277 if test ${lt_cv_aix_libpath_+y} 10278then : 10279 printf %s "(cached) " >&6 10280else $as_nop 10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10282/* end confdefs.h. */ 10283 10284int 10285main (void) 10286{ 10287 10288 ; 10289 return 0; 10290} 10291_ACEOF 10292if ac_fn_c_try_link "$LINENO" 10293then : 10294 10295 lt_aix_libpath_sed=' 10296 /Import File Strings/,/^$/ { 10297 /^0/ { 10298 s/^0 *\([^ ]*\) *$/\1/ 10299 p 10300 } 10301 }' 10302 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10303 # Check for a 64-bit object if we didn't find anything. 10304 if test -z "$lt_cv_aix_libpath_"; then 10305 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10306 fi 10307fi 10308rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10309 conftest$ac_exeext conftest.$ac_ext 10310 if test -z "$lt_cv_aix_libpath_"; then 10311 lt_cv_aix_libpath_=/usr/lib:/lib 10312 fi 10313 10314fi 10315 10316 aix_libpath=$lt_cv_aix_libpath_ 10317fi 10318 10319 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10320 # Warning - without using the other run time loading flags, 10321 # -berok will link without error, but may produce a broken library. 10322 no_undefined_flag=' $wl-bernotok' 10323 allow_undefined_flag=' $wl-berok' 10324 if test yes = "$with_gnu_ld"; then 10325 # We only use this code for GNU lds that support --whole-archive. 10326 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10327 else 10328 # Exported symbols can be pulled into shared objects from archives 10329 whole_archive_flag_spec='$convenience' 10330 fi 10331 archive_cmds_need_lc=yes 10332 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10333 # -brtl affects multiple linker settings, -berok does not and is overridden later 10334 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10335 if test svr4 != "$with_aix_soname"; then 10336 # This is similar to how AIX traditionally builds its shared libraries. 10337 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' 10338 fi 10339 if test aix != "$with_aix_soname"; then 10340 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' 10341 else 10342 # used by -dlpreopen to get the symbols 10343 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10344 fi 10345 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10346 fi 10347 fi 10348 ;; 10349 10350 amigaos*) 10351 case $host_cpu in 10352 powerpc) 10353 # see comment about AmigaOS4 .so support 10354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10355 archive_expsym_cmds='' 10356 ;; 10357 m68k) 10358 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)' 10359 hardcode_libdir_flag_spec='-L$libdir' 10360 hardcode_minus_L=yes 10361 ;; 10362 esac 10363 ;; 10364 10365 bsdi[45]*) 10366 export_dynamic_flag_spec=-rdynamic 10367 ;; 10368 10369 cygwin* | mingw* | pw32* | cegcc*) 10370 # When not using gcc, we currently assume that we are using 10371 # Microsoft Visual C++ or Intel C++ Compiler. 10372 # hardcode_libdir_flag_spec is actually meaningless, as there is 10373 # no search path for DLLs. 10374 case $cc_basename in 10375 cl* | icl*) 10376 # Native MSVC or ICC 10377 hardcode_libdir_flag_spec=' ' 10378 allow_undefined_flag=unsupported 10379 always_export_symbols=yes 10380 file_list_spec='@' 10381 # Tell ltmain to make .lib files, not .a files. 10382 libext=lib 10383 # Tell ltmain to make .dll files, not .so files. 10384 shrext_cmds=.dll 10385 # FIXME: Setting linknames here is a bad hack. 10386 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10387 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10388 cp "$export_symbols" "$output_objdir/$soname.def"; 10389 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10390 else 10391 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10392 fi~ 10393 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10394 linknames=' 10395 # The linker will not automatically build a static lib if we build a DLL. 10396 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10397 enable_shared_with_static_runtimes=yes 10398 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10400 # Don't use ranlib 10401 old_postinstall_cmds='chmod 644 $oldlib' 10402 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10403 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10404 case $lt_outputfile in 10405 *.exe|*.EXE) ;; 10406 *) 10407 lt_outputfile=$lt_outputfile.exe 10408 lt_tool_outputfile=$lt_tool_outputfile.exe 10409 ;; 10410 esac~ 10411 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10412 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10413 $RM "$lt_outputfile.manifest"; 10414 fi' 10415 ;; 10416 *) 10417 # Assume MSVC and ICC wrapper 10418 hardcode_libdir_flag_spec=' ' 10419 allow_undefined_flag=unsupported 10420 # Tell ltmain to make .lib files, not .a files. 10421 libext=lib 10422 # Tell ltmain to make .dll files, not .so files. 10423 shrext_cmds=.dll 10424 # FIXME: Setting linknames here is a bad hack. 10425 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10426 # The linker will automatically build a .lib file if we build a DLL. 10427 old_archive_from_new_cmds='true' 10428 # FIXME: Should let the user specify the lib program. 10429 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10430 enable_shared_with_static_runtimes=yes 10431 ;; 10432 esac 10433 ;; 10434 10435 darwin* | rhapsody*) 10436 10437 10438 archive_cmds_need_lc=no 10439 hardcode_direct=no 10440 hardcode_automatic=yes 10441 hardcode_shlibpath_var=unsupported 10442 if test yes = "$lt_cv_ld_force_load"; then 10443 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\"`' 10444 10445 else 10446 whole_archive_flag_spec='' 10447 fi 10448 link_all_deplibs=yes 10449 allow_undefined_flag=$_lt_dar_allow_undefined 10450 case $cc_basename in 10451 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10452 *) _lt_dar_can_shared=$GCC ;; 10453 esac 10454 if test yes = "$_lt_dar_can_shared"; then 10455 output_verbose_link_cmd=func_echo_all 10456 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10457 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10458 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" 10459 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" 10460 10461 else 10462 ld_shlibs=no 10463 fi 10464 10465 ;; 10466 10467 dgux*) 10468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10469 hardcode_libdir_flag_spec='-L$libdir' 10470 hardcode_shlibpath_var=no 10471 ;; 10472 10473 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10474 # support. Future versions do this automatically, but an explicit c++rt0.o 10475 # does not break anything, and helps significantly (at the cost of a little 10476 # extra space). 10477 freebsd2.2*) 10478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10479 hardcode_libdir_flag_spec='-R$libdir' 10480 hardcode_direct=yes 10481 hardcode_shlibpath_var=no 10482 ;; 10483 10484 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10485 freebsd2.*) 10486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10487 hardcode_direct=yes 10488 hardcode_minus_L=yes 10489 hardcode_shlibpath_var=no 10490 ;; 10491 10492 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10493 freebsd* | dragonfly* | midnightbsd*) 10494 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10495 hardcode_libdir_flag_spec='-R$libdir' 10496 hardcode_direct=yes 10497 hardcode_shlibpath_var=no 10498 ;; 10499 10500 hpux9*) 10501 if test yes = "$GCC"; then 10502 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' 10503 else 10504 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' 10505 fi 10506 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10507 hardcode_libdir_separator=: 10508 hardcode_direct=yes 10509 10510 # hardcode_minus_L: Not really in the search PATH, 10511 # but as the default location of the library. 10512 hardcode_minus_L=yes 10513 export_dynamic_flag_spec='$wl-E' 10514 ;; 10515 10516 hpux10*) 10517 if test yes,no = "$GCC,$with_gnu_ld"; then 10518 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10519 else 10520 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10521 fi 10522 if test no = "$with_gnu_ld"; then 10523 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10524 hardcode_libdir_separator=: 10525 hardcode_direct=yes 10526 hardcode_direct_absolute=yes 10527 export_dynamic_flag_spec='$wl-E' 10528 # hardcode_minus_L: Not really in the search PATH, 10529 # but as the default location of the library. 10530 hardcode_minus_L=yes 10531 fi 10532 ;; 10533 10534 hpux11*) 10535 if test yes,no = "$GCC,$with_gnu_ld"; then 10536 case $host_cpu in 10537 hppa*64*) 10538 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10539 ;; 10540 ia64*) 10541 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10542 ;; 10543 *) 10544 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10545 ;; 10546 esac 10547 else 10548 case $host_cpu in 10549 hppa*64*) 10550 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10551 ;; 10552 ia64*) 10553 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10554 ;; 10555 *) 10556 10557 # Older versions of the 11.00 compiler do not understand -b yet 10558 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10560printf %s "checking if $CC understands -b... " >&6; } 10561if test ${lt_cv_prog_compiler__b+y} 10562then : 10563 printf %s "(cached) " >&6 10564else $as_nop 10565 lt_cv_prog_compiler__b=no 10566 save_LDFLAGS=$LDFLAGS 10567 LDFLAGS="$LDFLAGS -b" 10568 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10569 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10570 # The linker can only warn and ignore the option if not recognized 10571 # So say no if there are warnings 10572 if test -s conftest.err; then 10573 # Append any errors to the config.log. 10574 cat conftest.err 1>&5 10575 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10577 if diff conftest.exp conftest.er2 >/dev/null; then 10578 lt_cv_prog_compiler__b=yes 10579 fi 10580 else 10581 lt_cv_prog_compiler__b=yes 10582 fi 10583 fi 10584 $RM -r conftest* 10585 LDFLAGS=$save_LDFLAGS 10586 10587fi 10588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10589printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10590 10591if test yes = "$lt_cv_prog_compiler__b"; then 10592 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10593else 10594 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10595fi 10596 10597 ;; 10598 esac 10599 fi 10600 if test no = "$with_gnu_ld"; then 10601 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10602 hardcode_libdir_separator=: 10603 10604 case $host_cpu in 10605 hppa*64*|ia64*) 10606 hardcode_direct=no 10607 hardcode_shlibpath_var=no 10608 ;; 10609 *) 10610 hardcode_direct=yes 10611 hardcode_direct_absolute=yes 10612 export_dynamic_flag_spec='$wl-E' 10613 10614 # hardcode_minus_L: Not really in the search PATH, 10615 # but as the default location of the library. 10616 hardcode_minus_L=yes 10617 ;; 10618 esac 10619 fi 10620 ;; 10621 10622 irix5* | irix6* | nonstopux*) 10623 if test yes = "$GCC"; then 10624 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' 10625 # Try to use the -exported_symbol ld option, if it does not 10626 # work, assume that -exports_file does not work either and 10627 # implicitly export all symbols. 10628 # This should be the same for all languages, so no per-tag cache variable. 10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10630printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10631if test ${lt_cv_irix_exported_symbol+y} 10632then : 10633 printf %s "(cached) " >&6 10634else $as_nop 10635 save_LDFLAGS=$LDFLAGS 10636 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10638/* end confdefs.h. */ 10639int foo (void) { return 0; } 10640_ACEOF 10641if ac_fn_c_try_link "$LINENO" 10642then : 10643 lt_cv_irix_exported_symbol=yes 10644else $as_nop 10645 lt_cv_irix_exported_symbol=no 10646fi 10647rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10648 conftest$ac_exeext conftest.$ac_ext 10649 LDFLAGS=$save_LDFLAGS 10650fi 10651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10652printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10653 if test yes = "$lt_cv_irix_exported_symbol"; then 10654 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' 10655 fi 10656 link_all_deplibs=no 10657 else 10658 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' 10659 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' 10660 fi 10661 archive_cmds_need_lc='no' 10662 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10663 hardcode_libdir_separator=: 10664 inherit_rpath=yes 10665 link_all_deplibs=yes 10666 ;; 10667 10668 linux*) 10669 case $cc_basename in 10670 tcc*) 10671 # Fabrice Bellard et al's Tiny C Compiler 10672 ld_shlibs=yes 10673 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10674 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10675 ;; 10676 esac 10677 ;; 10678 10679 netbsd* | netbsdelf*-gnu) 10680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10682 else 10683 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10684 fi 10685 hardcode_libdir_flag_spec='-R$libdir' 10686 hardcode_direct=yes 10687 hardcode_shlibpath_var=no 10688 ;; 10689 10690 newsos6) 10691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10692 hardcode_direct=yes 10693 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10694 hardcode_libdir_separator=: 10695 hardcode_shlibpath_var=no 10696 ;; 10697 10698 *nto* | *qnx*) 10699 ;; 10700 10701 openbsd* | bitrig*) 10702 if test -f /usr/libexec/ld.so; then 10703 hardcode_direct=yes 10704 hardcode_shlibpath_var=no 10705 hardcode_direct_absolute=yes 10706 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10707 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10708 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10709 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10710 export_dynamic_flag_spec='$wl-E' 10711 else 10712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10713 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10714 fi 10715 else 10716 ld_shlibs=no 10717 fi 10718 ;; 10719 10720 os2*) 10721 hardcode_libdir_flag_spec='-L$libdir' 10722 hardcode_minus_L=yes 10723 allow_undefined_flag=unsupported 10724 shrext_cmds=.dll 10725 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10726 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10727 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10728 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10729 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10730 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10731 emximp -o $lib $output_objdir/$libname.def' 10732 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10733 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10734 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10735 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10736 prefix_cmds="$SED"~ 10737 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10738 prefix_cmds="$prefix_cmds -e 1d"; 10739 fi~ 10740 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10741 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10742 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10743 emximp -o $lib $output_objdir/$libname.def' 10744 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10745 enable_shared_with_static_runtimes=yes 10746 file_list_spec='@' 10747 ;; 10748 10749 osf3*) 10750 if test yes = "$GCC"; then 10751 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10752 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' 10753 else 10754 allow_undefined_flag=' -expect_unresolved \*' 10755 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' 10756 fi 10757 archive_cmds_need_lc='no' 10758 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10759 hardcode_libdir_separator=: 10760 ;; 10761 10762 osf4* | osf5*) # as osf3* with the addition of -msym flag 10763 if test yes = "$GCC"; then 10764 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10765 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' 10766 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10767 else 10768 allow_undefined_flag=' -expect_unresolved \*' 10769 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' 10770 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~ 10771 $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' 10772 10773 # Both c and cxx compiler support -rpath directly 10774 hardcode_libdir_flag_spec='-rpath $libdir' 10775 fi 10776 archive_cmds_need_lc='no' 10777 hardcode_libdir_separator=: 10778 ;; 10779 10780 solaris*) 10781 no_undefined_flag=' -z defs' 10782 if test yes = "$GCC"; then 10783 wlarc='$wl' 10784 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10785 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10786 $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' 10787 else 10788 case `$CC -V 2>&1` in 10789 *"Compilers 5.0"*) 10790 wlarc='' 10791 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10792 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10793 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10794 ;; 10795 *) 10796 wlarc='$wl' 10797 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10798 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10799 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10800 ;; 10801 esac 10802 fi 10803 hardcode_libdir_flag_spec='-R$libdir' 10804 hardcode_shlibpath_var=no 10805 case $host_os in 10806 solaris2.[0-5] | solaris2.[0-5].*) ;; 10807 *) 10808 # The compiler driver will combine and reorder linker options, 10809 # but understands '-z linker_flag'. GCC discards it without '$wl', 10810 # but is careful enough not to reorder. 10811 # Supported since Solaris 2.6 (maybe 2.5.1?) 10812 if test yes = "$GCC"; then 10813 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10814 else 10815 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10816 fi 10817 ;; 10818 esac 10819 link_all_deplibs=yes 10820 ;; 10821 10822 sunos4*) 10823 if test sequent = "$host_vendor"; then 10824 # Use $CC to link under sequent, because it throws in some extra .o 10825 # files that make .init and .fini sections work. 10826 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10827 else 10828 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10829 fi 10830 hardcode_libdir_flag_spec='-L$libdir' 10831 hardcode_direct=yes 10832 hardcode_minus_L=yes 10833 hardcode_shlibpath_var=no 10834 ;; 10835 10836 sysv4) 10837 case $host_vendor in 10838 sni) 10839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10840 hardcode_direct=yes # is this really true??? 10841 ;; 10842 siemens) 10843 ## LD is ld it makes a PLAMLIB 10844 ## CC just makes a GrossModule. 10845 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10846 reload_cmds='$CC -r -o $output$reload_objs' 10847 hardcode_direct=no 10848 ;; 10849 motorola) 10850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10851 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10852 ;; 10853 esac 10854 runpath_var='LD_RUN_PATH' 10855 hardcode_shlibpath_var=no 10856 ;; 10857 10858 sysv4.3*) 10859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10860 hardcode_shlibpath_var=no 10861 export_dynamic_flag_spec='-Bexport' 10862 ;; 10863 10864 sysv4*MP*) 10865 if test -d /usr/nec; then 10866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10867 hardcode_shlibpath_var=no 10868 runpath_var=LD_RUN_PATH 10869 hardcode_runpath_var=yes 10870 ld_shlibs=yes 10871 fi 10872 ;; 10873 10874 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10875 no_undefined_flag='$wl-z,text' 10876 archive_cmds_need_lc=no 10877 hardcode_shlibpath_var=no 10878 runpath_var='LD_RUN_PATH' 10879 10880 if test yes = "$GCC"; then 10881 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10882 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10883 else 10884 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10885 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10886 fi 10887 ;; 10888 10889 sysv5* | sco3.2v5* | sco5v6*) 10890 # Note: We CANNOT use -z defs as we might desire, because we do not 10891 # link with -lc, and that would cause any symbols used from libc to 10892 # always be unresolved, which means just about no library would 10893 # ever link correctly. If we're not using GNU ld we use -z text 10894 # though, which does catch some bad symbols but isn't as heavy-handed 10895 # as -z defs. 10896 no_undefined_flag='$wl-z,text' 10897 allow_undefined_flag='$wl-z,nodefs' 10898 archive_cmds_need_lc=no 10899 hardcode_shlibpath_var=no 10900 hardcode_libdir_flag_spec='$wl-R,$libdir' 10901 hardcode_libdir_separator=':' 10902 link_all_deplibs=yes 10903 export_dynamic_flag_spec='$wl-Bexport' 10904 runpath_var='LD_RUN_PATH' 10905 10906 if test yes = "$GCC"; then 10907 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10908 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10909 else 10910 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10911 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10912 fi 10913 ;; 10914 10915 uts4*) 10916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10917 hardcode_libdir_flag_spec='-L$libdir' 10918 hardcode_shlibpath_var=no 10919 ;; 10920 10921 *) 10922 ld_shlibs=no 10923 ;; 10924 esac 10925 10926 if test sni = "$host_vendor"; then 10927 case $host in 10928 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10929 export_dynamic_flag_spec='$wl-Blargedynsym' 10930 ;; 10931 esac 10932 fi 10933 fi 10934 10935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10936printf "%s\n" "$ld_shlibs" >&6; } 10937test no = "$ld_shlibs" && can_build_shared=no 10938 10939with_gnu_ld=$with_gnu_ld 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955# 10956# Do we need to explicitly link libc? 10957# 10958case "x$archive_cmds_need_lc" in 10959x|xyes) 10960 # Assume -lc should be added 10961 archive_cmds_need_lc=yes 10962 10963 if test yes,yes = "$GCC,$enable_shared"; then 10964 case $archive_cmds in 10965 *'~'*) 10966 # FIXME: we may have to deal with multi-command sequences. 10967 ;; 10968 '$CC '*) 10969 # Test whether the compiler implicitly links with -lc since on some 10970 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10971 # to ld, don't add -lc before -lgcc. 10972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10973printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10974if test ${lt_cv_archive_cmds_need_lc+y} 10975then : 10976 printf %s "(cached) " >&6 10977else $as_nop 10978 $RM conftest* 10979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10980 10981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10982 (eval $ac_compile) 2>&5 10983 ac_status=$? 10984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10985 test $ac_status = 0; } 2>conftest.err; then 10986 soname=conftest 10987 lib=conftest 10988 libobjs=conftest.$ac_objext 10989 deplibs= 10990 wl=$lt_prog_compiler_wl 10991 pic_flag=$lt_prog_compiler_pic 10992 compiler_flags=-v 10993 linker_flags=-v 10994 verstring= 10995 output_objdir=. 10996 libname=conftest 10997 lt_save_allow_undefined_flag=$allow_undefined_flag 10998 allow_undefined_flag= 10999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11000 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11001 ac_status=$? 11002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11003 test $ac_status = 0; } 11004 then 11005 lt_cv_archive_cmds_need_lc=no 11006 else 11007 lt_cv_archive_cmds_need_lc=yes 11008 fi 11009 allow_undefined_flag=$lt_save_allow_undefined_flag 11010 else 11011 cat conftest.err 1>&5 11012 fi 11013 $RM conftest* 11014 11015fi 11016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11017printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11018 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11019 ;; 11020 esac 11021 fi 11022 ;; 11023esac 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11177printf %s "checking dynamic linker characteristics... " >&6; } 11178 11179if test yes = "$GCC"; then 11180 case $host_os in 11181 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11182 *) lt_awk_arg='/^libraries:/' ;; 11183 esac 11184 case $host_os in 11185 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11186 *) lt_sed_strip_eq='s|=/|/|g' ;; 11187 esac 11188 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11189 case $lt_search_path_spec in 11190 *\;*) 11191 # if the path contains ";" then we assume it to be the separator 11192 # otherwise default to the standard path separator (i.e. ":") - it is 11193 # assumed that no part of a normal pathname contains ";" but that should 11194 # okay in the real world where ";" in dirpaths is itself problematic. 11195 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11196 ;; 11197 *) 11198 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11199 ;; 11200 esac 11201 # Ok, now we have the path, separated by spaces, we can step through it 11202 # and add multilib dir if necessary... 11203 lt_tmp_lt_search_path_spec= 11204 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11205 # ...but if some path component already ends with the multilib dir we assume 11206 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11207 case "$lt_multi_os_dir; $lt_search_path_spec " in 11208 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11209 lt_multi_os_dir= 11210 ;; 11211 esac 11212 for lt_sys_path in $lt_search_path_spec; do 11213 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11214 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11215 elif test -n "$lt_multi_os_dir"; then 11216 test -d "$lt_sys_path" && \ 11217 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11218 fi 11219 done 11220 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11221BEGIN {RS = " "; FS = "/|\n";} { 11222 lt_foo = ""; 11223 lt_count = 0; 11224 for (lt_i = NF; lt_i > 0; lt_i--) { 11225 if ($lt_i != "" && $lt_i != ".") { 11226 if ($lt_i == "..") { 11227 lt_count++; 11228 } else { 11229 if (lt_count == 0) { 11230 lt_foo = "/" $lt_i lt_foo; 11231 } else { 11232 lt_count--; 11233 } 11234 } 11235 } 11236 } 11237 if (lt_foo != "") { lt_freq[lt_foo]++; } 11238 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11239}'` 11240 # AWK program above erroneously prepends '/' to C:/dos/paths 11241 # for these hosts. 11242 case $host_os in 11243 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11244 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11245 esac 11246 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11247else 11248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11249fi 11250library_names_spec= 11251libname_spec='lib$name' 11252soname_spec= 11253shrext_cmds=.so 11254postinstall_cmds= 11255postuninstall_cmds= 11256finish_cmds= 11257finish_eval= 11258shlibpath_var= 11259shlibpath_overrides_runpath=unknown 11260version_type=none 11261dynamic_linker="$host_os ld.so" 11262sys_lib_dlsearch_path_spec="/lib /usr/lib" 11263need_lib_prefix=unknown 11264hardcode_into_libs=no 11265 11266# when you set need_version to no, make sure it does not cause -set_version 11267# flags to be left without arguments 11268need_version=unknown 11269 11270 11271 11272case $host_os in 11273aix3*) 11274 version_type=linux # correct to gnu/linux during the next big refactor 11275 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11276 shlibpath_var=LIBPATH 11277 11278 # AIX 3 has no versioning support, so we append a major version to the name. 11279 soname_spec='$libname$release$shared_ext$major' 11280 ;; 11281 11282aix[4-9]*) 11283 version_type=linux # correct to gnu/linux during the next big refactor 11284 need_lib_prefix=no 11285 need_version=no 11286 hardcode_into_libs=yes 11287 if test ia64 = "$host_cpu"; then 11288 # AIX 5 supports IA64 11289 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11290 shlibpath_var=LD_LIBRARY_PATH 11291 else 11292 # With GCC up to 2.95.x, collect2 would create an import file 11293 # for dependence libraries. The import file would start with 11294 # the line '#! .'. This would cause the generated library to 11295 # depend on '.', always an invalid library. This was fixed in 11296 # development snapshots of GCC prior to 3.0. 11297 case $host_os in 11298 aix4 | aix4.[01] | aix4.[01].*) 11299 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11300 echo ' yes ' 11301 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11302 : 11303 else 11304 can_build_shared=no 11305 fi 11306 ;; 11307 esac 11308 # Using Import Files as archive members, it is possible to support 11309 # filename-based versioning of shared library archives on AIX. While 11310 # this would work for both with and without runtime linking, it will 11311 # prevent static linking of such archives. So we do filename-based 11312 # shared library versioning with .so extension only, which is used 11313 # when both runtime linking and shared linking is enabled. 11314 # Unfortunately, runtime linking may impact performance, so we do 11315 # not want this to be the default eventually. Also, we use the 11316 # versioned .so libs for executables only if there is the -brtl 11317 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11318 # To allow for filename-based versioning support, we need to create 11319 # libNAME.so.V as an archive file, containing: 11320 # *) an Import File, referring to the versioned filename of the 11321 # archive as well as the shared archive member, telling the 11322 # bitwidth (32 or 64) of that shared object, and providing the 11323 # list of exported symbols of that shared object, eventually 11324 # decorated with the 'weak' keyword 11325 # *) the shared object with the F_LOADONLY flag set, to really avoid 11326 # it being seen by the linker. 11327 # At run time we better use the real file rather than another symlink, 11328 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11329 11330 case $with_aix_soname,$aix_use_runtimelinking in 11331 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11332 # soname into executable. Probably we can add versioning support to 11333 # collect2, so additional links can be useful in future. 11334 aix,yes) # traditional libtool 11335 dynamic_linker='AIX unversionable lib.so' 11336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11337 # instead of lib<name>.a to let people know that these are not 11338 # typical AIX shared libraries. 11339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11340 ;; 11341 aix,no) # traditional AIX only 11342 dynamic_linker='AIX lib.a(lib.so.V)' 11343 # We preserve .a as extension for shared libraries through AIX4.2 11344 # and later when we are not doing run time linking. 11345 library_names_spec='$libname$release.a $libname.a' 11346 soname_spec='$libname$release$shared_ext$major' 11347 ;; 11348 svr4,*) # full svr4 only 11349 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11350 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11351 # We do not specify a path in Import Files, so LIBPATH fires. 11352 shlibpath_overrides_runpath=yes 11353 ;; 11354 *,yes) # both, prefer svr4 11355 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11356 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11357 # unpreferred sharedlib libNAME.a needs extra handling 11358 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"' 11359 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"' 11360 # We do not specify a path in Import Files, so LIBPATH fires. 11361 shlibpath_overrides_runpath=yes 11362 ;; 11363 *,no) # both, prefer aix 11364 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11365 library_names_spec='$libname$release.a $libname.a' 11366 soname_spec='$libname$release$shared_ext$major' 11367 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11368 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)' 11369 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"' 11370 ;; 11371 esac 11372 shlibpath_var=LIBPATH 11373 fi 11374 ;; 11375 11376amigaos*) 11377 case $host_cpu in 11378 powerpc) 11379 # Since July 2007 AmigaOS4 officially supports .so libraries. 11380 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11382 ;; 11383 m68k) 11384 library_names_spec='$libname.ixlibrary $libname.a' 11385 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11386 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' 11387 ;; 11388 esac 11389 ;; 11390 11391beos*) 11392 library_names_spec='$libname$shared_ext' 11393 dynamic_linker="$host_os ld.so" 11394 shlibpath_var=LIBRARY_PATH 11395 ;; 11396 11397bsdi[45]*) 11398 version_type=linux # correct to gnu/linux during the next big refactor 11399 need_version=no 11400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11401 soname_spec='$libname$release$shared_ext$major' 11402 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11403 shlibpath_var=LD_LIBRARY_PATH 11404 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11405 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11406 # the default ld.so.conf also contains /usr/contrib/lib and 11407 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11408 # libtool to hard-code these into programs 11409 ;; 11410 11411cygwin* | mingw* | pw32* | cegcc*) 11412 version_type=windows 11413 shrext_cmds=.dll 11414 need_version=no 11415 need_lib_prefix=no 11416 11417 case $GCC,$cc_basename in 11418 yes,*) 11419 # gcc 11420 library_names_spec='$libname.dll.a' 11421 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11422 postinstall_cmds='base_file=`basename \$file`~ 11423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11424 dldir=$destdir/`dirname \$dlpath`~ 11425 test -d \$dldir || mkdir -p \$dldir~ 11426 $install_prog $dir/$dlname \$dldir/$dlname~ 11427 chmod a+x \$dldir/$dlname~ 11428 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11429 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11430 fi' 11431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11432 dlpath=$dir/\$dldll~ 11433 $RM \$dlpath' 11434 shlibpath_overrides_runpath=yes 11435 11436 case $host_os in 11437 cygwin*) 11438 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11439 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11440 11441 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11442 ;; 11443 mingw* | cegcc*) 11444 # MinGW DLLs use traditional 'lib' prefix 11445 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11446 ;; 11447 pw32*) 11448 # pw32 DLLs use 'pw' prefix rather than 'lib' 11449 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11450 ;; 11451 esac 11452 dynamic_linker='Win32 ld.exe' 11453 ;; 11454 11455 *,cl* | *,icl*) 11456 # Native MSVC or ICC 11457 libname_spec='$name' 11458 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11459 library_names_spec='$libname.dll.lib' 11460 11461 case $build_os in 11462 mingw*) 11463 sys_lib_search_path_spec= 11464 lt_save_ifs=$IFS 11465 IFS=';' 11466 for lt_path in $LIB 11467 do 11468 IFS=$lt_save_ifs 11469 # Let DOS variable expansion print the short 8.3 style file name. 11470 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11471 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11472 done 11473 IFS=$lt_save_ifs 11474 # Convert to MSYS style. 11475 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11476 ;; 11477 cygwin*) 11478 # Convert to unix form, then to dos form, then back to unix form 11479 # but this time dos style (no spaces!) so that the unix form looks 11480 # like /cygdrive/c/PROGRA~1:/cygdr... 11481 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11482 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11483 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11484 ;; 11485 *) 11486 sys_lib_search_path_spec=$LIB 11487 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11488 # It is most probably a Windows format PATH. 11489 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11490 else 11491 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11492 fi 11493 # FIXME: find the short name or the path components, as spaces are 11494 # common. (e.g. "Program Files" -> "PROGRA~1") 11495 ;; 11496 esac 11497 11498 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11499 postinstall_cmds='base_file=`basename \$file`~ 11500 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11501 dldir=$destdir/`dirname \$dlpath`~ 11502 test -d \$dldir || mkdir -p \$dldir~ 11503 $install_prog $dir/$dlname \$dldir/$dlname' 11504 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11505 dlpath=$dir/\$dldll~ 11506 $RM \$dlpath' 11507 shlibpath_overrides_runpath=yes 11508 dynamic_linker='Win32 link.exe' 11509 ;; 11510 11511 *) 11512 # Assume MSVC and ICC wrapper 11513 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11514 dynamic_linker='Win32 ld.exe' 11515 ;; 11516 esac 11517 # FIXME: first we should search . and the directory the executable is in 11518 shlibpath_var=PATH 11519 ;; 11520 11521darwin* | rhapsody*) 11522 dynamic_linker="$host_os dyld" 11523 version_type=darwin 11524 need_lib_prefix=no 11525 need_version=no 11526 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11527 soname_spec='$libname$release$major$shared_ext' 11528 shlibpath_overrides_runpath=yes 11529 shlibpath_var=DYLD_LIBRARY_PATH 11530 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11531 11532 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11533 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11534 ;; 11535 11536dgux*) 11537 version_type=linux # correct to gnu/linux during the next big refactor 11538 need_lib_prefix=no 11539 need_version=no 11540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11541 soname_spec='$libname$release$shared_ext$major' 11542 shlibpath_var=LD_LIBRARY_PATH 11543 ;; 11544 11545freebsd* | dragonfly* | midnightbsd*) 11546 # DragonFly does not have aout. When/if they implement a new 11547 # versioning mechanism, adjust this. 11548 if test -x /usr/bin/objformat; then 11549 objformat=`/usr/bin/objformat` 11550 else 11551 case $host_os in 11552 freebsd[23].*) objformat=aout ;; 11553 *) objformat=elf ;; 11554 esac 11555 fi 11556 version_type=freebsd-$objformat 11557 case $version_type in 11558 freebsd-elf*) 11559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11560 soname_spec='$libname$release$shared_ext$major' 11561 need_version=no 11562 need_lib_prefix=no 11563 ;; 11564 freebsd-*) 11565 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11566 need_version=yes 11567 ;; 11568 esac 11569 shlibpath_var=LD_LIBRARY_PATH 11570 case $host_os in 11571 freebsd2.*) 11572 shlibpath_overrides_runpath=yes 11573 ;; 11574 freebsd3.[01]* | freebsdelf3.[01]*) 11575 shlibpath_overrides_runpath=yes 11576 hardcode_into_libs=yes 11577 ;; 11578 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11579 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11580 shlibpath_overrides_runpath=no 11581 hardcode_into_libs=yes 11582 ;; 11583 *) # from 4.6 on, and DragonFly 11584 shlibpath_overrides_runpath=yes 11585 hardcode_into_libs=yes 11586 ;; 11587 esac 11588 ;; 11589 11590haiku*) 11591 version_type=linux # correct to gnu/linux during the next big refactor 11592 need_lib_prefix=no 11593 need_version=no 11594 dynamic_linker="$host_os runtime_loader" 11595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11596 soname_spec='$libname$release$shared_ext$major' 11597 shlibpath_var=LIBRARY_PATH 11598 shlibpath_overrides_runpath=no 11599 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11600 hardcode_into_libs=yes 11601 ;; 11602 11603hpux9* | hpux10* | hpux11*) 11604 # Give a soname corresponding to the major version so that dld.sl refuses to 11605 # link against other versions. 11606 version_type=sunos 11607 need_lib_prefix=no 11608 need_version=no 11609 case $host_cpu in 11610 ia64*) 11611 shrext_cmds='.so' 11612 hardcode_into_libs=yes 11613 dynamic_linker="$host_os dld.so" 11614 shlibpath_var=LD_LIBRARY_PATH 11615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11617 soname_spec='$libname$release$shared_ext$major' 11618 if test 32 = "$HPUX_IA64_MODE"; then 11619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11620 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11621 else 11622 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11623 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11624 fi 11625 ;; 11626 hppa*64*) 11627 shrext_cmds='.sl' 11628 hardcode_into_libs=yes 11629 dynamic_linker="$host_os dld.sl" 11630 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11631 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11633 soname_spec='$libname$release$shared_ext$major' 11634 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11636 ;; 11637 *) 11638 shrext_cmds='.sl' 11639 dynamic_linker="$host_os dld.sl" 11640 shlibpath_var=SHLIB_PATH 11641 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11643 soname_spec='$libname$release$shared_ext$major' 11644 ;; 11645 esac 11646 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11647 postinstall_cmds='chmod 555 $lib' 11648 # or fails outright, so override atomically: 11649 install_override_mode=555 11650 ;; 11651 11652interix[3-9]*) 11653 version_type=linux # correct to gnu/linux during the next big refactor 11654 need_lib_prefix=no 11655 need_version=no 11656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11657 soname_spec='$libname$release$shared_ext$major' 11658 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11659 shlibpath_var=LD_LIBRARY_PATH 11660 shlibpath_overrides_runpath=no 11661 hardcode_into_libs=yes 11662 ;; 11663 11664irix5* | irix6* | nonstopux*) 11665 case $host_os in 11666 nonstopux*) version_type=nonstopux ;; 11667 *) 11668 if test yes = "$lt_cv_prog_gnu_ld"; then 11669 version_type=linux # correct to gnu/linux during the next big refactor 11670 else 11671 version_type=irix 11672 fi ;; 11673 esac 11674 need_lib_prefix=no 11675 need_version=no 11676 soname_spec='$libname$release$shared_ext$major' 11677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11678 case $host_os in 11679 irix5* | nonstopux*) 11680 libsuff= shlibsuff= 11681 ;; 11682 *) 11683 case $LD in # libtool.m4 will add one of these switches to LD 11684 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11685 libsuff= shlibsuff= libmagic=32-bit;; 11686 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11687 libsuff=32 shlibsuff=N32 libmagic=N32;; 11688 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11689 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11690 *) libsuff= shlibsuff= libmagic=never-match;; 11691 esac 11692 ;; 11693 esac 11694 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11695 shlibpath_overrides_runpath=no 11696 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11697 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11698 hardcode_into_libs=yes 11699 ;; 11700 11701# No shared lib support for Linux oldld, aout, or coff. 11702linux*oldld* | linux*aout* | linux*coff*) 11703 dynamic_linker=no 11704 ;; 11705 11706linux*android*) 11707 version_type=none # Android doesn't support versioned libraries. 11708 need_lib_prefix=no 11709 need_version=no 11710 library_names_spec='$libname$release$shared_ext' 11711 soname_spec='$libname$release$shared_ext' 11712 finish_cmds= 11713 shlibpath_var=LD_LIBRARY_PATH 11714 shlibpath_overrides_runpath=yes 11715 11716 # This implies no fast_install, which is unacceptable. 11717 # Some rework will be needed to allow for fast_install 11718 # before this can be enabled. 11719 hardcode_into_libs=yes 11720 11721 dynamic_linker='Android linker' 11722 # Don't embed -rpath directories since the linker doesn't support them. 11723 hardcode_libdir_flag_spec='-L$libdir' 11724 ;; 11725 11726# This must be glibc/ELF. 11727linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11728 version_type=linux # correct to gnu/linux during the next big refactor 11729 need_lib_prefix=no 11730 need_version=no 11731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11732 soname_spec='$libname$release$shared_ext$major' 11733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11734 shlibpath_var=LD_LIBRARY_PATH 11735 shlibpath_overrides_runpath=no 11736 11737 # Some binutils ld are patched to set DT_RUNPATH 11738 if test ${lt_cv_shlibpath_overrides_runpath+y} 11739then : 11740 printf %s "(cached) " >&6 11741else $as_nop 11742 lt_cv_shlibpath_overrides_runpath=no 11743 save_LDFLAGS=$LDFLAGS 11744 save_libdir=$libdir 11745 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11746 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11748/* end confdefs.h. */ 11749 11750int 11751main (void) 11752{ 11753 11754 ; 11755 return 0; 11756} 11757_ACEOF 11758if ac_fn_c_try_link "$LINENO" 11759then : 11760 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11761then : 11762 lt_cv_shlibpath_overrides_runpath=yes 11763fi 11764fi 11765rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11766 conftest$ac_exeext conftest.$ac_ext 11767 LDFLAGS=$save_LDFLAGS 11768 libdir=$save_libdir 11769 11770fi 11771 11772 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11773 11774 # This implies no fast_install, which is unacceptable. 11775 # Some rework will be needed to allow for fast_install 11776 # before this can be enabled. 11777 hardcode_into_libs=yes 11778 11779 # Ideally, we could use ldconfig to report *all* directores which are 11780 # searched for libraries, however this is still not possible. Aside from not 11781 # being certain /sbin/ldconfig is available, command 11782 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11783 # even though it is searched at run-time. Try to do the best guess by 11784 # appending ld.so.conf contents (and includes) to the search path. 11785 if test -f /etc/ld.so.conf; then 11786 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' ' '` 11787 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11788 fi 11789 11790 # We used to test for /lib/ld.so.1 and disable shared libraries on 11791 # powerpc, because MkLinux only supported shared libraries with the 11792 # GNU dynamic linker. Since this was broken with cross compilers, 11793 # most powerpc-linux boxes support dynamic linking these days and 11794 # people can always --disable-shared, the test was removed, and we 11795 # assume the GNU/Linux dynamic linker is in use. 11796 dynamic_linker='GNU/Linux ld.so' 11797 ;; 11798 11799netbsdelf*-gnu) 11800 version_type=linux 11801 need_lib_prefix=no 11802 need_version=no 11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11804 soname_spec='${libname}${release}${shared_ext}$major' 11805 shlibpath_var=LD_LIBRARY_PATH 11806 shlibpath_overrides_runpath=no 11807 hardcode_into_libs=yes 11808 dynamic_linker='NetBSD ld.elf_so' 11809 ;; 11810 11811netbsd*) 11812 version_type=sunos 11813 need_lib_prefix=no 11814 need_version=no 11815 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11816 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11818 dynamic_linker='NetBSD (a.out) ld.so' 11819 else 11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11821 soname_spec='$libname$release$shared_ext$major' 11822 dynamic_linker='NetBSD ld.elf_so' 11823 fi 11824 shlibpath_var=LD_LIBRARY_PATH 11825 shlibpath_overrides_runpath=yes 11826 hardcode_into_libs=yes 11827 ;; 11828 11829newsos6) 11830 version_type=linux # correct to gnu/linux during the next big refactor 11831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11832 shlibpath_var=LD_LIBRARY_PATH 11833 shlibpath_overrides_runpath=yes 11834 ;; 11835 11836*nto* | *qnx*) 11837 version_type=qnx 11838 need_lib_prefix=no 11839 need_version=no 11840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11841 soname_spec='$libname$release$shared_ext$major' 11842 shlibpath_var=LD_LIBRARY_PATH 11843 shlibpath_overrides_runpath=no 11844 hardcode_into_libs=yes 11845 dynamic_linker='ldqnx.so' 11846 ;; 11847 11848openbsd* | bitrig*) 11849 version_type=sunos 11850 sys_lib_dlsearch_path_spec=/usr/lib 11851 need_lib_prefix=no 11852 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11853 need_version=no 11854 else 11855 need_version=yes 11856 fi 11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11859 shlibpath_var=LD_LIBRARY_PATH 11860 shlibpath_overrides_runpath=yes 11861 ;; 11862 11863os2*) 11864 libname_spec='$name' 11865 version_type=windows 11866 shrext_cmds=.dll 11867 need_version=no 11868 need_lib_prefix=no 11869 # OS/2 can only load a DLL with a base name of 8 characters or less. 11870 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11871 v=$($ECHO $release$versuffix | tr -d .-); 11872 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11873 $ECHO $n$v`$shared_ext' 11874 library_names_spec='${libname}_dll.$libext' 11875 dynamic_linker='OS/2 ld.exe' 11876 shlibpath_var=BEGINLIBPATH 11877 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11879 postinstall_cmds='base_file=`basename \$file`~ 11880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11881 dldir=$destdir/`dirname \$dlpath`~ 11882 test -d \$dldir || mkdir -p \$dldir~ 11883 $install_prog $dir/$dlname \$dldir/$dlname~ 11884 chmod a+x \$dldir/$dlname~ 11885 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11886 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11887 fi' 11888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11889 dlpath=$dir/\$dldll~ 11890 $RM \$dlpath' 11891 ;; 11892 11893osf3* | osf4* | osf5*) 11894 version_type=osf 11895 need_lib_prefix=no 11896 need_version=no 11897 soname_spec='$libname$release$shared_ext$major' 11898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11899 shlibpath_var=LD_LIBRARY_PATH 11900 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11901 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11902 ;; 11903 11904rdos*) 11905 dynamic_linker=no 11906 ;; 11907 11908solaris*) 11909 version_type=linux # correct to gnu/linux during the next big refactor 11910 need_lib_prefix=no 11911 need_version=no 11912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11913 soname_spec='$libname$release$shared_ext$major' 11914 shlibpath_var=LD_LIBRARY_PATH 11915 shlibpath_overrides_runpath=yes 11916 hardcode_into_libs=yes 11917 # ldd complains unless libraries are executable 11918 postinstall_cmds='chmod +x $lib' 11919 ;; 11920 11921sunos4*) 11922 version_type=sunos 11923 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11924 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11925 shlibpath_var=LD_LIBRARY_PATH 11926 shlibpath_overrides_runpath=yes 11927 if test yes = "$with_gnu_ld"; then 11928 need_lib_prefix=no 11929 fi 11930 need_version=yes 11931 ;; 11932 11933sysv4 | sysv4.3*) 11934 version_type=linux # correct to gnu/linux during the next big refactor 11935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11936 soname_spec='$libname$release$shared_ext$major' 11937 shlibpath_var=LD_LIBRARY_PATH 11938 case $host_vendor in 11939 sni) 11940 shlibpath_overrides_runpath=no 11941 need_lib_prefix=no 11942 runpath_var=LD_RUN_PATH 11943 ;; 11944 siemens) 11945 need_lib_prefix=no 11946 ;; 11947 motorola) 11948 need_lib_prefix=no 11949 need_version=no 11950 shlibpath_overrides_runpath=no 11951 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11952 ;; 11953 esac 11954 ;; 11955 11956sysv4*MP*) 11957 if test -d /usr/nec; then 11958 version_type=linux # correct to gnu/linux during the next big refactor 11959 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11960 soname_spec='$libname$shared_ext.$major' 11961 shlibpath_var=LD_LIBRARY_PATH 11962 fi 11963 ;; 11964 11965sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11966 version_type=sco 11967 need_lib_prefix=no 11968 need_version=no 11969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11970 soname_spec='$libname$release$shared_ext$major' 11971 shlibpath_var=LD_LIBRARY_PATH 11972 shlibpath_overrides_runpath=yes 11973 hardcode_into_libs=yes 11974 if test yes = "$with_gnu_ld"; then 11975 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11976 else 11977 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11978 case $host_os in 11979 sco3.2v5*) 11980 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11981 ;; 11982 esac 11983 fi 11984 sys_lib_dlsearch_path_spec='/usr/lib' 11985 ;; 11986 11987tpf*) 11988 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11989 version_type=linux # correct to gnu/linux during the next big refactor 11990 need_lib_prefix=no 11991 need_version=no 11992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11993 shlibpath_var=LD_LIBRARY_PATH 11994 shlibpath_overrides_runpath=no 11995 hardcode_into_libs=yes 11996 ;; 11997 11998uts4*) 11999 version_type=linux # correct to gnu/linux during the next big refactor 12000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12001 soname_spec='$libname$release$shared_ext$major' 12002 shlibpath_var=LD_LIBRARY_PATH 12003 ;; 12004 12005*) 12006 dynamic_linker=no 12007 ;; 12008esac 12009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12010printf "%s\n" "$dynamic_linker" >&6; } 12011test no = "$dynamic_linker" && can_build_shared=no 12012 12013variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12014if test yes = "$GCC"; then 12015 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12016fi 12017 12018if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12019 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12020fi 12021 12022if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12023 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12024fi 12025 12026# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12027configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12028 12029# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12030func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12031 12032# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12033configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12132printf %s "checking how to hardcode library paths into programs... " >&6; } 12133hardcode_action= 12134if test -n "$hardcode_libdir_flag_spec" || 12135 test -n "$runpath_var" || 12136 test yes = "$hardcode_automatic"; then 12137 12138 # We can hardcode non-existent directories. 12139 if test no != "$hardcode_direct" && 12140 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12141 # have to relink, otherwise we might link with an installed library 12142 # when we should be linking with a yet-to-be-installed one 12143 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12144 test no != "$hardcode_minus_L"; then 12145 # Linking always hardcodes the temporary library directory. 12146 hardcode_action=relink 12147 else 12148 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12149 hardcode_action=immediate 12150 fi 12151else 12152 # We cannot hardcode anything, or else we can only hardcode existing 12153 # directories. 12154 hardcode_action=unsupported 12155fi 12156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12157printf "%s\n" "$hardcode_action" >&6; } 12158 12159if test relink = "$hardcode_action" || 12160 test yes = "$inherit_rpath"; then 12161 # Fast installation is not supported 12162 enable_fast_install=no 12163elif test yes = "$shlibpath_overrides_runpath" || 12164 test no = "$enable_shared"; then 12165 # Fast installation is not necessary 12166 enable_fast_install=needless 12167fi 12168 12169 12170 12171 12172 12173 12174 if test yes != "$enable_dlopen"; then 12175 enable_dlopen=unknown 12176 enable_dlopen_self=unknown 12177 enable_dlopen_self_static=unknown 12178else 12179 lt_cv_dlopen=no 12180 lt_cv_dlopen_libs= 12181 12182 case $host_os in 12183 beos*) 12184 lt_cv_dlopen=load_add_on 12185 lt_cv_dlopen_libs= 12186 lt_cv_dlopen_self=yes 12187 ;; 12188 12189 mingw* | pw32* | cegcc*) 12190 lt_cv_dlopen=LoadLibrary 12191 lt_cv_dlopen_libs= 12192 ;; 12193 12194 cygwin*) 12195 lt_cv_dlopen=dlopen 12196 lt_cv_dlopen_libs= 12197 ;; 12198 12199 darwin*) 12200 # if libdl is installed we need to link against it 12201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12202printf %s "checking for dlopen in -ldl... " >&6; } 12203if test ${ac_cv_lib_dl_dlopen+y} 12204then : 12205 printf %s "(cached) " >&6 12206else $as_nop 12207 ac_check_lib_save_LIBS=$LIBS 12208LIBS="-ldl $LIBS" 12209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12210/* end confdefs.h. */ 12211 12212/* Override any GCC internal prototype to avoid an error. 12213 Use char because int might match the return type of a GCC 12214 builtin and then its argument prototype would still apply. */ 12215char dlopen (); 12216int 12217main (void) 12218{ 12219return dlopen (); 12220 ; 12221 return 0; 12222} 12223_ACEOF 12224if ac_fn_c_try_link "$LINENO" 12225then : 12226 ac_cv_lib_dl_dlopen=yes 12227else $as_nop 12228 ac_cv_lib_dl_dlopen=no 12229fi 12230rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12231 conftest$ac_exeext conftest.$ac_ext 12232LIBS=$ac_check_lib_save_LIBS 12233fi 12234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12235printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12236if test "x$ac_cv_lib_dl_dlopen" = xyes 12237then : 12238 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12239else $as_nop 12240 12241 lt_cv_dlopen=dyld 12242 lt_cv_dlopen_libs= 12243 lt_cv_dlopen_self=yes 12244 12245fi 12246 12247 ;; 12248 12249 tpf*) 12250 # Don't try to run any link tests for TPF. We know it's impossible 12251 # because TPF is a cross-compiler, and we know how we open DSOs. 12252 lt_cv_dlopen=dlopen 12253 lt_cv_dlopen_libs= 12254 lt_cv_dlopen_self=no 12255 ;; 12256 12257 *) 12258 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12259if test "x$ac_cv_func_shl_load" = xyes 12260then : 12261 lt_cv_dlopen=shl_load 12262else $as_nop 12263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12264printf %s "checking for shl_load in -ldld... " >&6; } 12265if test ${ac_cv_lib_dld_shl_load+y} 12266then : 12267 printf %s "(cached) " >&6 12268else $as_nop 12269 ac_check_lib_save_LIBS=$LIBS 12270LIBS="-ldld $LIBS" 12271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12272/* end confdefs.h. */ 12273 12274/* Override any GCC internal prototype to avoid an error. 12275 Use char because int might match the return type of a GCC 12276 builtin and then its argument prototype would still apply. */ 12277char shl_load (); 12278int 12279main (void) 12280{ 12281return shl_load (); 12282 ; 12283 return 0; 12284} 12285_ACEOF 12286if ac_fn_c_try_link "$LINENO" 12287then : 12288 ac_cv_lib_dld_shl_load=yes 12289else $as_nop 12290 ac_cv_lib_dld_shl_load=no 12291fi 12292rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12293 conftest$ac_exeext conftest.$ac_ext 12294LIBS=$ac_check_lib_save_LIBS 12295fi 12296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12297printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12298if test "x$ac_cv_lib_dld_shl_load" = xyes 12299then : 12300 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12301else $as_nop 12302 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12303if test "x$ac_cv_func_dlopen" = xyes 12304then : 12305 lt_cv_dlopen=dlopen 12306else $as_nop 12307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12308printf %s "checking for dlopen in -ldl... " >&6; } 12309if test ${ac_cv_lib_dl_dlopen+y} 12310then : 12311 printf %s "(cached) " >&6 12312else $as_nop 12313 ac_check_lib_save_LIBS=$LIBS 12314LIBS="-ldl $LIBS" 12315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12316/* end confdefs.h. */ 12317 12318/* Override any GCC internal prototype to avoid an error. 12319 Use char because int might match the return type of a GCC 12320 builtin and then its argument prototype would still apply. */ 12321char dlopen (); 12322int 12323main (void) 12324{ 12325return dlopen (); 12326 ; 12327 return 0; 12328} 12329_ACEOF 12330if ac_fn_c_try_link "$LINENO" 12331then : 12332 ac_cv_lib_dl_dlopen=yes 12333else $as_nop 12334 ac_cv_lib_dl_dlopen=no 12335fi 12336rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12337 conftest$ac_exeext conftest.$ac_ext 12338LIBS=$ac_check_lib_save_LIBS 12339fi 12340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12341printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12342if test "x$ac_cv_lib_dl_dlopen" = xyes 12343then : 12344 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12345else $as_nop 12346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12347printf %s "checking for dlopen in -lsvld... " >&6; } 12348if test ${ac_cv_lib_svld_dlopen+y} 12349then : 12350 printf %s "(cached) " >&6 12351else $as_nop 12352 ac_check_lib_save_LIBS=$LIBS 12353LIBS="-lsvld $LIBS" 12354cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12355/* end confdefs.h. */ 12356 12357/* Override any GCC internal prototype to avoid an error. 12358 Use char because int might match the return type of a GCC 12359 builtin and then its argument prototype would still apply. */ 12360char dlopen (); 12361int 12362main (void) 12363{ 12364return dlopen (); 12365 ; 12366 return 0; 12367} 12368_ACEOF 12369if ac_fn_c_try_link "$LINENO" 12370then : 12371 ac_cv_lib_svld_dlopen=yes 12372else $as_nop 12373 ac_cv_lib_svld_dlopen=no 12374fi 12375rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12376 conftest$ac_exeext conftest.$ac_ext 12377LIBS=$ac_check_lib_save_LIBS 12378fi 12379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12380printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12381if test "x$ac_cv_lib_svld_dlopen" = xyes 12382then : 12383 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12384else $as_nop 12385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12386printf %s "checking for dld_link in -ldld... " >&6; } 12387if test ${ac_cv_lib_dld_dld_link+y} 12388then : 12389 printf %s "(cached) " >&6 12390else $as_nop 12391 ac_check_lib_save_LIBS=$LIBS 12392LIBS="-ldld $LIBS" 12393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12394/* end confdefs.h. */ 12395 12396/* Override any GCC internal prototype to avoid an error. 12397 Use char because int might match the return type of a GCC 12398 builtin and then its argument prototype would still apply. */ 12399char dld_link (); 12400int 12401main (void) 12402{ 12403return dld_link (); 12404 ; 12405 return 0; 12406} 12407_ACEOF 12408if ac_fn_c_try_link "$LINENO" 12409then : 12410 ac_cv_lib_dld_dld_link=yes 12411else $as_nop 12412 ac_cv_lib_dld_dld_link=no 12413fi 12414rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12415 conftest$ac_exeext conftest.$ac_ext 12416LIBS=$ac_check_lib_save_LIBS 12417fi 12418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12419printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12420if test "x$ac_cv_lib_dld_dld_link" = xyes 12421then : 12422 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12423fi 12424 12425 12426fi 12427 12428 12429fi 12430 12431 12432fi 12433 12434 12435fi 12436 12437 12438fi 12439 12440 ;; 12441 esac 12442 12443 if test no = "$lt_cv_dlopen"; then 12444 enable_dlopen=no 12445 else 12446 enable_dlopen=yes 12447 fi 12448 12449 case $lt_cv_dlopen in 12450 dlopen) 12451 save_CPPFLAGS=$CPPFLAGS 12452 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12453 12454 save_LDFLAGS=$LDFLAGS 12455 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12456 12457 save_LIBS=$LIBS 12458 LIBS="$lt_cv_dlopen_libs $LIBS" 12459 12460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12461printf %s "checking whether a program can dlopen itself... " >&6; } 12462if test ${lt_cv_dlopen_self+y} 12463then : 12464 printf %s "(cached) " >&6 12465else $as_nop 12466 if test yes = "$cross_compiling"; then : 12467 lt_cv_dlopen_self=cross 12468else 12469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12470 lt_status=$lt_dlunknown 12471 cat > conftest.$ac_ext <<_LT_EOF 12472#line $LINENO "configure" 12473#include "confdefs.h" 12474 12475#if HAVE_DLFCN_H 12476#include <dlfcn.h> 12477#endif 12478 12479#include <stdio.h> 12480 12481#ifdef RTLD_GLOBAL 12482# define LT_DLGLOBAL RTLD_GLOBAL 12483#else 12484# ifdef DL_GLOBAL 12485# define LT_DLGLOBAL DL_GLOBAL 12486# else 12487# define LT_DLGLOBAL 0 12488# endif 12489#endif 12490 12491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12492 find out it does not work in some platform. */ 12493#ifndef LT_DLLAZY_OR_NOW 12494# ifdef RTLD_LAZY 12495# define LT_DLLAZY_OR_NOW RTLD_LAZY 12496# else 12497# ifdef DL_LAZY 12498# define LT_DLLAZY_OR_NOW DL_LAZY 12499# else 12500# ifdef RTLD_NOW 12501# define LT_DLLAZY_OR_NOW RTLD_NOW 12502# else 12503# ifdef DL_NOW 12504# define LT_DLLAZY_OR_NOW DL_NOW 12505# else 12506# define LT_DLLAZY_OR_NOW 0 12507# endif 12508# endif 12509# endif 12510# endif 12511#endif 12512 12513/* When -fvisibility=hidden is used, assume the code has been annotated 12514 correspondingly for the symbols needed. */ 12515#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12516int fnord () __attribute__((visibility("default"))); 12517#endif 12518 12519int fnord () { return 42; } 12520int main () 12521{ 12522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12523 int status = $lt_dlunknown; 12524 12525 if (self) 12526 { 12527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12528 else 12529 { 12530 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12531 else puts (dlerror ()); 12532 } 12533 /* dlclose (self); */ 12534 } 12535 else 12536 puts (dlerror ()); 12537 12538 return status; 12539} 12540_LT_EOF 12541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12542 (eval $ac_link) 2>&5 12543 ac_status=$? 12544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12545 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12546 (./conftest; exit; ) >&5 2>/dev/null 12547 lt_status=$? 12548 case x$lt_status in 12549 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12550 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12551 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12552 esac 12553 else : 12554 # compilation failed 12555 lt_cv_dlopen_self=no 12556 fi 12557fi 12558rm -fr conftest* 12559 12560 12561fi 12562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12563printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12564 12565 if test yes = "$lt_cv_dlopen_self"; then 12566 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12568printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12569if test ${lt_cv_dlopen_self_static+y} 12570then : 12571 printf %s "(cached) " >&6 12572else $as_nop 12573 if test yes = "$cross_compiling"; then : 12574 lt_cv_dlopen_self_static=cross 12575else 12576 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12577 lt_status=$lt_dlunknown 12578 cat > conftest.$ac_ext <<_LT_EOF 12579#line $LINENO "configure" 12580#include "confdefs.h" 12581 12582#if HAVE_DLFCN_H 12583#include <dlfcn.h> 12584#endif 12585 12586#include <stdio.h> 12587 12588#ifdef RTLD_GLOBAL 12589# define LT_DLGLOBAL RTLD_GLOBAL 12590#else 12591# ifdef DL_GLOBAL 12592# define LT_DLGLOBAL DL_GLOBAL 12593# else 12594# define LT_DLGLOBAL 0 12595# endif 12596#endif 12597 12598/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12599 find out it does not work in some platform. */ 12600#ifndef LT_DLLAZY_OR_NOW 12601# ifdef RTLD_LAZY 12602# define LT_DLLAZY_OR_NOW RTLD_LAZY 12603# else 12604# ifdef DL_LAZY 12605# define LT_DLLAZY_OR_NOW DL_LAZY 12606# else 12607# ifdef RTLD_NOW 12608# define LT_DLLAZY_OR_NOW RTLD_NOW 12609# else 12610# ifdef DL_NOW 12611# define LT_DLLAZY_OR_NOW DL_NOW 12612# else 12613# define LT_DLLAZY_OR_NOW 0 12614# endif 12615# endif 12616# endif 12617# endif 12618#endif 12619 12620/* When -fvisibility=hidden is used, assume the code has been annotated 12621 correspondingly for the symbols needed. */ 12622#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12623int fnord () __attribute__((visibility("default"))); 12624#endif 12625 12626int fnord () { return 42; } 12627int main () 12628{ 12629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12630 int status = $lt_dlunknown; 12631 12632 if (self) 12633 { 12634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12635 else 12636 { 12637 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12638 else puts (dlerror ()); 12639 } 12640 /* dlclose (self); */ 12641 } 12642 else 12643 puts (dlerror ()); 12644 12645 return status; 12646} 12647_LT_EOF 12648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12649 (eval $ac_link) 2>&5 12650 ac_status=$? 12651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12652 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12653 (./conftest; exit; ) >&5 2>/dev/null 12654 lt_status=$? 12655 case x$lt_status in 12656 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12657 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12658 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12659 esac 12660 else : 12661 # compilation failed 12662 lt_cv_dlopen_self_static=no 12663 fi 12664fi 12665rm -fr conftest* 12666 12667 12668fi 12669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12670printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12671 fi 12672 12673 CPPFLAGS=$save_CPPFLAGS 12674 LDFLAGS=$save_LDFLAGS 12675 LIBS=$save_LIBS 12676 ;; 12677 esac 12678 12679 case $lt_cv_dlopen_self in 12680 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12681 *) enable_dlopen_self=unknown ;; 12682 esac 12683 12684 case $lt_cv_dlopen_self_static in 12685 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12686 *) enable_dlopen_self_static=unknown ;; 12687 esac 12688fi 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706striplib= 12707old_striplib= 12708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12709printf %s "checking whether stripping libraries is possible... " >&6; } 12710if test -z "$STRIP"; then 12711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12712printf "%s\n" "no" >&6; } 12713else 12714 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12715 old_striplib="$STRIP --strip-debug" 12716 striplib="$STRIP --strip-unneeded" 12717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12718printf "%s\n" "yes" >&6; } 12719 else 12720 case $host_os in 12721 darwin*) 12722 # FIXME - insert some real tests, host_os isn't really good enough 12723 striplib="$STRIP -x" 12724 old_striplib="$STRIP -S" 12725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12726printf "%s\n" "yes" >&6; } 12727 ;; 12728 freebsd*) 12729 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12730 old_striplib="$STRIP --strip-debug" 12731 striplib="$STRIP --strip-unneeded" 12732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12733printf "%s\n" "yes" >&6; } 12734 else 12735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12736printf "%s\n" "no" >&6; } 12737 fi 12738 ;; 12739 *) 12740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12741printf "%s\n" "no" >&6; } 12742 ;; 12743 esac 12744 fi 12745fi 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 # Report what library types will actually be built 12759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12760printf %s "checking if libtool supports shared libraries... " >&6; } 12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12762printf "%s\n" "$can_build_shared" >&6; } 12763 12764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12765printf %s "checking whether to build shared libraries... " >&6; } 12766 test no = "$can_build_shared" && enable_shared=no 12767 12768 # On AIX, shared libraries and static libraries use the same namespace, and 12769 # are all built from PIC. 12770 case $host_os in 12771 aix3*) 12772 test yes = "$enable_shared" && enable_static=no 12773 if test -n "$RANLIB"; then 12774 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12775 postinstall_cmds='$RANLIB $lib' 12776 fi 12777 ;; 12778 12779 aix[4-9]*) 12780 if test ia64 != "$host_cpu"; then 12781 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12782 yes,aix,yes) ;; # shared object as lib.so file only 12783 yes,svr4,*) ;; # shared object as lib.so archive member only 12784 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12785 esac 12786 fi 12787 ;; 12788 esac 12789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12790printf "%s\n" "$enable_shared" >&6; } 12791 12792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12793printf %s "checking whether to build static libraries... " >&6; } 12794 # Make sure either enable_shared or enable_static is yes. 12795 test yes = "$enable_shared" || enable_static=yes 12796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12797printf "%s\n" "$enable_static" >&6; } 12798 12799 12800 12801 12802fi 12803ac_ext=c 12804ac_cpp='$CPP $CPPFLAGS' 12805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12807ac_compiler_gnu=$ac_cv_c_compiler_gnu 12808 12809CC=$lt_save_CC 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 ac_config_commands="$ac_config_commands libtool" 12826 12827 12828 12829 12830# Only expand once: 12831 12832 12833 12834# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12848printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12849if test ${ac_cv_c_undeclared_builtin_options+y} 12850then : 12851 printf %s "(cached) " >&6 12852else $as_nop 12853 ac_save_CFLAGS=$CFLAGS 12854 ac_cv_c_undeclared_builtin_options='cannot detect' 12855 for ac_arg in '' -fno-builtin; do 12856 CFLAGS="$ac_save_CFLAGS $ac_arg" 12857 # This test program should *not* compile successfully. 12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12859/* end confdefs.h. */ 12860 12861int 12862main (void) 12863{ 12864(void) strchr; 12865 ; 12866 return 0; 12867} 12868_ACEOF 12869if ac_fn_c_try_compile "$LINENO" 12870then : 12871 12872else $as_nop 12873 # This test program should compile successfully. 12874 # No library function is consistently available on 12875 # freestanding implementations, so test against a dummy 12876 # declaration. Include always-available headers on the 12877 # off chance that they somehow elicit warnings. 12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12879/* end confdefs.h. */ 12880#include <float.h> 12881#include <limits.h> 12882#include <stdarg.h> 12883#include <stddef.h> 12884extern void ac_decl (int, char *); 12885 12886int 12887main (void) 12888{ 12889(void) ac_decl (0, (char *) 0); 12890 (void) ac_decl; 12891 12892 ; 12893 return 0; 12894} 12895_ACEOF 12896if ac_fn_c_try_compile "$LINENO" 12897then : 12898 if test x"$ac_arg" = x 12899then : 12900 ac_cv_c_undeclared_builtin_options='none needed' 12901else $as_nop 12902 ac_cv_c_undeclared_builtin_options=$ac_arg 12903fi 12904 break 12905fi 12906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12907fi 12908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12909 done 12910 CFLAGS=$ac_save_CFLAGS 12911 12912fi 12913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12914printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12915 case $ac_cv_c_undeclared_builtin_options in #( 12916 'cannot detect') : 12917 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12918printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12919as_fn_error $? "cannot make $CC report undeclared builtins 12920See \`config.log' for more details" "$LINENO" 5; } ;; #( 12921 'none needed') : 12922 ac_c_undeclared_builtin_options='' ;; #( 12923 *) : 12924 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12925esac 12926 12927 12928 12929 12930 12931ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12932if test "x$ac_cv_have_decl___clang__" = xyes 12933then : 12934 CLANGCC="yes" 12935else $as_nop 12936 CLANGCC="no" 12937fi 12938ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12939if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12940then : 12941 INTELCC="yes" 12942else $as_nop 12943 INTELCC="no" 12944fi 12945ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12946if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12947then : 12948 SUNCC="yes" 12949else $as_nop 12950 SUNCC="no" 12951fi 12952 12953 12954 12955 12956 12957 12958 12959 12960if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12961 if test -n "$ac_tool_prefix"; then 12962 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12963set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12965printf %s "checking for $ac_word... " >&6; } 12966if test ${ac_cv_path_PKG_CONFIG+y} 12967then : 12968 printf %s "(cached) " >&6 12969else $as_nop 12970 case $PKG_CONFIG in 12971 [\\/]* | ?:[\\/]*) 12972 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12973 ;; 12974 *) 12975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12976for as_dir in $PATH 12977do 12978 IFS=$as_save_IFS 12979 case $as_dir in #((( 12980 '') as_dir=./ ;; 12981 */) ;; 12982 *) as_dir=$as_dir/ ;; 12983 esac 12984 for ac_exec_ext in '' $ac_executable_extensions; do 12985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12986 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12988 break 2 12989 fi 12990done 12991 done 12992IFS=$as_save_IFS 12993 12994 ;; 12995esac 12996fi 12997PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12998if test -n "$PKG_CONFIG"; then 12999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13000printf "%s\n" "$PKG_CONFIG" >&6; } 13001else 13002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13003printf "%s\n" "no" >&6; } 13004fi 13005 13006 13007fi 13008if test -z "$ac_cv_path_PKG_CONFIG"; then 13009 ac_pt_PKG_CONFIG=$PKG_CONFIG 13010 # Extract the first word of "pkg-config", so it can be a program name with args. 13011set dummy pkg-config; ac_word=$2 13012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13013printf %s "checking for $ac_word... " >&6; } 13014if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13015then : 13016 printf %s "(cached) " >&6 13017else $as_nop 13018 case $ac_pt_PKG_CONFIG in 13019 [\\/]* | ?:[\\/]*) 13020 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13021 ;; 13022 *) 13023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13024for as_dir in $PATH 13025do 13026 IFS=$as_save_IFS 13027 case $as_dir in #((( 13028 '') as_dir=./ ;; 13029 */) ;; 13030 *) as_dir=$as_dir/ ;; 13031 esac 13032 for ac_exec_ext in '' $ac_executable_extensions; do 13033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13034 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13036 break 2 13037 fi 13038done 13039 done 13040IFS=$as_save_IFS 13041 13042 ;; 13043esac 13044fi 13045ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13046if test -n "$ac_pt_PKG_CONFIG"; then 13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13048printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13049else 13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13051printf "%s\n" "no" >&6; } 13052fi 13053 13054 if test "x$ac_pt_PKG_CONFIG" = x; then 13055 PKG_CONFIG="" 13056 else 13057 case $cross_compiling:$ac_tool_warned in 13058yes:) 13059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13060printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13061ac_tool_warned=yes ;; 13062esac 13063 PKG_CONFIG=$ac_pt_PKG_CONFIG 13064 fi 13065else 13066 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13067fi 13068 13069fi 13070if test -n "$PKG_CONFIG"; then 13071 _pkg_min_version=0.9.0 13072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13073printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13074 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13076printf "%s\n" "yes" >&6; } 13077 else 13078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13079printf "%s\n" "no" >&6; } 13080 PKG_CONFIG="" 13081 fi 13082fi 13083 13084 13085 13086 13087 13088# Check whether --enable-selective-werror was given. 13089if test ${enable_selective_werror+y} 13090then : 13091 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13092else $as_nop 13093 SELECTIVE_WERROR=yes 13094fi 13095 13096 13097 13098 13099 13100# -v is too short to test reliably with XORG_TESTSET_CFLAG 13101if test "x$SUNCC" = "xyes"; then 13102 BASE_CFLAGS="-v" 13103else 13104 BASE_CFLAGS="" 13105fi 13106 13107# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121xorg_testset_save_CFLAGS="$CFLAGS" 13122 13123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13126printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13127if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13128then : 13129 printf %s "(cached) " >&6 13130else $as_nop 13131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13132/* end confdefs.h. */ 13133int i; 13134_ACEOF 13135if ac_fn_c_try_compile "$LINENO" 13136then : 13137 xorg_cv_cc_flag_unknown_warning_option=yes 13138else $as_nop 13139 xorg_cv_cc_flag_unknown_warning_option=no 13140fi 13141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13142fi 13143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13144printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13146 CFLAGS="$xorg_testset_save_CFLAGS" 13147fi 13148 13149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13152 fi 13153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13155printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13156if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13157then : 13158 printf %s "(cached) " >&6 13159else $as_nop 13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13161/* end confdefs.h. */ 13162int i; 13163_ACEOF 13164if ac_fn_c_try_compile "$LINENO" 13165then : 13166 xorg_cv_cc_flag_unused_command_line_argument=yes 13167else $as_nop 13168 xorg_cv_cc_flag_unused_command_line_argument=no 13169fi 13170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13171fi 13172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13173printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13175 CFLAGS="$xorg_testset_save_CFLAGS" 13176fi 13177 13178found="no" 13179 13180 if test $found = "no" ; then 13181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13183 fi 13184 13185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13187 fi 13188 13189 CFLAGS="$CFLAGS -Wall" 13190 13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13192printf %s "checking if $CC supports -Wall... " >&6; } 13193 cacheid=xorg_cv_cc_flag__Wall 13194 if eval test \${$cacheid+y} 13195then : 13196 printf %s "(cached) " >&6 13197else $as_nop 13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13199/* end confdefs.h. */ 13200int i; 13201int 13202main (void) 13203{ 13204 13205 ; 13206 return 0; 13207} 13208_ACEOF 13209if ac_fn_c_try_link "$LINENO" 13210then : 13211 eval $cacheid=yes 13212else $as_nop 13213 eval $cacheid=no 13214fi 13215rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13216 conftest$ac_exeext conftest.$ac_ext 13217fi 13218 13219 13220 CFLAGS="$xorg_testset_save_CFLAGS" 13221 13222 eval supported=\$$cacheid 13223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13224printf "%s\n" "$supported" >&6; } 13225 if test "$supported" = "yes" ; then 13226 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13227 found="yes" 13228 fi 13229 fi 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245xorg_testset_save_CFLAGS="$CFLAGS" 13246 13247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13250printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13251if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13252then : 13253 printf %s "(cached) " >&6 13254else $as_nop 13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13256/* end confdefs.h. */ 13257int i; 13258_ACEOF 13259if ac_fn_c_try_compile "$LINENO" 13260then : 13261 xorg_cv_cc_flag_unknown_warning_option=yes 13262else $as_nop 13263 xorg_cv_cc_flag_unknown_warning_option=no 13264fi 13265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13266fi 13267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13268printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13270 CFLAGS="$xorg_testset_save_CFLAGS" 13271fi 13272 13273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13276 fi 13277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13279printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13280if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13281then : 13282 printf %s "(cached) " >&6 13283else $as_nop 13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13285/* end confdefs.h. */ 13286int i; 13287_ACEOF 13288if ac_fn_c_try_compile "$LINENO" 13289then : 13290 xorg_cv_cc_flag_unused_command_line_argument=yes 13291else $as_nop 13292 xorg_cv_cc_flag_unused_command_line_argument=no 13293fi 13294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13295fi 13296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13297printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13299 CFLAGS="$xorg_testset_save_CFLAGS" 13300fi 13301 13302found="no" 13303 13304 if test $found = "no" ; then 13305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13307 fi 13308 13309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13311 fi 13312 13313 CFLAGS="$CFLAGS -Wpointer-arith" 13314 13315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13316printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13317 cacheid=xorg_cv_cc_flag__Wpointer_arith 13318 if eval test \${$cacheid+y} 13319then : 13320 printf %s "(cached) " >&6 13321else $as_nop 13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13323/* end confdefs.h. */ 13324int i; 13325int 13326main (void) 13327{ 13328 13329 ; 13330 return 0; 13331} 13332_ACEOF 13333if ac_fn_c_try_link "$LINENO" 13334then : 13335 eval $cacheid=yes 13336else $as_nop 13337 eval $cacheid=no 13338fi 13339rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13340 conftest$ac_exeext conftest.$ac_ext 13341fi 13342 13343 13344 CFLAGS="$xorg_testset_save_CFLAGS" 13345 13346 eval supported=\$$cacheid 13347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13348printf "%s\n" "$supported" >&6; } 13349 if test "$supported" = "yes" ; then 13350 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13351 found="yes" 13352 fi 13353 fi 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369xorg_testset_save_CFLAGS="$CFLAGS" 13370 13371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13375if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13376then : 13377 printf %s "(cached) " >&6 13378else $as_nop 13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13380/* end confdefs.h. */ 13381int i; 13382_ACEOF 13383if ac_fn_c_try_compile "$LINENO" 13384then : 13385 xorg_cv_cc_flag_unknown_warning_option=yes 13386else $as_nop 13387 xorg_cv_cc_flag_unknown_warning_option=no 13388fi 13389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13390fi 13391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13392printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13394 CFLAGS="$xorg_testset_save_CFLAGS" 13395fi 13396 13397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13400 fi 13401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13403printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13404if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13405then : 13406 printf %s "(cached) " >&6 13407else $as_nop 13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13409/* end confdefs.h. */ 13410int i; 13411_ACEOF 13412if ac_fn_c_try_compile "$LINENO" 13413then : 13414 xorg_cv_cc_flag_unused_command_line_argument=yes 13415else $as_nop 13416 xorg_cv_cc_flag_unused_command_line_argument=no 13417fi 13418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13419fi 13420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13423 CFLAGS="$xorg_testset_save_CFLAGS" 13424fi 13425 13426found="no" 13427 13428 if test $found = "no" ; then 13429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13431 fi 13432 13433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13435 fi 13436 13437 CFLAGS="$CFLAGS -Wmissing-declarations" 13438 13439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13440printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13441 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13442 if eval test \${$cacheid+y} 13443then : 13444 printf %s "(cached) " >&6 13445else $as_nop 13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13447/* end confdefs.h. */ 13448int i; 13449int 13450main (void) 13451{ 13452 13453 ; 13454 return 0; 13455} 13456_ACEOF 13457if ac_fn_c_try_link "$LINENO" 13458then : 13459 eval $cacheid=yes 13460else $as_nop 13461 eval $cacheid=no 13462fi 13463rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13464 conftest$ac_exeext conftest.$ac_ext 13465fi 13466 13467 13468 CFLAGS="$xorg_testset_save_CFLAGS" 13469 13470 eval supported=\$$cacheid 13471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13472printf "%s\n" "$supported" >&6; } 13473 if test "$supported" = "yes" ; then 13474 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13475 found="yes" 13476 fi 13477 fi 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493xorg_testset_save_CFLAGS="$CFLAGS" 13494 13495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13499if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13500then : 13501 printf %s "(cached) " >&6 13502else $as_nop 13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13504/* end confdefs.h. */ 13505int i; 13506_ACEOF 13507if ac_fn_c_try_compile "$LINENO" 13508then : 13509 xorg_cv_cc_flag_unknown_warning_option=yes 13510else $as_nop 13511 xorg_cv_cc_flag_unknown_warning_option=no 13512fi 13513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13514fi 13515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13516printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13518 CFLAGS="$xorg_testset_save_CFLAGS" 13519fi 13520 13521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13524 fi 13525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13527printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13528if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13529then : 13530 printf %s "(cached) " >&6 13531else $as_nop 13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13533/* end confdefs.h. */ 13534int i; 13535_ACEOF 13536if ac_fn_c_try_compile "$LINENO" 13537then : 13538 xorg_cv_cc_flag_unused_command_line_argument=yes 13539else $as_nop 13540 xorg_cv_cc_flag_unused_command_line_argument=no 13541fi 13542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13543fi 13544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13545printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13547 CFLAGS="$xorg_testset_save_CFLAGS" 13548fi 13549 13550found="no" 13551 13552 if test $found = "no" ; then 13553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13555 fi 13556 13557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13559 fi 13560 13561 CFLAGS="$CFLAGS -Wformat=2" 13562 13563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13564printf %s "checking if $CC supports -Wformat=2... " >&6; } 13565 cacheid=xorg_cv_cc_flag__Wformat_2 13566 if eval test \${$cacheid+y} 13567then : 13568 printf %s "(cached) " >&6 13569else $as_nop 13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13571/* end confdefs.h. */ 13572int i; 13573int 13574main (void) 13575{ 13576 13577 ; 13578 return 0; 13579} 13580_ACEOF 13581if ac_fn_c_try_link "$LINENO" 13582then : 13583 eval $cacheid=yes 13584else $as_nop 13585 eval $cacheid=no 13586fi 13587rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13588 conftest$ac_exeext conftest.$ac_ext 13589fi 13590 13591 13592 CFLAGS="$xorg_testset_save_CFLAGS" 13593 13594 eval supported=\$$cacheid 13595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13596printf "%s\n" "$supported" >&6; } 13597 if test "$supported" = "yes" ; then 13598 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13599 found="yes" 13600 fi 13601 fi 13602 13603 if test $found = "no" ; then 13604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13606 fi 13607 13608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13610 fi 13611 13612 CFLAGS="$CFLAGS -Wformat" 13613 13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13615printf %s "checking if $CC supports -Wformat... " >&6; } 13616 cacheid=xorg_cv_cc_flag__Wformat 13617 if eval test \${$cacheid+y} 13618then : 13619 printf %s "(cached) " >&6 13620else $as_nop 13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13622/* end confdefs.h. */ 13623int i; 13624int 13625main (void) 13626{ 13627 13628 ; 13629 return 0; 13630} 13631_ACEOF 13632if ac_fn_c_try_link "$LINENO" 13633then : 13634 eval $cacheid=yes 13635else $as_nop 13636 eval $cacheid=no 13637fi 13638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13639 conftest$ac_exeext conftest.$ac_ext 13640fi 13641 13642 13643 CFLAGS="$xorg_testset_save_CFLAGS" 13644 13645 eval supported=\$$cacheid 13646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13647printf "%s\n" "$supported" >&6; } 13648 if test "$supported" = "yes" ; then 13649 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13650 found="yes" 13651 fi 13652 fi 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670xorg_testset_save_CFLAGS="$CFLAGS" 13671 13672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13675printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13676if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13677then : 13678 printf %s "(cached) " >&6 13679else $as_nop 13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13681/* end confdefs.h. */ 13682int i; 13683_ACEOF 13684if ac_fn_c_try_compile "$LINENO" 13685then : 13686 xorg_cv_cc_flag_unknown_warning_option=yes 13687else $as_nop 13688 xorg_cv_cc_flag_unknown_warning_option=no 13689fi 13690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13691fi 13692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13693printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13695 CFLAGS="$xorg_testset_save_CFLAGS" 13696fi 13697 13698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13701 fi 13702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13704printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13705if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13706then : 13707 printf %s "(cached) " >&6 13708else $as_nop 13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13710/* end confdefs.h. */ 13711int i; 13712_ACEOF 13713if ac_fn_c_try_compile "$LINENO" 13714then : 13715 xorg_cv_cc_flag_unused_command_line_argument=yes 13716else $as_nop 13717 xorg_cv_cc_flag_unused_command_line_argument=no 13718fi 13719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13720fi 13721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13722printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13724 CFLAGS="$xorg_testset_save_CFLAGS" 13725fi 13726 13727found="no" 13728 13729 if test $found = "no" ; then 13730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13732 fi 13733 13734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13736 fi 13737 13738 CFLAGS="$CFLAGS -Wstrict-prototypes" 13739 13740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13741printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13742 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13743 if eval test \${$cacheid+y} 13744then : 13745 printf %s "(cached) " >&6 13746else $as_nop 13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13748/* end confdefs.h. */ 13749int i; 13750int 13751main (void) 13752{ 13753 13754 ; 13755 return 0; 13756} 13757_ACEOF 13758if ac_fn_c_try_link "$LINENO" 13759then : 13760 eval $cacheid=yes 13761else $as_nop 13762 eval $cacheid=no 13763fi 13764rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13765 conftest$ac_exeext conftest.$ac_ext 13766fi 13767 13768 13769 CFLAGS="$xorg_testset_save_CFLAGS" 13770 13771 eval supported=\$$cacheid 13772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13773printf "%s\n" "$supported" >&6; } 13774 if test "$supported" = "yes" ; then 13775 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13776 found="yes" 13777 fi 13778 fi 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794xorg_testset_save_CFLAGS="$CFLAGS" 13795 13796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13799printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13800if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13801then : 13802 printf %s "(cached) " >&6 13803else $as_nop 13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13805/* end confdefs.h. */ 13806int i; 13807_ACEOF 13808if ac_fn_c_try_compile "$LINENO" 13809then : 13810 xorg_cv_cc_flag_unknown_warning_option=yes 13811else $as_nop 13812 xorg_cv_cc_flag_unknown_warning_option=no 13813fi 13814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13815fi 13816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13817printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13819 CFLAGS="$xorg_testset_save_CFLAGS" 13820fi 13821 13822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13825 fi 13826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13828printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13829if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13830then : 13831 printf %s "(cached) " >&6 13832else $as_nop 13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13834/* end confdefs.h. */ 13835int i; 13836_ACEOF 13837if ac_fn_c_try_compile "$LINENO" 13838then : 13839 xorg_cv_cc_flag_unused_command_line_argument=yes 13840else $as_nop 13841 xorg_cv_cc_flag_unused_command_line_argument=no 13842fi 13843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13844fi 13845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13846printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13848 CFLAGS="$xorg_testset_save_CFLAGS" 13849fi 13850 13851found="no" 13852 13853 if test $found = "no" ; then 13854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13856 fi 13857 13858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13860 fi 13861 13862 CFLAGS="$CFLAGS -Wmissing-prototypes" 13863 13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13865printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13866 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13867 if eval test \${$cacheid+y} 13868then : 13869 printf %s "(cached) " >&6 13870else $as_nop 13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13872/* end confdefs.h. */ 13873int i; 13874int 13875main (void) 13876{ 13877 13878 ; 13879 return 0; 13880} 13881_ACEOF 13882if ac_fn_c_try_link "$LINENO" 13883then : 13884 eval $cacheid=yes 13885else $as_nop 13886 eval $cacheid=no 13887fi 13888rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13889 conftest$ac_exeext conftest.$ac_ext 13890fi 13891 13892 13893 CFLAGS="$xorg_testset_save_CFLAGS" 13894 13895 eval supported=\$$cacheid 13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13897printf "%s\n" "$supported" >&6; } 13898 if test "$supported" = "yes" ; then 13899 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13900 found="yes" 13901 fi 13902 fi 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918xorg_testset_save_CFLAGS="$CFLAGS" 13919 13920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13923printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13924if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13925then : 13926 printf %s "(cached) " >&6 13927else $as_nop 13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13929/* end confdefs.h. */ 13930int i; 13931_ACEOF 13932if ac_fn_c_try_compile "$LINENO" 13933then : 13934 xorg_cv_cc_flag_unknown_warning_option=yes 13935else $as_nop 13936 xorg_cv_cc_flag_unknown_warning_option=no 13937fi 13938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13939fi 13940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13941printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13943 CFLAGS="$xorg_testset_save_CFLAGS" 13944fi 13945 13946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13949 fi 13950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13952printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13953if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13954then : 13955 printf %s "(cached) " >&6 13956else $as_nop 13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13958/* end confdefs.h. */ 13959int i; 13960_ACEOF 13961if ac_fn_c_try_compile "$LINENO" 13962then : 13963 xorg_cv_cc_flag_unused_command_line_argument=yes 13964else $as_nop 13965 xorg_cv_cc_flag_unused_command_line_argument=no 13966fi 13967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13968fi 13969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13970printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13972 CFLAGS="$xorg_testset_save_CFLAGS" 13973fi 13974 13975found="no" 13976 13977 if test $found = "no" ; then 13978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13980 fi 13981 13982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13984 fi 13985 13986 CFLAGS="$CFLAGS -Wnested-externs" 13987 13988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13989printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13990 cacheid=xorg_cv_cc_flag__Wnested_externs 13991 if eval test \${$cacheid+y} 13992then : 13993 printf %s "(cached) " >&6 13994else $as_nop 13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13996/* end confdefs.h. */ 13997int i; 13998int 13999main (void) 14000{ 14001 14002 ; 14003 return 0; 14004} 14005_ACEOF 14006if ac_fn_c_try_link "$LINENO" 14007then : 14008 eval $cacheid=yes 14009else $as_nop 14010 eval $cacheid=no 14011fi 14012rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14013 conftest$ac_exeext conftest.$ac_ext 14014fi 14015 14016 14017 CFLAGS="$xorg_testset_save_CFLAGS" 14018 14019 eval supported=\$$cacheid 14020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14021printf "%s\n" "$supported" >&6; } 14022 if test "$supported" = "yes" ; then 14023 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14024 found="yes" 14025 fi 14026 fi 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042xorg_testset_save_CFLAGS="$CFLAGS" 14043 14044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14047printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14048if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14049then : 14050 printf %s "(cached) " >&6 14051else $as_nop 14052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14053/* end confdefs.h. */ 14054int i; 14055_ACEOF 14056if ac_fn_c_try_compile "$LINENO" 14057then : 14058 xorg_cv_cc_flag_unknown_warning_option=yes 14059else $as_nop 14060 xorg_cv_cc_flag_unknown_warning_option=no 14061fi 14062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14063fi 14064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14065printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14067 CFLAGS="$xorg_testset_save_CFLAGS" 14068fi 14069 14070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14073 fi 14074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14076printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14077if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14078then : 14079 printf %s "(cached) " >&6 14080else $as_nop 14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14082/* end confdefs.h. */ 14083int i; 14084_ACEOF 14085if ac_fn_c_try_compile "$LINENO" 14086then : 14087 xorg_cv_cc_flag_unused_command_line_argument=yes 14088else $as_nop 14089 xorg_cv_cc_flag_unused_command_line_argument=no 14090fi 14091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14092fi 14093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14094printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14096 CFLAGS="$xorg_testset_save_CFLAGS" 14097fi 14098 14099found="no" 14100 14101 if test $found = "no" ; then 14102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14104 fi 14105 14106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14108 fi 14109 14110 CFLAGS="$CFLAGS -Wbad-function-cast" 14111 14112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14113printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14114 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14115 if eval test \${$cacheid+y} 14116then : 14117 printf %s "(cached) " >&6 14118else $as_nop 14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14120/* end confdefs.h. */ 14121int i; 14122int 14123main (void) 14124{ 14125 14126 ; 14127 return 0; 14128} 14129_ACEOF 14130if ac_fn_c_try_link "$LINENO" 14131then : 14132 eval $cacheid=yes 14133else $as_nop 14134 eval $cacheid=no 14135fi 14136rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14137 conftest$ac_exeext conftest.$ac_ext 14138fi 14139 14140 14141 CFLAGS="$xorg_testset_save_CFLAGS" 14142 14143 eval supported=\$$cacheid 14144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14145printf "%s\n" "$supported" >&6; } 14146 if test "$supported" = "yes" ; then 14147 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14148 found="yes" 14149 fi 14150 fi 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166xorg_testset_save_CFLAGS="$CFLAGS" 14167 14168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14171printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14172if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14173then : 14174 printf %s "(cached) " >&6 14175else $as_nop 14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14177/* end confdefs.h. */ 14178int i; 14179_ACEOF 14180if ac_fn_c_try_compile "$LINENO" 14181then : 14182 xorg_cv_cc_flag_unknown_warning_option=yes 14183else $as_nop 14184 xorg_cv_cc_flag_unknown_warning_option=no 14185fi 14186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14187fi 14188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14189printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14191 CFLAGS="$xorg_testset_save_CFLAGS" 14192fi 14193 14194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14197 fi 14198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14200printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14201if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14202then : 14203 printf %s "(cached) " >&6 14204else $as_nop 14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14206/* end confdefs.h. */ 14207int i; 14208_ACEOF 14209if ac_fn_c_try_compile "$LINENO" 14210then : 14211 xorg_cv_cc_flag_unused_command_line_argument=yes 14212else $as_nop 14213 xorg_cv_cc_flag_unused_command_line_argument=no 14214fi 14215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14216fi 14217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14218printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14220 CFLAGS="$xorg_testset_save_CFLAGS" 14221fi 14222 14223found="no" 14224 14225 if test $found = "no" ; then 14226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14228 fi 14229 14230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14232 fi 14233 14234 CFLAGS="$CFLAGS -Wold-style-definition" 14235 14236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14237printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14238 cacheid=xorg_cv_cc_flag__Wold_style_definition 14239 if eval test \${$cacheid+y} 14240then : 14241 printf %s "(cached) " >&6 14242else $as_nop 14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14244/* end confdefs.h. */ 14245int i; 14246int 14247main (void) 14248{ 14249 14250 ; 14251 return 0; 14252} 14253_ACEOF 14254if ac_fn_c_try_link "$LINENO" 14255then : 14256 eval $cacheid=yes 14257else $as_nop 14258 eval $cacheid=no 14259fi 14260rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14261 conftest$ac_exeext conftest.$ac_ext 14262fi 14263 14264 14265 CFLAGS="$xorg_testset_save_CFLAGS" 14266 14267 eval supported=\$$cacheid 14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14269printf "%s\n" "$supported" >&6; } 14270 if test "$supported" = "yes" ; then 14271 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14272 found="yes" 14273 fi 14274 fi 14275 14276 if test $found = "no" ; then 14277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14279 fi 14280 14281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14283 fi 14284 14285 CFLAGS="$CFLAGS -fd" 14286 14287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14288printf %s "checking if $CC supports -fd... " >&6; } 14289 cacheid=xorg_cv_cc_flag__fd 14290 if eval test \${$cacheid+y} 14291then : 14292 printf %s "(cached) " >&6 14293else $as_nop 14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14295/* end confdefs.h. */ 14296int i; 14297int 14298main (void) 14299{ 14300 14301 ; 14302 return 0; 14303} 14304_ACEOF 14305if ac_fn_c_try_link "$LINENO" 14306then : 14307 eval $cacheid=yes 14308else $as_nop 14309 eval $cacheid=no 14310fi 14311rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14312 conftest$ac_exeext conftest.$ac_ext 14313fi 14314 14315 14316 CFLAGS="$xorg_testset_save_CFLAGS" 14317 14318 eval supported=\$$cacheid 14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14320printf "%s\n" "$supported" >&6; } 14321 if test "$supported" = "yes" ; then 14322 BASE_CFLAGS="$BASE_CFLAGS -fd" 14323 found="yes" 14324 fi 14325 fi 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341xorg_testset_save_CFLAGS="$CFLAGS" 14342 14343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14346printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14347if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14348then : 14349 printf %s "(cached) " >&6 14350else $as_nop 14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14352/* end confdefs.h. */ 14353int i; 14354_ACEOF 14355if ac_fn_c_try_compile "$LINENO" 14356then : 14357 xorg_cv_cc_flag_unknown_warning_option=yes 14358else $as_nop 14359 xorg_cv_cc_flag_unknown_warning_option=no 14360fi 14361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14362fi 14363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14364printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14366 CFLAGS="$xorg_testset_save_CFLAGS" 14367fi 14368 14369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14372 fi 14373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14375printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14376if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14377then : 14378 printf %s "(cached) " >&6 14379else $as_nop 14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14381/* end confdefs.h. */ 14382int i; 14383_ACEOF 14384if ac_fn_c_try_compile "$LINENO" 14385then : 14386 xorg_cv_cc_flag_unused_command_line_argument=yes 14387else $as_nop 14388 xorg_cv_cc_flag_unused_command_line_argument=no 14389fi 14390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14391fi 14392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14393printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14395 CFLAGS="$xorg_testset_save_CFLAGS" 14396fi 14397 14398found="no" 14399 14400 if test $found = "no" ; then 14401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14403 fi 14404 14405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14407 fi 14408 14409 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14410 14411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14412printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14413 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14414 if eval test \${$cacheid+y} 14415then : 14416 printf %s "(cached) " >&6 14417else $as_nop 14418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14419/* end confdefs.h. */ 14420int i; 14421int 14422main (void) 14423{ 14424 14425 ; 14426 return 0; 14427} 14428_ACEOF 14429if ac_fn_c_try_link "$LINENO" 14430then : 14431 eval $cacheid=yes 14432else $as_nop 14433 eval $cacheid=no 14434fi 14435rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14436 conftest$ac_exeext conftest.$ac_ext 14437fi 14438 14439 14440 CFLAGS="$xorg_testset_save_CFLAGS" 14441 14442 eval supported=\$$cacheid 14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14444printf "%s\n" "$supported" >&6; } 14445 if test "$supported" = "yes" ; then 14446 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14447 found="yes" 14448 fi 14449 fi 14450 14451 14452 14453 14454 14455# This chunk adds additional warnings that could catch undesired effects. 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469xorg_testset_save_CFLAGS="$CFLAGS" 14470 14471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14474printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14475if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14476then : 14477 printf %s "(cached) " >&6 14478else $as_nop 14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14480/* end confdefs.h. */ 14481int i; 14482_ACEOF 14483if ac_fn_c_try_compile "$LINENO" 14484then : 14485 xorg_cv_cc_flag_unknown_warning_option=yes 14486else $as_nop 14487 xorg_cv_cc_flag_unknown_warning_option=no 14488fi 14489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14490fi 14491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14492printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14494 CFLAGS="$xorg_testset_save_CFLAGS" 14495fi 14496 14497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14500 fi 14501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14503printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14504if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14505then : 14506 printf %s "(cached) " >&6 14507else $as_nop 14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14509/* end confdefs.h. */ 14510int i; 14511_ACEOF 14512if ac_fn_c_try_compile "$LINENO" 14513then : 14514 xorg_cv_cc_flag_unused_command_line_argument=yes 14515else $as_nop 14516 xorg_cv_cc_flag_unused_command_line_argument=no 14517fi 14518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14519fi 14520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14523 CFLAGS="$xorg_testset_save_CFLAGS" 14524fi 14525 14526found="no" 14527 14528 if test $found = "no" ; then 14529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14531 fi 14532 14533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14535 fi 14536 14537 CFLAGS="$CFLAGS -Wunused" 14538 14539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14540printf %s "checking if $CC supports -Wunused... " >&6; } 14541 cacheid=xorg_cv_cc_flag__Wunused 14542 if eval test \${$cacheid+y} 14543then : 14544 printf %s "(cached) " >&6 14545else $as_nop 14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14547/* end confdefs.h. */ 14548int i; 14549int 14550main (void) 14551{ 14552 14553 ; 14554 return 0; 14555} 14556_ACEOF 14557if ac_fn_c_try_link "$LINENO" 14558then : 14559 eval $cacheid=yes 14560else $as_nop 14561 eval $cacheid=no 14562fi 14563rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14564 conftest$ac_exeext conftest.$ac_ext 14565fi 14566 14567 14568 CFLAGS="$xorg_testset_save_CFLAGS" 14569 14570 eval supported=\$$cacheid 14571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14572printf "%s\n" "$supported" >&6; } 14573 if test "$supported" = "yes" ; then 14574 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14575 found="yes" 14576 fi 14577 fi 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593xorg_testset_save_CFLAGS="$CFLAGS" 14594 14595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14598printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14599if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14600then : 14601 printf %s "(cached) " >&6 14602else $as_nop 14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14604/* end confdefs.h. */ 14605int i; 14606_ACEOF 14607if ac_fn_c_try_compile "$LINENO" 14608then : 14609 xorg_cv_cc_flag_unknown_warning_option=yes 14610else $as_nop 14611 xorg_cv_cc_flag_unknown_warning_option=no 14612fi 14613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14614fi 14615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14616printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14618 CFLAGS="$xorg_testset_save_CFLAGS" 14619fi 14620 14621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14624 fi 14625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14627printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14628if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14629then : 14630 printf %s "(cached) " >&6 14631else $as_nop 14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14633/* end confdefs.h. */ 14634int i; 14635_ACEOF 14636if ac_fn_c_try_compile "$LINENO" 14637then : 14638 xorg_cv_cc_flag_unused_command_line_argument=yes 14639else $as_nop 14640 xorg_cv_cc_flag_unused_command_line_argument=no 14641fi 14642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14643fi 14644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14645printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14647 CFLAGS="$xorg_testset_save_CFLAGS" 14648fi 14649 14650found="no" 14651 14652 if test $found = "no" ; then 14653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14655 fi 14656 14657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14659 fi 14660 14661 CFLAGS="$CFLAGS -Wuninitialized" 14662 14663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14664printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14665 cacheid=xorg_cv_cc_flag__Wuninitialized 14666 if eval test \${$cacheid+y} 14667then : 14668 printf %s "(cached) " >&6 14669else $as_nop 14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14671/* end confdefs.h. */ 14672int i; 14673int 14674main (void) 14675{ 14676 14677 ; 14678 return 0; 14679} 14680_ACEOF 14681if ac_fn_c_try_link "$LINENO" 14682then : 14683 eval $cacheid=yes 14684else $as_nop 14685 eval $cacheid=no 14686fi 14687rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14688 conftest$ac_exeext conftest.$ac_ext 14689fi 14690 14691 14692 CFLAGS="$xorg_testset_save_CFLAGS" 14693 14694 eval supported=\$$cacheid 14695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14696printf "%s\n" "$supported" >&6; } 14697 if test "$supported" = "yes" ; then 14698 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14699 found="yes" 14700 fi 14701 fi 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717xorg_testset_save_CFLAGS="$CFLAGS" 14718 14719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14723if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14724then : 14725 printf %s "(cached) " >&6 14726else $as_nop 14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14728/* end confdefs.h. */ 14729int i; 14730_ACEOF 14731if ac_fn_c_try_compile "$LINENO" 14732then : 14733 xorg_cv_cc_flag_unknown_warning_option=yes 14734else $as_nop 14735 xorg_cv_cc_flag_unknown_warning_option=no 14736fi 14737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14738fi 14739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14740printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14742 CFLAGS="$xorg_testset_save_CFLAGS" 14743fi 14744 14745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14748 fi 14749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14751printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14752if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14753then : 14754 printf %s "(cached) " >&6 14755else $as_nop 14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14757/* end confdefs.h. */ 14758int i; 14759_ACEOF 14760if ac_fn_c_try_compile "$LINENO" 14761then : 14762 xorg_cv_cc_flag_unused_command_line_argument=yes 14763else $as_nop 14764 xorg_cv_cc_flag_unused_command_line_argument=no 14765fi 14766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14767fi 14768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14769printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14771 CFLAGS="$xorg_testset_save_CFLAGS" 14772fi 14773 14774found="no" 14775 14776 if test $found = "no" ; then 14777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14779 fi 14780 14781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14783 fi 14784 14785 CFLAGS="$CFLAGS -Wshadow" 14786 14787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14788printf %s "checking if $CC supports -Wshadow... " >&6; } 14789 cacheid=xorg_cv_cc_flag__Wshadow 14790 if eval test \${$cacheid+y} 14791then : 14792 printf %s "(cached) " >&6 14793else $as_nop 14794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14795/* end confdefs.h. */ 14796int i; 14797int 14798main (void) 14799{ 14800 14801 ; 14802 return 0; 14803} 14804_ACEOF 14805if ac_fn_c_try_link "$LINENO" 14806then : 14807 eval $cacheid=yes 14808else $as_nop 14809 eval $cacheid=no 14810fi 14811rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14812 conftest$ac_exeext conftest.$ac_ext 14813fi 14814 14815 14816 CFLAGS="$xorg_testset_save_CFLAGS" 14817 14818 eval supported=\$$cacheid 14819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14820printf "%s\n" "$supported" >&6; } 14821 if test "$supported" = "yes" ; then 14822 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14823 found="yes" 14824 fi 14825 fi 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841xorg_testset_save_CFLAGS="$CFLAGS" 14842 14843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14847if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14848then : 14849 printf %s "(cached) " >&6 14850else $as_nop 14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14852/* end confdefs.h. */ 14853int i; 14854_ACEOF 14855if ac_fn_c_try_compile "$LINENO" 14856then : 14857 xorg_cv_cc_flag_unknown_warning_option=yes 14858else $as_nop 14859 xorg_cv_cc_flag_unknown_warning_option=no 14860fi 14861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14862fi 14863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14866 CFLAGS="$xorg_testset_save_CFLAGS" 14867fi 14868 14869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14872 fi 14873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14876if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14877then : 14878 printf %s "(cached) " >&6 14879else $as_nop 14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14881/* end confdefs.h. */ 14882int i; 14883_ACEOF 14884if ac_fn_c_try_compile "$LINENO" 14885then : 14886 xorg_cv_cc_flag_unused_command_line_argument=yes 14887else $as_nop 14888 xorg_cv_cc_flag_unused_command_line_argument=no 14889fi 14890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14891fi 14892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14895 CFLAGS="$xorg_testset_save_CFLAGS" 14896fi 14897 14898found="no" 14899 14900 if test $found = "no" ; then 14901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14903 fi 14904 14905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14907 fi 14908 14909 CFLAGS="$CFLAGS -Wmissing-noreturn" 14910 14911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14912printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14913 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14914 if eval test \${$cacheid+y} 14915then : 14916 printf %s "(cached) " >&6 14917else $as_nop 14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14919/* end confdefs.h. */ 14920int i; 14921int 14922main (void) 14923{ 14924 14925 ; 14926 return 0; 14927} 14928_ACEOF 14929if ac_fn_c_try_link "$LINENO" 14930then : 14931 eval $cacheid=yes 14932else $as_nop 14933 eval $cacheid=no 14934fi 14935rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14936 conftest$ac_exeext conftest.$ac_ext 14937fi 14938 14939 14940 CFLAGS="$xorg_testset_save_CFLAGS" 14941 14942 eval supported=\$$cacheid 14943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14944printf "%s\n" "$supported" >&6; } 14945 if test "$supported" = "yes" ; then 14946 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14947 found="yes" 14948 fi 14949 fi 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965xorg_testset_save_CFLAGS="$CFLAGS" 14966 14967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14971if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14972then : 14973 printf %s "(cached) " >&6 14974else $as_nop 14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14976/* end confdefs.h. */ 14977int i; 14978_ACEOF 14979if ac_fn_c_try_compile "$LINENO" 14980then : 14981 xorg_cv_cc_flag_unknown_warning_option=yes 14982else $as_nop 14983 xorg_cv_cc_flag_unknown_warning_option=no 14984fi 14985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14986fi 14987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14990 CFLAGS="$xorg_testset_save_CFLAGS" 14991fi 14992 14993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14996 fi 14997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15000if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15001then : 15002 printf %s "(cached) " >&6 15003else $as_nop 15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15005/* end confdefs.h. */ 15006int i; 15007_ACEOF 15008if ac_fn_c_try_compile "$LINENO" 15009then : 15010 xorg_cv_cc_flag_unused_command_line_argument=yes 15011else $as_nop 15012 xorg_cv_cc_flag_unused_command_line_argument=no 15013fi 15014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15015fi 15016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15019 CFLAGS="$xorg_testset_save_CFLAGS" 15020fi 15021 15022found="no" 15023 15024 if test $found = "no" ; then 15025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15027 fi 15028 15029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15031 fi 15032 15033 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15034 15035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15036printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15037 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15038 if eval test \${$cacheid+y} 15039then : 15040 printf %s "(cached) " >&6 15041else $as_nop 15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15043/* end confdefs.h. */ 15044int i; 15045int 15046main (void) 15047{ 15048 15049 ; 15050 return 0; 15051} 15052_ACEOF 15053if ac_fn_c_try_link "$LINENO" 15054then : 15055 eval $cacheid=yes 15056else $as_nop 15057 eval $cacheid=no 15058fi 15059rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15060 conftest$ac_exeext conftest.$ac_ext 15061fi 15062 15063 15064 CFLAGS="$xorg_testset_save_CFLAGS" 15065 15066 eval supported=\$$cacheid 15067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15068printf "%s\n" "$supported" >&6; } 15069 if test "$supported" = "yes" ; then 15070 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15071 found="yes" 15072 fi 15073 fi 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089xorg_testset_save_CFLAGS="$CFLAGS" 15090 15091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15094printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15095if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15096then : 15097 printf %s "(cached) " >&6 15098else $as_nop 15099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15100/* end confdefs.h. */ 15101int i; 15102_ACEOF 15103if ac_fn_c_try_compile "$LINENO" 15104then : 15105 xorg_cv_cc_flag_unknown_warning_option=yes 15106else $as_nop 15107 xorg_cv_cc_flag_unknown_warning_option=no 15108fi 15109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15110fi 15111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15112printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15114 CFLAGS="$xorg_testset_save_CFLAGS" 15115fi 15116 15117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15120 fi 15121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15123printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15124if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15125then : 15126 printf %s "(cached) " >&6 15127else $as_nop 15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15129/* end confdefs.h. */ 15130int i; 15131_ACEOF 15132if ac_fn_c_try_compile "$LINENO" 15133then : 15134 xorg_cv_cc_flag_unused_command_line_argument=yes 15135else $as_nop 15136 xorg_cv_cc_flag_unused_command_line_argument=no 15137fi 15138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15139fi 15140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15143 CFLAGS="$xorg_testset_save_CFLAGS" 15144fi 15145 15146found="no" 15147 15148 if test $found = "no" ; then 15149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15151 fi 15152 15153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15155 fi 15156 15157 CFLAGS="$CFLAGS -Wredundant-decls" 15158 15159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15160printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15161 cacheid=xorg_cv_cc_flag__Wredundant_decls 15162 if eval test \${$cacheid+y} 15163then : 15164 printf %s "(cached) " >&6 15165else $as_nop 15166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15167/* end confdefs.h. */ 15168int i; 15169int 15170main (void) 15171{ 15172 15173 ; 15174 return 0; 15175} 15176_ACEOF 15177if ac_fn_c_try_link "$LINENO" 15178then : 15179 eval $cacheid=yes 15180else $as_nop 15181 eval $cacheid=no 15182fi 15183rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15184 conftest$ac_exeext conftest.$ac_ext 15185fi 15186 15187 15188 CFLAGS="$xorg_testset_save_CFLAGS" 15189 15190 eval supported=\$$cacheid 15191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15192printf "%s\n" "$supported" >&6; } 15193 if test "$supported" = "yes" ; then 15194 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15195 found="yes" 15196 fi 15197 fi 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213xorg_testset_save_CFLAGS="$CFLAGS" 15214 15215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15218printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15219if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15220then : 15221 printf %s "(cached) " >&6 15222else $as_nop 15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15224/* end confdefs.h. */ 15225int i; 15226_ACEOF 15227if ac_fn_c_try_compile "$LINENO" 15228then : 15229 xorg_cv_cc_flag_unknown_warning_option=yes 15230else $as_nop 15231 xorg_cv_cc_flag_unknown_warning_option=no 15232fi 15233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15234fi 15235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15236printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15238 CFLAGS="$xorg_testset_save_CFLAGS" 15239fi 15240 15241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15244 fi 15245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15247printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15248if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15249then : 15250 printf %s "(cached) " >&6 15251else $as_nop 15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15253/* end confdefs.h. */ 15254int i; 15255_ACEOF 15256if ac_fn_c_try_compile "$LINENO" 15257then : 15258 xorg_cv_cc_flag_unused_command_line_argument=yes 15259else $as_nop 15260 xorg_cv_cc_flag_unused_command_line_argument=no 15261fi 15262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15263fi 15264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15265printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15267 CFLAGS="$xorg_testset_save_CFLAGS" 15268fi 15269 15270found="no" 15271 15272 if test $found = "no" ; then 15273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15275 fi 15276 15277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15279 fi 15280 15281 CFLAGS="$CFLAGS -Wlogical-op" 15282 15283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15284printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15285 cacheid=xorg_cv_cc_flag__Wlogical_op 15286 if eval test \${$cacheid+y} 15287then : 15288 printf %s "(cached) " >&6 15289else $as_nop 15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15291/* end confdefs.h. */ 15292int i; 15293int 15294main (void) 15295{ 15296 15297 ; 15298 return 0; 15299} 15300_ACEOF 15301if ac_fn_c_try_link "$LINENO" 15302then : 15303 eval $cacheid=yes 15304else $as_nop 15305 eval $cacheid=no 15306fi 15307rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15308 conftest$ac_exeext conftest.$ac_ext 15309fi 15310 15311 15312 CFLAGS="$xorg_testset_save_CFLAGS" 15313 15314 eval supported=\$$cacheid 15315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15316printf "%s\n" "$supported" >&6; } 15317 if test "$supported" = "yes" ; then 15318 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15319 found="yes" 15320 fi 15321 fi 15322 15323 15324 15325# These are currently disabled because they are noisy. They will be enabled 15326# in the future once the codebase is sufficiently modernized to silence 15327# them. For now, I don't want them to drown out the other warnings. 15328# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15329# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15330# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15331 15332# Turn some warnings into errors, so we don't accidently get successful builds 15333# when there are problems that should be fixed. 15334 15335if test "x$SELECTIVE_WERROR" = "xyes" ; then 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349xorg_testset_save_CFLAGS="$CFLAGS" 15350 15351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15354printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15355if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15356then : 15357 printf %s "(cached) " >&6 15358else $as_nop 15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15360/* end confdefs.h. */ 15361int i; 15362_ACEOF 15363if ac_fn_c_try_compile "$LINENO" 15364then : 15365 xorg_cv_cc_flag_unknown_warning_option=yes 15366else $as_nop 15367 xorg_cv_cc_flag_unknown_warning_option=no 15368fi 15369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15370fi 15371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15372printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15374 CFLAGS="$xorg_testset_save_CFLAGS" 15375fi 15376 15377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15380 fi 15381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15383printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15384if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15385then : 15386 printf %s "(cached) " >&6 15387else $as_nop 15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15389/* end confdefs.h. */ 15390int i; 15391_ACEOF 15392if ac_fn_c_try_compile "$LINENO" 15393then : 15394 xorg_cv_cc_flag_unused_command_line_argument=yes 15395else $as_nop 15396 xorg_cv_cc_flag_unused_command_line_argument=no 15397fi 15398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15399fi 15400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15401printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15403 CFLAGS="$xorg_testset_save_CFLAGS" 15404fi 15405 15406found="no" 15407 15408 if test $found = "no" ; then 15409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15411 fi 15412 15413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15415 fi 15416 15417 CFLAGS="$CFLAGS -Werror=implicit" 15418 15419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15420printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15421 cacheid=xorg_cv_cc_flag__Werror_implicit 15422 if eval test \${$cacheid+y} 15423then : 15424 printf %s "(cached) " >&6 15425else $as_nop 15426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15427/* end confdefs.h. */ 15428int i; 15429int 15430main (void) 15431{ 15432 15433 ; 15434 return 0; 15435} 15436_ACEOF 15437if ac_fn_c_try_link "$LINENO" 15438then : 15439 eval $cacheid=yes 15440else $as_nop 15441 eval $cacheid=no 15442fi 15443rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15444 conftest$ac_exeext conftest.$ac_ext 15445fi 15446 15447 15448 CFLAGS="$xorg_testset_save_CFLAGS" 15449 15450 eval supported=\$$cacheid 15451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15452printf "%s\n" "$supported" >&6; } 15453 if test "$supported" = "yes" ; then 15454 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15455 found="yes" 15456 fi 15457 fi 15458 15459 if test $found = "no" ; then 15460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15462 fi 15463 15464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15466 fi 15467 15468 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15469 15470 { 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 15471printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15472 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15473 if eval test \${$cacheid+y} 15474then : 15475 printf %s "(cached) " >&6 15476else $as_nop 15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15478/* end confdefs.h. */ 15479int i; 15480int 15481main (void) 15482{ 15483 15484 ; 15485 return 0; 15486} 15487_ACEOF 15488if ac_fn_c_try_link "$LINENO" 15489then : 15490 eval $cacheid=yes 15491else $as_nop 15492 eval $cacheid=no 15493fi 15494rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15495 conftest$ac_exeext conftest.$ac_ext 15496fi 15497 15498 15499 CFLAGS="$xorg_testset_save_CFLAGS" 15500 15501 eval supported=\$$cacheid 15502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15503printf "%s\n" "$supported" >&6; } 15504 if test "$supported" = "yes" ; then 15505 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15506 found="yes" 15507 fi 15508 fi 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524xorg_testset_save_CFLAGS="$CFLAGS" 15525 15526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15529printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15530if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15531then : 15532 printf %s "(cached) " >&6 15533else $as_nop 15534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15535/* end confdefs.h. */ 15536int i; 15537_ACEOF 15538if ac_fn_c_try_compile "$LINENO" 15539then : 15540 xorg_cv_cc_flag_unknown_warning_option=yes 15541else $as_nop 15542 xorg_cv_cc_flag_unknown_warning_option=no 15543fi 15544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15545fi 15546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15547printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15549 CFLAGS="$xorg_testset_save_CFLAGS" 15550fi 15551 15552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15555 fi 15556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15558printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15559if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15560then : 15561 printf %s "(cached) " >&6 15562else $as_nop 15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15564/* end confdefs.h. */ 15565int i; 15566_ACEOF 15567if ac_fn_c_try_compile "$LINENO" 15568then : 15569 xorg_cv_cc_flag_unused_command_line_argument=yes 15570else $as_nop 15571 xorg_cv_cc_flag_unused_command_line_argument=no 15572fi 15573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15574fi 15575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15576printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15578 CFLAGS="$xorg_testset_save_CFLAGS" 15579fi 15580 15581found="no" 15582 15583 if test $found = "no" ; then 15584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15586 fi 15587 15588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15590 fi 15591 15592 CFLAGS="$CFLAGS -Werror=nonnull" 15593 15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15595printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15596 cacheid=xorg_cv_cc_flag__Werror_nonnull 15597 if eval test \${$cacheid+y} 15598then : 15599 printf %s "(cached) " >&6 15600else $as_nop 15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15602/* end confdefs.h. */ 15603int i; 15604int 15605main (void) 15606{ 15607 15608 ; 15609 return 0; 15610} 15611_ACEOF 15612if ac_fn_c_try_link "$LINENO" 15613then : 15614 eval $cacheid=yes 15615else $as_nop 15616 eval $cacheid=no 15617fi 15618rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15619 conftest$ac_exeext conftest.$ac_ext 15620fi 15621 15622 15623 CFLAGS="$xorg_testset_save_CFLAGS" 15624 15625 eval supported=\$$cacheid 15626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15627printf "%s\n" "$supported" >&6; } 15628 if test "$supported" = "yes" ; then 15629 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15630 found="yes" 15631 fi 15632 fi 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648xorg_testset_save_CFLAGS="$CFLAGS" 15649 15650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15653printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15654if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15655then : 15656 printf %s "(cached) " >&6 15657else $as_nop 15658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15659/* end confdefs.h. */ 15660int i; 15661_ACEOF 15662if ac_fn_c_try_compile "$LINENO" 15663then : 15664 xorg_cv_cc_flag_unknown_warning_option=yes 15665else $as_nop 15666 xorg_cv_cc_flag_unknown_warning_option=no 15667fi 15668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15669fi 15670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15671printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15673 CFLAGS="$xorg_testset_save_CFLAGS" 15674fi 15675 15676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15679 fi 15680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15682printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15683if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15684then : 15685 printf %s "(cached) " >&6 15686else $as_nop 15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15688/* end confdefs.h. */ 15689int i; 15690_ACEOF 15691if ac_fn_c_try_compile "$LINENO" 15692then : 15693 xorg_cv_cc_flag_unused_command_line_argument=yes 15694else $as_nop 15695 xorg_cv_cc_flag_unused_command_line_argument=no 15696fi 15697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15698fi 15699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15700printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15702 CFLAGS="$xorg_testset_save_CFLAGS" 15703fi 15704 15705found="no" 15706 15707 if test $found = "no" ; then 15708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15710 fi 15711 15712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15714 fi 15715 15716 CFLAGS="$CFLAGS -Werror=init-self" 15717 15718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15719printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15720 cacheid=xorg_cv_cc_flag__Werror_init_self 15721 if eval test \${$cacheid+y} 15722then : 15723 printf %s "(cached) " >&6 15724else $as_nop 15725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15726/* end confdefs.h. */ 15727int i; 15728int 15729main (void) 15730{ 15731 15732 ; 15733 return 0; 15734} 15735_ACEOF 15736if ac_fn_c_try_link "$LINENO" 15737then : 15738 eval $cacheid=yes 15739else $as_nop 15740 eval $cacheid=no 15741fi 15742rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15743 conftest$ac_exeext conftest.$ac_ext 15744fi 15745 15746 15747 CFLAGS="$xorg_testset_save_CFLAGS" 15748 15749 eval supported=\$$cacheid 15750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15751printf "%s\n" "$supported" >&6; } 15752 if test "$supported" = "yes" ; then 15753 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15754 found="yes" 15755 fi 15756 fi 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772xorg_testset_save_CFLAGS="$CFLAGS" 15773 15774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15778if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15779then : 15780 printf %s "(cached) " >&6 15781else $as_nop 15782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15783/* end confdefs.h. */ 15784int i; 15785_ACEOF 15786if ac_fn_c_try_compile "$LINENO" 15787then : 15788 xorg_cv_cc_flag_unknown_warning_option=yes 15789else $as_nop 15790 xorg_cv_cc_flag_unknown_warning_option=no 15791fi 15792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15793fi 15794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15797 CFLAGS="$xorg_testset_save_CFLAGS" 15798fi 15799 15800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15803 fi 15804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15807if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15808then : 15809 printf %s "(cached) " >&6 15810else $as_nop 15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15812/* end confdefs.h. */ 15813int i; 15814_ACEOF 15815if ac_fn_c_try_compile "$LINENO" 15816then : 15817 xorg_cv_cc_flag_unused_command_line_argument=yes 15818else $as_nop 15819 xorg_cv_cc_flag_unused_command_line_argument=no 15820fi 15821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15822fi 15823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15826 CFLAGS="$xorg_testset_save_CFLAGS" 15827fi 15828 15829found="no" 15830 15831 if test $found = "no" ; then 15832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15834 fi 15835 15836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15838 fi 15839 15840 CFLAGS="$CFLAGS -Werror=main" 15841 15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15843printf %s "checking if $CC supports -Werror=main... " >&6; } 15844 cacheid=xorg_cv_cc_flag__Werror_main 15845 if eval test \${$cacheid+y} 15846then : 15847 printf %s "(cached) " >&6 15848else $as_nop 15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15850/* end confdefs.h. */ 15851int i; 15852int 15853main (void) 15854{ 15855 15856 ; 15857 return 0; 15858} 15859_ACEOF 15860if ac_fn_c_try_link "$LINENO" 15861then : 15862 eval $cacheid=yes 15863else $as_nop 15864 eval $cacheid=no 15865fi 15866rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15867 conftest$ac_exeext conftest.$ac_ext 15868fi 15869 15870 15871 CFLAGS="$xorg_testset_save_CFLAGS" 15872 15873 eval supported=\$$cacheid 15874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15875printf "%s\n" "$supported" >&6; } 15876 if test "$supported" = "yes" ; then 15877 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15878 found="yes" 15879 fi 15880 fi 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896xorg_testset_save_CFLAGS="$CFLAGS" 15897 15898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15902if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15903then : 15904 printf %s "(cached) " >&6 15905else $as_nop 15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15907/* end confdefs.h. */ 15908int i; 15909_ACEOF 15910if ac_fn_c_try_compile "$LINENO" 15911then : 15912 xorg_cv_cc_flag_unknown_warning_option=yes 15913else $as_nop 15914 xorg_cv_cc_flag_unknown_warning_option=no 15915fi 15916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15917fi 15918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15919printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15921 CFLAGS="$xorg_testset_save_CFLAGS" 15922fi 15923 15924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15927 fi 15928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15930printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15931if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15932then : 15933 printf %s "(cached) " >&6 15934else $as_nop 15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15936/* end confdefs.h. */ 15937int i; 15938_ACEOF 15939if ac_fn_c_try_compile "$LINENO" 15940then : 15941 xorg_cv_cc_flag_unused_command_line_argument=yes 15942else $as_nop 15943 xorg_cv_cc_flag_unused_command_line_argument=no 15944fi 15945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15946fi 15947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15948printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15950 CFLAGS="$xorg_testset_save_CFLAGS" 15951fi 15952 15953found="no" 15954 15955 if test $found = "no" ; then 15956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15958 fi 15959 15960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15962 fi 15963 15964 CFLAGS="$CFLAGS -Werror=missing-braces" 15965 15966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15967printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15968 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15969 if eval test \${$cacheid+y} 15970then : 15971 printf %s "(cached) " >&6 15972else $as_nop 15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15974/* end confdefs.h. */ 15975int i; 15976int 15977main (void) 15978{ 15979 15980 ; 15981 return 0; 15982} 15983_ACEOF 15984if ac_fn_c_try_link "$LINENO" 15985then : 15986 eval $cacheid=yes 15987else $as_nop 15988 eval $cacheid=no 15989fi 15990rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15991 conftest$ac_exeext conftest.$ac_ext 15992fi 15993 15994 15995 CFLAGS="$xorg_testset_save_CFLAGS" 15996 15997 eval supported=\$$cacheid 15998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15999printf "%s\n" "$supported" >&6; } 16000 if test "$supported" = "yes" ; then 16001 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16002 found="yes" 16003 fi 16004 fi 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020xorg_testset_save_CFLAGS="$CFLAGS" 16021 16022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16025printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16026if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16027then : 16028 printf %s "(cached) " >&6 16029else $as_nop 16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16031/* end confdefs.h. */ 16032int i; 16033_ACEOF 16034if ac_fn_c_try_compile "$LINENO" 16035then : 16036 xorg_cv_cc_flag_unknown_warning_option=yes 16037else $as_nop 16038 xorg_cv_cc_flag_unknown_warning_option=no 16039fi 16040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16041fi 16042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16043printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16045 CFLAGS="$xorg_testset_save_CFLAGS" 16046fi 16047 16048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16051 fi 16052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16054printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16055if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16056then : 16057 printf %s "(cached) " >&6 16058else $as_nop 16059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16060/* end confdefs.h. */ 16061int i; 16062_ACEOF 16063if ac_fn_c_try_compile "$LINENO" 16064then : 16065 xorg_cv_cc_flag_unused_command_line_argument=yes 16066else $as_nop 16067 xorg_cv_cc_flag_unused_command_line_argument=no 16068fi 16069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16070fi 16071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16074 CFLAGS="$xorg_testset_save_CFLAGS" 16075fi 16076 16077found="no" 16078 16079 if test $found = "no" ; then 16080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16082 fi 16083 16084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16086 fi 16087 16088 CFLAGS="$CFLAGS -Werror=sequence-point" 16089 16090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16091printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16092 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16093 if eval test \${$cacheid+y} 16094then : 16095 printf %s "(cached) " >&6 16096else $as_nop 16097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16098/* end confdefs.h. */ 16099int i; 16100int 16101main (void) 16102{ 16103 16104 ; 16105 return 0; 16106} 16107_ACEOF 16108if ac_fn_c_try_link "$LINENO" 16109then : 16110 eval $cacheid=yes 16111else $as_nop 16112 eval $cacheid=no 16113fi 16114rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16115 conftest$ac_exeext conftest.$ac_ext 16116fi 16117 16118 16119 CFLAGS="$xorg_testset_save_CFLAGS" 16120 16121 eval supported=\$$cacheid 16122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16123printf "%s\n" "$supported" >&6; } 16124 if test "$supported" = "yes" ; then 16125 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16126 found="yes" 16127 fi 16128 fi 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144xorg_testset_save_CFLAGS="$CFLAGS" 16145 16146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16149printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16150if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16151then : 16152 printf %s "(cached) " >&6 16153else $as_nop 16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16155/* end confdefs.h. */ 16156int i; 16157_ACEOF 16158if ac_fn_c_try_compile "$LINENO" 16159then : 16160 xorg_cv_cc_flag_unknown_warning_option=yes 16161else $as_nop 16162 xorg_cv_cc_flag_unknown_warning_option=no 16163fi 16164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16165fi 16166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16167printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16169 CFLAGS="$xorg_testset_save_CFLAGS" 16170fi 16171 16172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16175 fi 16176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16178printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16179if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16180then : 16181 printf %s "(cached) " >&6 16182else $as_nop 16183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16184/* end confdefs.h. */ 16185int i; 16186_ACEOF 16187if ac_fn_c_try_compile "$LINENO" 16188then : 16189 xorg_cv_cc_flag_unused_command_line_argument=yes 16190else $as_nop 16191 xorg_cv_cc_flag_unused_command_line_argument=no 16192fi 16193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16194fi 16195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16198 CFLAGS="$xorg_testset_save_CFLAGS" 16199fi 16200 16201found="no" 16202 16203 if test $found = "no" ; then 16204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16206 fi 16207 16208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16210 fi 16211 16212 CFLAGS="$CFLAGS -Werror=return-type" 16213 16214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16215printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16216 cacheid=xorg_cv_cc_flag__Werror_return_type 16217 if eval test \${$cacheid+y} 16218then : 16219 printf %s "(cached) " >&6 16220else $as_nop 16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16222/* end confdefs.h. */ 16223int i; 16224int 16225main (void) 16226{ 16227 16228 ; 16229 return 0; 16230} 16231_ACEOF 16232if ac_fn_c_try_link "$LINENO" 16233then : 16234 eval $cacheid=yes 16235else $as_nop 16236 eval $cacheid=no 16237fi 16238rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16239 conftest$ac_exeext conftest.$ac_ext 16240fi 16241 16242 16243 CFLAGS="$xorg_testset_save_CFLAGS" 16244 16245 eval supported=\$$cacheid 16246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16247printf "%s\n" "$supported" >&6; } 16248 if test "$supported" = "yes" ; then 16249 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16250 found="yes" 16251 fi 16252 fi 16253 16254 if test $found = "no" ; then 16255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16257 fi 16258 16259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16261 fi 16262 16263 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16264 16265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16266printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16267 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16268 if eval test \${$cacheid+y} 16269then : 16270 printf %s "(cached) " >&6 16271else $as_nop 16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16273/* end confdefs.h. */ 16274int i; 16275int 16276main (void) 16277{ 16278 16279 ; 16280 return 0; 16281} 16282_ACEOF 16283if ac_fn_c_try_link "$LINENO" 16284then : 16285 eval $cacheid=yes 16286else $as_nop 16287 eval $cacheid=no 16288fi 16289rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16290 conftest$ac_exeext conftest.$ac_ext 16291fi 16292 16293 16294 CFLAGS="$xorg_testset_save_CFLAGS" 16295 16296 eval supported=\$$cacheid 16297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16298printf "%s\n" "$supported" >&6; } 16299 if test "$supported" = "yes" ; then 16300 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16301 found="yes" 16302 fi 16303 fi 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319xorg_testset_save_CFLAGS="$CFLAGS" 16320 16321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16324printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16325if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16326then : 16327 printf %s "(cached) " >&6 16328else $as_nop 16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16330/* end confdefs.h. */ 16331int i; 16332_ACEOF 16333if ac_fn_c_try_compile "$LINENO" 16334then : 16335 xorg_cv_cc_flag_unknown_warning_option=yes 16336else $as_nop 16337 xorg_cv_cc_flag_unknown_warning_option=no 16338fi 16339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16340fi 16341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16342printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16344 CFLAGS="$xorg_testset_save_CFLAGS" 16345fi 16346 16347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16350 fi 16351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16353printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16354if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16355then : 16356 printf %s "(cached) " >&6 16357else $as_nop 16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16359/* end confdefs.h. */ 16360int i; 16361_ACEOF 16362if ac_fn_c_try_compile "$LINENO" 16363then : 16364 xorg_cv_cc_flag_unused_command_line_argument=yes 16365else $as_nop 16366 xorg_cv_cc_flag_unused_command_line_argument=no 16367fi 16368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16369fi 16370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16371printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16373 CFLAGS="$xorg_testset_save_CFLAGS" 16374fi 16375 16376found="no" 16377 16378 if test $found = "no" ; then 16379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16381 fi 16382 16383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16385 fi 16386 16387 CFLAGS="$CFLAGS -Werror=trigraphs" 16388 16389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16390printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16391 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16392 if eval test \${$cacheid+y} 16393then : 16394 printf %s "(cached) " >&6 16395else $as_nop 16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16397/* end confdefs.h. */ 16398int i; 16399int 16400main (void) 16401{ 16402 16403 ; 16404 return 0; 16405} 16406_ACEOF 16407if ac_fn_c_try_link "$LINENO" 16408then : 16409 eval $cacheid=yes 16410else $as_nop 16411 eval $cacheid=no 16412fi 16413rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16414 conftest$ac_exeext conftest.$ac_ext 16415fi 16416 16417 16418 CFLAGS="$xorg_testset_save_CFLAGS" 16419 16420 eval supported=\$$cacheid 16421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16422printf "%s\n" "$supported" >&6; } 16423 if test "$supported" = "yes" ; then 16424 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16425 found="yes" 16426 fi 16427 fi 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443xorg_testset_save_CFLAGS="$CFLAGS" 16444 16445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16448printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16449if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16450then : 16451 printf %s "(cached) " >&6 16452else $as_nop 16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16454/* end confdefs.h. */ 16455int i; 16456_ACEOF 16457if ac_fn_c_try_compile "$LINENO" 16458then : 16459 xorg_cv_cc_flag_unknown_warning_option=yes 16460else $as_nop 16461 xorg_cv_cc_flag_unknown_warning_option=no 16462fi 16463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16464fi 16465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16466printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16468 CFLAGS="$xorg_testset_save_CFLAGS" 16469fi 16470 16471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16474 fi 16475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16477printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16478if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16479then : 16480 printf %s "(cached) " >&6 16481else $as_nop 16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16483/* end confdefs.h. */ 16484int i; 16485_ACEOF 16486if ac_fn_c_try_compile "$LINENO" 16487then : 16488 xorg_cv_cc_flag_unused_command_line_argument=yes 16489else $as_nop 16490 xorg_cv_cc_flag_unused_command_line_argument=no 16491fi 16492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16493fi 16494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16495printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16497 CFLAGS="$xorg_testset_save_CFLAGS" 16498fi 16499 16500found="no" 16501 16502 if test $found = "no" ; then 16503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16505 fi 16506 16507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16509 fi 16510 16511 CFLAGS="$CFLAGS -Werror=array-bounds" 16512 16513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16514printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16515 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16516 if eval test \${$cacheid+y} 16517then : 16518 printf %s "(cached) " >&6 16519else $as_nop 16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16521/* end confdefs.h. */ 16522int i; 16523int 16524main (void) 16525{ 16526 16527 ; 16528 return 0; 16529} 16530_ACEOF 16531if ac_fn_c_try_link "$LINENO" 16532then : 16533 eval $cacheid=yes 16534else $as_nop 16535 eval $cacheid=no 16536fi 16537rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16538 conftest$ac_exeext conftest.$ac_ext 16539fi 16540 16541 16542 CFLAGS="$xorg_testset_save_CFLAGS" 16543 16544 eval supported=\$$cacheid 16545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16546printf "%s\n" "$supported" >&6; } 16547 if test "$supported" = "yes" ; then 16548 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16549 found="yes" 16550 fi 16551 fi 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567xorg_testset_save_CFLAGS="$CFLAGS" 16568 16569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16572printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16573if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16574then : 16575 printf %s "(cached) " >&6 16576else $as_nop 16577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16578/* end confdefs.h. */ 16579int i; 16580_ACEOF 16581if ac_fn_c_try_compile "$LINENO" 16582then : 16583 xorg_cv_cc_flag_unknown_warning_option=yes 16584else $as_nop 16585 xorg_cv_cc_flag_unknown_warning_option=no 16586fi 16587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16588fi 16589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16590printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16592 CFLAGS="$xorg_testset_save_CFLAGS" 16593fi 16594 16595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16598 fi 16599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16601printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16602if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16603then : 16604 printf %s "(cached) " >&6 16605else $as_nop 16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16607/* end confdefs.h. */ 16608int i; 16609_ACEOF 16610if ac_fn_c_try_compile "$LINENO" 16611then : 16612 xorg_cv_cc_flag_unused_command_line_argument=yes 16613else $as_nop 16614 xorg_cv_cc_flag_unused_command_line_argument=no 16615fi 16616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16617fi 16618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16619printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16621 CFLAGS="$xorg_testset_save_CFLAGS" 16622fi 16623 16624found="no" 16625 16626 if test $found = "no" ; then 16627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16629 fi 16630 16631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16633 fi 16634 16635 CFLAGS="$CFLAGS -Werror=write-strings" 16636 16637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16638printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16639 cacheid=xorg_cv_cc_flag__Werror_write_strings 16640 if eval test \${$cacheid+y} 16641then : 16642 printf %s "(cached) " >&6 16643else $as_nop 16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16645/* end confdefs.h. */ 16646int i; 16647int 16648main (void) 16649{ 16650 16651 ; 16652 return 0; 16653} 16654_ACEOF 16655if ac_fn_c_try_link "$LINENO" 16656then : 16657 eval $cacheid=yes 16658else $as_nop 16659 eval $cacheid=no 16660fi 16661rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16662 conftest$ac_exeext conftest.$ac_ext 16663fi 16664 16665 16666 CFLAGS="$xorg_testset_save_CFLAGS" 16667 16668 eval supported=\$$cacheid 16669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16670printf "%s\n" "$supported" >&6; } 16671 if test "$supported" = "yes" ; then 16672 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16673 found="yes" 16674 fi 16675 fi 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691xorg_testset_save_CFLAGS="$CFLAGS" 16692 16693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16697if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16698then : 16699 printf %s "(cached) " >&6 16700else $as_nop 16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16702/* end confdefs.h. */ 16703int i; 16704_ACEOF 16705if ac_fn_c_try_compile "$LINENO" 16706then : 16707 xorg_cv_cc_flag_unknown_warning_option=yes 16708else $as_nop 16709 xorg_cv_cc_flag_unknown_warning_option=no 16710fi 16711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16712fi 16713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16714printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16716 CFLAGS="$xorg_testset_save_CFLAGS" 16717fi 16718 16719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16722 fi 16723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16725printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16726if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16727then : 16728 printf %s "(cached) " >&6 16729else $as_nop 16730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16731/* end confdefs.h. */ 16732int i; 16733_ACEOF 16734if ac_fn_c_try_compile "$LINENO" 16735then : 16736 xorg_cv_cc_flag_unused_command_line_argument=yes 16737else $as_nop 16738 xorg_cv_cc_flag_unused_command_line_argument=no 16739fi 16740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16741fi 16742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16743printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16745 CFLAGS="$xorg_testset_save_CFLAGS" 16746fi 16747 16748found="no" 16749 16750 if test $found = "no" ; then 16751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16753 fi 16754 16755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16757 fi 16758 16759 CFLAGS="$CFLAGS -Werror=address" 16760 16761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16762printf %s "checking if $CC supports -Werror=address... " >&6; } 16763 cacheid=xorg_cv_cc_flag__Werror_address 16764 if eval test \${$cacheid+y} 16765then : 16766 printf %s "(cached) " >&6 16767else $as_nop 16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16769/* end confdefs.h. */ 16770int i; 16771int 16772main (void) 16773{ 16774 16775 ; 16776 return 0; 16777} 16778_ACEOF 16779if ac_fn_c_try_link "$LINENO" 16780then : 16781 eval $cacheid=yes 16782else $as_nop 16783 eval $cacheid=no 16784fi 16785rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16786 conftest$ac_exeext conftest.$ac_ext 16787fi 16788 16789 16790 CFLAGS="$xorg_testset_save_CFLAGS" 16791 16792 eval supported=\$$cacheid 16793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16794printf "%s\n" "$supported" >&6; } 16795 if test "$supported" = "yes" ; then 16796 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16797 found="yes" 16798 fi 16799 fi 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815xorg_testset_save_CFLAGS="$CFLAGS" 16816 16817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16820printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16821if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16822then : 16823 printf %s "(cached) " >&6 16824else $as_nop 16825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16826/* end confdefs.h. */ 16827int i; 16828_ACEOF 16829if ac_fn_c_try_compile "$LINENO" 16830then : 16831 xorg_cv_cc_flag_unknown_warning_option=yes 16832else $as_nop 16833 xorg_cv_cc_flag_unknown_warning_option=no 16834fi 16835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16836fi 16837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16838printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16840 CFLAGS="$xorg_testset_save_CFLAGS" 16841fi 16842 16843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16846 fi 16847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16849printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16850if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16851then : 16852 printf %s "(cached) " >&6 16853else $as_nop 16854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16855/* end confdefs.h. */ 16856int i; 16857_ACEOF 16858if ac_fn_c_try_compile "$LINENO" 16859then : 16860 xorg_cv_cc_flag_unused_command_line_argument=yes 16861else $as_nop 16862 xorg_cv_cc_flag_unused_command_line_argument=no 16863fi 16864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16865fi 16866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16867printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16869 CFLAGS="$xorg_testset_save_CFLAGS" 16870fi 16871 16872found="no" 16873 16874 if test $found = "no" ; then 16875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16877 fi 16878 16879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16881 fi 16882 16883 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16884 16885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16886printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16887 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16888 if eval test \${$cacheid+y} 16889then : 16890 printf %s "(cached) " >&6 16891else $as_nop 16892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16893/* end confdefs.h. */ 16894int i; 16895int 16896main (void) 16897{ 16898 16899 ; 16900 return 0; 16901} 16902_ACEOF 16903if ac_fn_c_try_link "$LINENO" 16904then : 16905 eval $cacheid=yes 16906else $as_nop 16907 eval $cacheid=no 16908fi 16909rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16910 conftest$ac_exeext conftest.$ac_ext 16911fi 16912 16913 16914 CFLAGS="$xorg_testset_save_CFLAGS" 16915 16916 eval supported=\$$cacheid 16917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16918printf "%s\n" "$supported" >&6; } 16919 if test "$supported" = "yes" ; then 16920 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16921 found="yes" 16922 fi 16923 fi 16924 16925 if test $found = "no" ; then 16926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16928 fi 16929 16930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16932 fi 16933 16934 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16935 16936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16937printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16938 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16939 if eval test \${$cacheid+y} 16940then : 16941 printf %s "(cached) " >&6 16942else $as_nop 16943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16944/* end confdefs.h. */ 16945int i; 16946int 16947main (void) 16948{ 16949 16950 ; 16951 return 0; 16952} 16953_ACEOF 16954if ac_fn_c_try_link "$LINENO" 16955then : 16956 eval $cacheid=yes 16957else $as_nop 16958 eval $cacheid=no 16959fi 16960rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16961 conftest$ac_exeext conftest.$ac_ext 16962fi 16963 16964 16965 CFLAGS="$xorg_testset_save_CFLAGS" 16966 16967 eval supported=\$$cacheid 16968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16969printf "%s\n" "$supported" >&6; } 16970 if test "$supported" = "yes" ; then 16971 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16972 found="yes" 16973 fi 16974 fi 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990xorg_testset_save_CFLAGS="$CFLAGS" 16991 16992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16996if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16997then : 16998 printf %s "(cached) " >&6 16999else $as_nop 17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17001/* end confdefs.h. */ 17002int i; 17003_ACEOF 17004if ac_fn_c_try_compile "$LINENO" 17005then : 17006 xorg_cv_cc_flag_unknown_warning_option=yes 17007else $as_nop 17008 xorg_cv_cc_flag_unknown_warning_option=no 17009fi 17010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17011fi 17012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17015 CFLAGS="$xorg_testset_save_CFLAGS" 17016fi 17017 17018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17021 fi 17022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17025if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17026then : 17027 printf %s "(cached) " >&6 17028else $as_nop 17029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17030/* end confdefs.h. */ 17031int i; 17032_ACEOF 17033if ac_fn_c_try_compile "$LINENO" 17034then : 17035 xorg_cv_cc_flag_unused_command_line_argument=yes 17036else $as_nop 17037 xorg_cv_cc_flag_unused_command_line_argument=no 17038fi 17039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17040fi 17041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17044 CFLAGS="$xorg_testset_save_CFLAGS" 17045fi 17046 17047found="no" 17048 17049 if test $found = "no" ; then 17050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17052 fi 17053 17054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17056 fi 17057 17058 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17059 17060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17061printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17062 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17063 if eval test \${$cacheid+y} 17064then : 17065 printf %s "(cached) " >&6 17066else $as_nop 17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17068/* end confdefs.h. */ 17069int i; 17070int 17071main (void) 17072{ 17073 17074 ; 17075 return 0; 17076} 17077_ACEOF 17078if ac_fn_c_try_link "$LINENO" 17079then : 17080 eval $cacheid=yes 17081else $as_nop 17082 eval $cacheid=no 17083fi 17084rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17085 conftest$ac_exeext conftest.$ac_ext 17086fi 17087 17088 17089 CFLAGS="$xorg_testset_save_CFLAGS" 17090 17091 eval supported=\$$cacheid 17092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17093printf "%s\n" "$supported" >&6; } 17094 if test "$supported" = "yes" ; then 17095 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17096 found="yes" 17097 fi 17098 fi 17099 17100 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17101else 17102{ 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 17103printf "%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;} 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117xorg_testset_save_CFLAGS="$CFLAGS" 17118 17119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17122printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17123if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17124then : 17125 printf %s "(cached) " >&6 17126else $as_nop 17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17128/* end confdefs.h. */ 17129int i; 17130_ACEOF 17131if ac_fn_c_try_compile "$LINENO" 17132then : 17133 xorg_cv_cc_flag_unknown_warning_option=yes 17134else $as_nop 17135 xorg_cv_cc_flag_unknown_warning_option=no 17136fi 17137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17138fi 17139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17140printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17142 CFLAGS="$xorg_testset_save_CFLAGS" 17143fi 17144 17145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17148 fi 17149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17151printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17152if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17153then : 17154 printf %s "(cached) " >&6 17155else $as_nop 17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17157/* end confdefs.h. */ 17158int i; 17159_ACEOF 17160if ac_fn_c_try_compile "$LINENO" 17161then : 17162 xorg_cv_cc_flag_unused_command_line_argument=yes 17163else $as_nop 17164 xorg_cv_cc_flag_unused_command_line_argument=no 17165fi 17166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17167fi 17168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17169printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17171 CFLAGS="$xorg_testset_save_CFLAGS" 17172fi 17173 17174found="no" 17175 17176 if test $found = "no" ; then 17177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17179 fi 17180 17181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17183 fi 17184 17185 CFLAGS="$CFLAGS -Wimplicit" 17186 17187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17188printf %s "checking if $CC supports -Wimplicit... " >&6; } 17189 cacheid=xorg_cv_cc_flag__Wimplicit 17190 if eval test \${$cacheid+y} 17191then : 17192 printf %s "(cached) " >&6 17193else $as_nop 17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17195/* end confdefs.h. */ 17196int i; 17197int 17198main (void) 17199{ 17200 17201 ; 17202 return 0; 17203} 17204_ACEOF 17205if ac_fn_c_try_link "$LINENO" 17206then : 17207 eval $cacheid=yes 17208else $as_nop 17209 eval $cacheid=no 17210fi 17211rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17212 conftest$ac_exeext conftest.$ac_ext 17213fi 17214 17215 17216 CFLAGS="$xorg_testset_save_CFLAGS" 17217 17218 eval supported=\$$cacheid 17219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17220printf "%s\n" "$supported" >&6; } 17221 if test "$supported" = "yes" ; then 17222 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17223 found="yes" 17224 fi 17225 fi 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241xorg_testset_save_CFLAGS="$CFLAGS" 17242 17243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17246printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17247if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17248then : 17249 printf %s "(cached) " >&6 17250else $as_nop 17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17252/* end confdefs.h. */ 17253int i; 17254_ACEOF 17255if ac_fn_c_try_compile "$LINENO" 17256then : 17257 xorg_cv_cc_flag_unknown_warning_option=yes 17258else $as_nop 17259 xorg_cv_cc_flag_unknown_warning_option=no 17260fi 17261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17262fi 17263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17266 CFLAGS="$xorg_testset_save_CFLAGS" 17267fi 17268 17269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17272 fi 17273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17276if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17277then : 17278 printf %s "(cached) " >&6 17279else $as_nop 17280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17281/* end confdefs.h. */ 17282int i; 17283_ACEOF 17284if ac_fn_c_try_compile "$LINENO" 17285then : 17286 xorg_cv_cc_flag_unused_command_line_argument=yes 17287else $as_nop 17288 xorg_cv_cc_flag_unused_command_line_argument=no 17289fi 17290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17291fi 17292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17293printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17295 CFLAGS="$xorg_testset_save_CFLAGS" 17296fi 17297 17298found="no" 17299 17300 if test $found = "no" ; then 17301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17303 fi 17304 17305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17307 fi 17308 17309 CFLAGS="$CFLAGS -Wnonnull" 17310 17311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17312printf %s "checking if $CC supports -Wnonnull... " >&6; } 17313 cacheid=xorg_cv_cc_flag__Wnonnull 17314 if eval test \${$cacheid+y} 17315then : 17316 printf %s "(cached) " >&6 17317else $as_nop 17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17319/* end confdefs.h. */ 17320int i; 17321int 17322main (void) 17323{ 17324 17325 ; 17326 return 0; 17327} 17328_ACEOF 17329if ac_fn_c_try_link "$LINENO" 17330then : 17331 eval $cacheid=yes 17332else $as_nop 17333 eval $cacheid=no 17334fi 17335rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17336 conftest$ac_exeext conftest.$ac_ext 17337fi 17338 17339 17340 CFLAGS="$xorg_testset_save_CFLAGS" 17341 17342 eval supported=\$$cacheid 17343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17344printf "%s\n" "$supported" >&6; } 17345 if test "$supported" = "yes" ; then 17346 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17347 found="yes" 17348 fi 17349 fi 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365xorg_testset_save_CFLAGS="$CFLAGS" 17366 17367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17371if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17372then : 17373 printf %s "(cached) " >&6 17374else $as_nop 17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17376/* end confdefs.h. */ 17377int i; 17378_ACEOF 17379if ac_fn_c_try_compile "$LINENO" 17380then : 17381 xorg_cv_cc_flag_unknown_warning_option=yes 17382else $as_nop 17383 xorg_cv_cc_flag_unknown_warning_option=no 17384fi 17385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17386fi 17387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17388printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17390 CFLAGS="$xorg_testset_save_CFLAGS" 17391fi 17392 17393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17396 fi 17397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17399printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17400if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17401then : 17402 printf %s "(cached) " >&6 17403else $as_nop 17404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17405/* end confdefs.h. */ 17406int i; 17407_ACEOF 17408if ac_fn_c_try_compile "$LINENO" 17409then : 17410 xorg_cv_cc_flag_unused_command_line_argument=yes 17411else $as_nop 17412 xorg_cv_cc_flag_unused_command_line_argument=no 17413fi 17414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17415fi 17416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17417printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17419 CFLAGS="$xorg_testset_save_CFLAGS" 17420fi 17421 17422found="no" 17423 17424 if test $found = "no" ; then 17425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17427 fi 17428 17429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17431 fi 17432 17433 CFLAGS="$CFLAGS -Winit-self" 17434 17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17436printf %s "checking if $CC supports -Winit-self... " >&6; } 17437 cacheid=xorg_cv_cc_flag__Winit_self 17438 if eval test \${$cacheid+y} 17439then : 17440 printf %s "(cached) " >&6 17441else $as_nop 17442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17443/* end confdefs.h. */ 17444int i; 17445int 17446main (void) 17447{ 17448 17449 ; 17450 return 0; 17451} 17452_ACEOF 17453if ac_fn_c_try_link "$LINENO" 17454then : 17455 eval $cacheid=yes 17456else $as_nop 17457 eval $cacheid=no 17458fi 17459rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17460 conftest$ac_exeext conftest.$ac_ext 17461fi 17462 17463 17464 CFLAGS="$xorg_testset_save_CFLAGS" 17465 17466 eval supported=\$$cacheid 17467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17468printf "%s\n" "$supported" >&6; } 17469 if test "$supported" = "yes" ; then 17470 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17471 found="yes" 17472 fi 17473 fi 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489xorg_testset_save_CFLAGS="$CFLAGS" 17490 17491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17494printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17495if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17496then : 17497 printf %s "(cached) " >&6 17498else $as_nop 17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17500/* end confdefs.h. */ 17501int i; 17502_ACEOF 17503if ac_fn_c_try_compile "$LINENO" 17504then : 17505 xorg_cv_cc_flag_unknown_warning_option=yes 17506else $as_nop 17507 xorg_cv_cc_flag_unknown_warning_option=no 17508fi 17509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17510fi 17511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17512printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17514 CFLAGS="$xorg_testset_save_CFLAGS" 17515fi 17516 17517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17520 fi 17521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17523printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17524if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17525then : 17526 printf %s "(cached) " >&6 17527else $as_nop 17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17529/* end confdefs.h. */ 17530int i; 17531_ACEOF 17532if ac_fn_c_try_compile "$LINENO" 17533then : 17534 xorg_cv_cc_flag_unused_command_line_argument=yes 17535else $as_nop 17536 xorg_cv_cc_flag_unused_command_line_argument=no 17537fi 17538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17539fi 17540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17541printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17543 CFLAGS="$xorg_testset_save_CFLAGS" 17544fi 17545 17546found="no" 17547 17548 if test $found = "no" ; then 17549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17551 fi 17552 17553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17555 fi 17556 17557 CFLAGS="$CFLAGS -Wmain" 17558 17559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17560printf %s "checking if $CC supports -Wmain... " >&6; } 17561 cacheid=xorg_cv_cc_flag__Wmain 17562 if eval test \${$cacheid+y} 17563then : 17564 printf %s "(cached) " >&6 17565else $as_nop 17566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17567/* end confdefs.h. */ 17568int i; 17569int 17570main (void) 17571{ 17572 17573 ; 17574 return 0; 17575} 17576_ACEOF 17577if ac_fn_c_try_link "$LINENO" 17578then : 17579 eval $cacheid=yes 17580else $as_nop 17581 eval $cacheid=no 17582fi 17583rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17584 conftest$ac_exeext conftest.$ac_ext 17585fi 17586 17587 17588 CFLAGS="$xorg_testset_save_CFLAGS" 17589 17590 eval supported=\$$cacheid 17591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17592printf "%s\n" "$supported" >&6; } 17593 if test "$supported" = "yes" ; then 17594 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17595 found="yes" 17596 fi 17597 fi 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613xorg_testset_save_CFLAGS="$CFLAGS" 17614 17615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17618printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17619if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17620then : 17621 printf %s "(cached) " >&6 17622else $as_nop 17623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17624/* end confdefs.h. */ 17625int i; 17626_ACEOF 17627if ac_fn_c_try_compile "$LINENO" 17628then : 17629 xorg_cv_cc_flag_unknown_warning_option=yes 17630else $as_nop 17631 xorg_cv_cc_flag_unknown_warning_option=no 17632fi 17633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17634fi 17635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17638 CFLAGS="$xorg_testset_save_CFLAGS" 17639fi 17640 17641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17644 fi 17645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17648if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17649then : 17650 printf %s "(cached) " >&6 17651else $as_nop 17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17653/* end confdefs.h. */ 17654int i; 17655_ACEOF 17656if ac_fn_c_try_compile "$LINENO" 17657then : 17658 xorg_cv_cc_flag_unused_command_line_argument=yes 17659else $as_nop 17660 xorg_cv_cc_flag_unused_command_line_argument=no 17661fi 17662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17663fi 17664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17665printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17667 CFLAGS="$xorg_testset_save_CFLAGS" 17668fi 17669 17670found="no" 17671 17672 if test $found = "no" ; then 17673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17675 fi 17676 17677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17679 fi 17680 17681 CFLAGS="$CFLAGS -Wmissing-braces" 17682 17683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17684printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17685 cacheid=xorg_cv_cc_flag__Wmissing_braces 17686 if eval test \${$cacheid+y} 17687then : 17688 printf %s "(cached) " >&6 17689else $as_nop 17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17691/* end confdefs.h. */ 17692int i; 17693int 17694main (void) 17695{ 17696 17697 ; 17698 return 0; 17699} 17700_ACEOF 17701if ac_fn_c_try_link "$LINENO" 17702then : 17703 eval $cacheid=yes 17704else $as_nop 17705 eval $cacheid=no 17706fi 17707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17708 conftest$ac_exeext conftest.$ac_ext 17709fi 17710 17711 17712 CFLAGS="$xorg_testset_save_CFLAGS" 17713 17714 eval supported=\$$cacheid 17715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17716printf "%s\n" "$supported" >&6; } 17717 if test "$supported" = "yes" ; then 17718 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17719 found="yes" 17720 fi 17721 fi 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737xorg_testset_save_CFLAGS="$CFLAGS" 17738 17739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17742printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17743if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17744then : 17745 printf %s "(cached) " >&6 17746else $as_nop 17747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17748/* end confdefs.h. */ 17749int i; 17750_ACEOF 17751if ac_fn_c_try_compile "$LINENO" 17752then : 17753 xorg_cv_cc_flag_unknown_warning_option=yes 17754else $as_nop 17755 xorg_cv_cc_flag_unknown_warning_option=no 17756fi 17757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17758fi 17759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17760printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17762 CFLAGS="$xorg_testset_save_CFLAGS" 17763fi 17764 17765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17768 fi 17769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17771printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17772if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17773then : 17774 printf %s "(cached) " >&6 17775else $as_nop 17776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17777/* end confdefs.h. */ 17778int i; 17779_ACEOF 17780if ac_fn_c_try_compile "$LINENO" 17781then : 17782 xorg_cv_cc_flag_unused_command_line_argument=yes 17783else $as_nop 17784 xorg_cv_cc_flag_unused_command_line_argument=no 17785fi 17786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17787fi 17788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17789printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17791 CFLAGS="$xorg_testset_save_CFLAGS" 17792fi 17793 17794found="no" 17795 17796 if test $found = "no" ; then 17797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17799 fi 17800 17801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17803 fi 17804 17805 CFLAGS="$CFLAGS -Wsequence-point" 17806 17807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17808printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17809 cacheid=xorg_cv_cc_flag__Wsequence_point 17810 if eval test \${$cacheid+y} 17811then : 17812 printf %s "(cached) " >&6 17813else $as_nop 17814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17815/* end confdefs.h. */ 17816int i; 17817int 17818main (void) 17819{ 17820 17821 ; 17822 return 0; 17823} 17824_ACEOF 17825if ac_fn_c_try_link "$LINENO" 17826then : 17827 eval $cacheid=yes 17828else $as_nop 17829 eval $cacheid=no 17830fi 17831rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17832 conftest$ac_exeext conftest.$ac_ext 17833fi 17834 17835 17836 CFLAGS="$xorg_testset_save_CFLAGS" 17837 17838 eval supported=\$$cacheid 17839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17840printf "%s\n" "$supported" >&6; } 17841 if test "$supported" = "yes" ; then 17842 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17843 found="yes" 17844 fi 17845 fi 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861xorg_testset_save_CFLAGS="$CFLAGS" 17862 17863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17867if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17868then : 17869 printf %s "(cached) " >&6 17870else $as_nop 17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17872/* end confdefs.h. */ 17873int i; 17874_ACEOF 17875if ac_fn_c_try_compile "$LINENO" 17876then : 17877 xorg_cv_cc_flag_unknown_warning_option=yes 17878else $as_nop 17879 xorg_cv_cc_flag_unknown_warning_option=no 17880fi 17881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17882fi 17883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17884printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17886 CFLAGS="$xorg_testset_save_CFLAGS" 17887fi 17888 17889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17892 fi 17893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17895printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17896if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17897then : 17898 printf %s "(cached) " >&6 17899else $as_nop 17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17901/* end confdefs.h. */ 17902int i; 17903_ACEOF 17904if ac_fn_c_try_compile "$LINENO" 17905then : 17906 xorg_cv_cc_flag_unused_command_line_argument=yes 17907else $as_nop 17908 xorg_cv_cc_flag_unused_command_line_argument=no 17909fi 17910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17911fi 17912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17913printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17915 CFLAGS="$xorg_testset_save_CFLAGS" 17916fi 17917 17918found="no" 17919 17920 if test $found = "no" ; then 17921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17923 fi 17924 17925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17927 fi 17928 17929 CFLAGS="$CFLAGS -Wreturn-type" 17930 17931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17932printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17933 cacheid=xorg_cv_cc_flag__Wreturn_type 17934 if eval test \${$cacheid+y} 17935then : 17936 printf %s "(cached) " >&6 17937else $as_nop 17938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17939/* end confdefs.h. */ 17940int i; 17941int 17942main (void) 17943{ 17944 17945 ; 17946 return 0; 17947} 17948_ACEOF 17949if ac_fn_c_try_link "$LINENO" 17950then : 17951 eval $cacheid=yes 17952else $as_nop 17953 eval $cacheid=no 17954fi 17955rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17956 conftest$ac_exeext conftest.$ac_ext 17957fi 17958 17959 17960 CFLAGS="$xorg_testset_save_CFLAGS" 17961 17962 eval supported=\$$cacheid 17963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17964printf "%s\n" "$supported" >&6; } 17965 if test "$supported" = "yes" ; then 17966 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17967 found="yes" 17968 fi 17969 fi 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985xorg_testset_save_CFLAGS="$CFLAGS" 17986 17987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17991if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17992then : 17993 printf %s "(cached) " >&6 17994else $as_nop 17995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17996/* end confdefs.h. */ 17997int i; 17998_ACEOF 17999if ac_fn_c_try_compile "$LINENO" 18000then : 18001 xorg_cv_cc_flag_unknown_warning_option=yes 18002else $as_nop 18003 xorg_cv_cc_flag_unknown_warning_option=no 18004fi 18005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18006fi 18007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18008printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18010 CFLAGS="$xorg_testset_save_CFLAGS" 18011fi 18012 18013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18016 fi 18017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18019printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18020if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18021then : 18022 printf %s "(cached) " >&6 18023else $as_nop 18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18025/* end confdefs.h. */ 18026int i; 18027_ACEOF 18028if ac_fn_c_try_compile "$LINENO" 18029then : 18030 xorg_cv_cc_flag_unused_command_line_argument=yes 18031else $as_nop 18032 xorg_cv_cc_flag_unused_command_line_argument=no 18033fi 18034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18035fi 18036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18037printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18039 CFLAGS="$xorg_testset_save_CFLAGS" 18040fi 18041 18042found="no" 18043 18044 if test $found = "no" ; then 18045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18047 fi 18048 18049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18051 fi 18052 18053 CFLAGS="$CFLAGS -Wtrigraphs" 18054 18055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18056printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18057 cacheid=xorg_cv_cc_flag__Wtrigraphs 18058 if eval test \${$cacheid+y} 18059then : 18060 printf %s "(cached) " >&6 18061else $as_nop 18062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18063/* end confdefs.h. */ 18064int i; 18065int 18066main (void) 18067{ 18068 18069 ; 18070 return 0; 18071} 18072_ACEOF 18073if ac_fn_c_try_link "$LINENO" 18074then : 18075 eval $cacheid=yes 18076else $as_nop 18077 eval $cacheid=no 18078fi 18079rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18080 conftest$ac_exeext conftest.$ac_ext 18081fi 18082 18083 18084 CFLAGS="$xorg_testset_save_CFLAGS" 18085 18086 eval supported=\$$cacheid 18087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18088printf "%s\n" "$supported" >&6; } 18089 if test "$supported" = "yes" ; then 18090 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18091 found="yes" 18092 fi 18093 fi 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109xorg_testset_save_CFLAGS="$CFLAGS" 18110 18111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18114printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18115if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18116then : 18117 printf %s "(cached) " >&6 18118else $as_nop 18119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18120/* end confdefs.h. */ 18121int i; 18122_ACEOF 18123if ac_fn_c_try_compile "$LINENO" 18124then : 18125 xorg_cv_cc_flag_unknown_warning_option=yes 18126else $as_nop 18127 xorg_cv_cc_flag_unknown_warning_option=no 18128fi 18129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18130fi 18131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18132printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18134 CFLAGS="$xorg_testset_save_CFLAGS" 18135fi 18136 18137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18140 fi 18141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18143printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18144if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18145then : 18146 printf %s "(cached) " >&6 18147else $as_nop 18148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18149/* end confdefs.h. */ 18150int i; 18151_ACEOF 18152if ac_fn_c_try_compile "$LINENO" 18153then : 18154 xorg_cv_cc_flag_unused_command_line_argument=yes 18155else $as_nop 18156 xorg_cv_cc_flag_unused_command_line_argument=no 18157fi 18158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18159fi 18160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18163 CFLAGS="$xorg_testset_save_CFLAGS" 18164fi 18165 18166found="no" 18167 18168 if test $found = "no" ; then 18169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18171 fi 18172 18173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18175 fi 18176 18177 CFLAGS="$CFLAGS -Warray-bounds" 18178 18179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18180printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18181 cacheid=xorg_cv_cc_flag__Warray_bounds 18182 if eval test \${$cacheid+y} 18183then : 18184 printf %s "(cached) " >&6 18185else $as_nop 18186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18187/* end confdefs.h. */ 18188int i; 18189int 18190main (void) 18191{ 18192 18193 ; 18194 return 0; 18195} 18196_ACEOF 18197if ac_fn_c_try_link "$LINENO" 18198then : 18199 eval $cacheid=yes 18200else $as_nop 18201 eval $cacheid=no 18202fi 18203rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18204 conftest$ac_exeext conftest.$ac_ext 18205fi 18206 18207 18208 CFLAGS="$xorg_testset_save_CFLAGS" 18209 18210 eval supported=\$$cacheid 18211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18212printf "%s\n" "$supported" >&6; } 18213 if test "$supported" = "yes" ; then 18214 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18215 found="yes" 18216 fi 18217 fi 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233xorg_testset_save_CFLAGS="$CFLAGS" 18234 18235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18239if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18240then : 18241 printf %s "(cached) " >&6 18242else $as_nop 18243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18244/* end confdefs.h. */ 18245int i; 18246_ACEOF 18247if ac_fn_c_try_compile "$LINENO" 18248then : 18249 xorg_cv_cc_flag_unknown_warning_option=yes 18250else $as_nop 18251 xorg_cv_cc_flag_unknown_warning_option=no 18252fi 18253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18254fi 18255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18258 CFLAGS="$xorg_testset_save_CFLAGS" 18259fi 18260 18261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18264 fi 18265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18268if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18269then : 18270 printf %s "(cached) " >&6 18271else $as_nop 18272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18273/* end confdefs.h. */ 18274int i; 18275_ACEOF 18276if ac_fn_c_try_compile "$LINENO" 18277then : 18278 xorg_cv_cc_flag_unused_command_line_argument=yes 18279else $as_nop 18280 xorg_cv_cc_flag_unused_command_line_argument=no 18281fi 18282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18283fi 18284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18287 CFLAGS="$xorg_testset_save_CFLAGS" 18288fi 18289 18290found="no" 18291 18292 if test $found = "no" ; then 18293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18295 fi 18296 18297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18299 fi 18300 18301 CFLAGS="$CFLAGS -Wwrite-strings" 18302 18303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18304printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18305 cacheid=xorg_cv_cc_flag__Wwrite_strings 18306 if eval test \${$cacheid+y} 18307then : 18308 printf %s "(cached) " >&6 18309else $as_nop 18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18311/* end confdefs.h. */ 18312int i; 18313int 18314main (void) 18315{ 18316 18317 ; 18318 return 0; 18319} 18320_ACEOF 18321if ac_fn_c_try_link "$LINENO" 18322then : 18323 eval $cacheid=yes 18324else $as_nop 18325 eval $cacheid=no 18326fi 18327rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18328 conftest$ac_exeext conftest.$ac_ext 18329fi 18330 18331 18332 CFLAGS="$xorg_testset_save_CFLAGS" 18333 18334 eval supported=\$$cacheid 18335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18336printf "%s\n" "$supported" >&6; } 18337 if test "$supported" = "yes" ; then 18338 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18339 found="yes" 18340 fi 18341 fi 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357xorg_testset_save_CFLAGS="$CFLAGS" 18358 18359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18363if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18364then : 18365 printf %s "(cached) " >&6 18366else $as_nop 18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18368/* end confdefs.h. */ 18369int i; 18370_ACEOF 18371if ac_fn_c_try_compile "$LINENO" 18372then : 18373 xorg_cv_cc_flag_unknown_warning_option=yes 18374else $as_nop 18375 xorg_cv_cc_flag_unknown_warning_option=no 18376fi 18377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18378fi 18379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18382 CFLAGS="$xorg_testset_save_CFLAGS" 18383fi 18384 18385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18388 fi 18389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18392if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18393then : 18394 printf %s "(cached) " >&6 18395else $as_nop 18396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18397/* end confdefs.h. */ 18398int i; 18399_ACEOF 18400if ac_fn_c_try_compile "$LINENO" 18401then : 18402 xorg_cv_cc_flag_unused_command_line_argument=yes 18403else $as_nop 18404 xorg_cv_cc_flag_unused_command_line_argument=no 18405fi 18406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18407fi 18408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18411 CFLAGS="$xorg_testset_save_CFLAGS" 18412fi 18413 18414found="no" 18415 18416 if test $found = "no" ; then 18417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18419 fi 18420 18421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18423 fi 18424 18425 CFLAGS="$CFLAGS -Waddress" 18426 18427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18428printf %s "checking if $CC supports -Waddress... " >&6; } 18429 cacheid=xorg_cv_cc_flag__Waddress 18430 if eval test \${$cacheid+y} 18431then : 18432 printf %s "(cached) " >&6 18433else $as_nop 18434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18435/* end confdefs.h. */ 18436int i; 18437int 18438main (void) 18439{ 18440 18441 ; 18442 return 0; 18443} 18444_ACEOF 18445if ac_fn_c_try_link "$LINENO" 18446then : 18447 eval $cacheid=yes 18448else $as_nop 18449 eval $cacheid=no 18450fi 18451rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18452 conftest$ac_exeext conftest.$ac_ext 18453fi 18454 18455 18456 CFLAGS="$xorg_testset_save_CFLAGS" 18457 18458 eval supported=\$$cacheid 18459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18460printf "%s\n" "$supported" >&6; } 18461 if test "$supported" = "yes" ; then 18462 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18463 found="yes" 18464 fi 18465 fi 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481xorg_testset_save_CFLAGS="$CFLAGS" 18482 18483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18486printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18487if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18488then : 18489 printf %s "(cached) " >&6 18490else $as_nop 18491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18492/* end confdefs.h. */ 18493int i; 18494_ACEOF 18495if ac_fn_c_try_compile "$LINENO" 18496then : 18497 xorg_cv_cc_flag_unknown_warning_option=yes 18498else $as_nop 18499 xorg_cv_cc_flag_unknown_warning_option=no 18500fi 18501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18502fi 18503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18504printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18506 CFLAGS="$xorg_testset_save_CFLAGS" 18507fi 18508 18509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18512 fi 18513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18515printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18516if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18517then : 18518 printf %s "(cached) " >&6 18519else $as_nop 18520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18521/* end confdefs.h. */ 18522int i; 18523_ACEOF 18524if ac_fn_c_try_compile "$LINENO" 18525then : 18526 xorg_cv_cc_flag_unused_command_line_argument=yes 18527else $as_nop 18528 xorg_cv_cc_flag_unused_command_line_argument=no 18529fi 18530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18531fi 18532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18533printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18535 CFLAGS="$xorg_testset_save_CFLAGS" 18536fi 18537 18538found="no" 18539 18540 if test $found = "no" ; then 18541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18543 fi 18544 18545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18547 fi 18548 18549 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18550 18551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18552printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18553 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18554 if eval test \${$cacheid+y} 18555then : 18556 printf %s "(cached) " >&6 18557else $as_nop 18558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18559/* end confdefs.h. */ 18560int i; 18561int 18562main (void) 18563{ 18564 18565 ; 18566 return 0; 18567} 18568_ACEOF 18569if ac_fn_c_try_link "$LINENO" 18570then : 18571 eval $cacheid=yes 18572else $as_nop 18573 eval $cacheid=no 18574fi 18575rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18576 conftest$ac_exeext conftest.$ac_ext 18577fi 18578 18579 18580 CFLAGS="$xorg_testset_save_CFLAGS" 18581 18582 eval supported=\$$cacheid 18583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18584printf "%s\n" "$supported" >&6; } 18585 if test "$supported" = "yes" ; then 18586 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18587 found="yes" 18588 fi 18589 fi 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605xorg_testset_save_CFLAGS="$CFLAGS" 18606 18607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18610printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18611if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18612then : 18613 printf %s "(cached) " >&6 18614else $as_nop 18615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18616/* end confdefs.h. */ 18617int i; 18618_ACEOF 18619if ac_fn_c_try_compile "$LINENO" 18620then : 18621 xorg_cv_cc_flag_unknown_warning_option=yes 18622else $as_nop 18623 xorg_cv_cc_flag_unknown_warning_option=no 18624fi 18625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18626fi 18627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18628printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18630 CFLAGS="$xorg_testset_save_CFLAGS" 18631fi 18632 18633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18636 fi 18637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18639printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18640if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18641then : 18642 printf %s "(cached) " >&6 18643else $as_nop 18644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18645/* end confdefs.h. */ 18646int i; 18647_ACEOF 18648if ac_fn_c_try_compile "$LINENO" 18649then : 18650 xorg_cv_cc_flag_unused_command_line_argument=yes 18651else $as_nop 18652 xorg_cv_cc_flag_unused_command_line_argument=no 18653fi 18654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18655fi 18656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18657printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18659 CFLAGS="$xorg_testset_save_CFLAGS" 18660fi 18661 18662found="no" 18663 18664 if test $found = "no" ; then 18665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18667 fi 18668 18669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18671 fi 18672 18673 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18674 18675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18676printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18677 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18678 if eval test \${$cacheid+y} 18679then : 18680 printf %s "(cached) " >&6 18681else $as_nop 18682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18683/* end confdefs.h. */ 18684int i; 18685int 18686main (void) 18687{ 18688 18689 ; 18690 return 0; 18691} 18692_ACEOF 18693if ac_fn_c_try_link "$LINENO" 18694then : 18695 eval $cacheid=yes 18696else $as_nop 18697 eval $cacheid=no 18698fi 18699rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18700 conftest$ac_exeext conftest.$ac_ext 18701fi 18702 18703 18704 CFLAGS="$xorg_testset_save_CFLAGS" 18705 18706 eval supported=\$$cacheid 18707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18708printf "%s\n" "$supported" >&6; } 18709 if test "$supported" = "yes" ; then 18710 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18711 found="yes" 18712 fi 18713 fi 18714 18715 18716fi 18717 18718 18719 18720 18721 18722 18723 18724 CWARNFLAGS="$BASE_CFLAGS" 18725 if test "x$GCC" = xyes ; then 18726 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18727 fi 18728 18729 18730 18731 18732 18733 18734 18735 18736# Check whether --enable-strict-compilation was given. 18737if test ${enable_strict_compilation+y} 18738then : 18739 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18740else $as_nop 18741 STRICT_COMPILE=no 18742fi 18743 18744 18745 18746 18747 18748 18749STRICT_CFLAGS="" 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763xorg_testset_save_CFLAGS="$CFLAGS" 18764 18765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18768printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18769if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18770then : 18771 printf %s "(cached) " >&6 18772else $as_nop 18773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18774/* end confdefs.h. */ 18775int i; 18776_ACEOF 18777if ac_fn_c_try_compile "$LINENO" 18778then : 18779 xorg_cv_cc_flag_unknown_warning_option=yes 18780else $as_nop 18781 xorg_cv_cc_flag_unknown_warning_option=no 18782fi 18783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18784fi 18785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18786printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18788 CFLAGS="$xorg_testset_save_CFLAGS" 18789fi 18790 18791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18794 fi 18795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18797printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18798if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18799then : 18800 printf %s "(cached) " >&6 18801else $as_nop 18802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18803/* end confdefs.h. */ 18804int i; 18805_ACEOF 18806if ac_fn_c_try_compile "$LINENO" 18807then : 18808 xorg_cv_cc_flag_unused_command_line_argument=yes 18809else $as_nop 18810 xorg_cv_cc_flag_unused_command_line_argument=no 18811fi 18812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18813fi 18814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18815printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18817 CFLAGS="$xorg_testset_save_CFLAGS" 18818fi 18819 18820found="no" 18821 18822 if test $found = "no" ; then 18823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18825 fi 18826 18827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18829 fi 18830 18831 CFLAGS="$CFLAGS -pedantic" 18832 18833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18834printf %s "checking if $CC supports -pedantic... " >&6; } 18835 cacheid=xorg_cv_cc_flag__pedantic 18836 if eval test \${$cacheid+y} 18837then : 18838 printf %s "(cached) " >&6 18839else $as_nop 18840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18841/* end confdefs.h. */ 18842int i; 18843int 18844main (void) 18845{ 18846 18847 ; 18848 return 0; 18849} 18850_ACEOF 18851if ac_fn_c_try_link "$LINENO" 18852then : 18853 eval $cacheid=yes 18854else $as_nop 18855 eval $cacheid=no 18856fi 18857rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18858 conftest$ac_exeext conftest.$ac_ext 18859fi 18860 18861 18862 CFLAGS="$xorg_testset_save_CFLAGS" 18863 18864 eval supported=\$$cacheid 18865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18866printf "%s\n" "$supported" >&6; } 18867 if test "$supported" = "yes" ; then 18868 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18869 found="yes" 18870 fi 18871 fi 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887xorg_testset_save_CFLAGS="$CFLAGS" 18888 18889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18892printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18893if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18894then : 18895 printf %s "(cached) " >&6 18896else $as_nop 18897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18898/* end confdefs.h. */ 18899int i; 18900_ACEOF 18901if ac_fn_c_try_compile "$LINENO" 18902then : 18903 xorg_cv_cc_flag_unknown_warning_option=yes 18904else $as_nop 18905 xorg_cv_cc_flag_unknown_warning_option=no 18906fi 18907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18908fi 18909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18912 CFLAGS="$xorg_testset_save_CFLAGS" 18913fi 18914 18915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18918 fi 18919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18922if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18923then : 18924 printf %s "(cached) " >&6 18925else $as_nop 18926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18927/* end confdefs.h. */ 18928int i; 18929_ACEOF 18930if ac_fn_c_try_compile "$LINENO" 18931then : 18932 xorg_cv_cc_flag_unused_command_line_argument=yes 18933else $as_nop 18934 xorg_cv_cc_flag_unused_command_line_argument=no 18935fi 18936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18937fi 18938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18939printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18941 CFLAGS="$xorg_testset_save_CFLAGS" 18942fi 18943 18944found="no" 18945 18946 if test $found = "no" ; then 18947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18949 fi 18950 18951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18953 fi 18954 18955 CFLAGS="$CFLAGS -Werror" 18956 18957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18958printf %s "checking if $CC supports -Werror... " >&6; } 18959 cacheid=xorg_cv_cc_flag__Werror 18960 if eval test \${$cacheid+y} 18961then : 18962 printf %s "(cached) " >&6 18963else $as_nop 18964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18965/* end confdefs.h. */ 18966int i; 18967int 18968main (void) 18969{ 18970 18971 ; 18972 return 0; 18973} 18974_ACEOF 18975if ac_fn_c_try_link "$LINENO" 18976then : 18977 eval $cacheid=yes 18978else $as_nop 18979 eval $cacheid=no 18980fi 18981rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18982 conftest$ac_exeext conftest.$ac_ext 18983fi 18984 18985 18986 CFLAGS="$xorg_testset_save_CFLAGS" 18987 18988 eval supported=\$$cacheid 18989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18990printf "%s\n" "$supported" >&6; } 18991 if test "$supported" = "yes" ; then 18992 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18993 found="yes" 18994 fi 18995 fi 18996 18997 if test $found = "no" ; then 18998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19000 fi 19001 19002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19004 fi 19005 19006 CFLAGS="$CFLAGS -errwarn" 19007 19008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19009printf %s "checking if $CC supports -errwarn... " >&6; } 19010 cacheid=xorg_cv_cc_flag__errwarn 19011 if eval test \${$cacheid+y} 19012then : 19013 printf %s "(cached) " >&6 19014else $as_nop 19015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19016/* end confdefs.h. */ 19017int i; 19018int 19019main (void) 19020{ 19021 19022 ; 19023 return 0; 19024} 19025_ACEOF 19026if ac_fn_c_try_link "$LINENO" 19027then : 19028 eval $cacheid=yes 19029else $as_nop 19030 eval $cacheid=no 19031fi 19032rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19033 conftest$ac_exeext conftest.$ac_ext 19034fi 19035 19036 19037 CFLAGS="$xorg_testset_save_CFLAGS" 19038 19039 eval supported=\$$cacheid 19040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19041printf "%s\n" "$supported" >&6; } 19042 if test "$supported" = "yes" ; then 19043 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19044 found="yes" 19045 fi 19046 fi 19047 19048 19049 19050# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19051# activate it with -Werror, so we add it here explicitly. 19052 19053 19054 19055 19056 19057 19058 19059 19060 19061 19062 19063 19064 19065xorg_testset_save_CFLAGS="$CFLAGS" 19066 19067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19070printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19071if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19072then : 19073 printf %s "(cached) " >&6 19074else $as_nop 19075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19076/* end confdefs.h. */ 19077int i; 19078_ACEOF 19079if ac_fn_c_try_compile "$LINENO" 19080then : 19081 xorg_cv_cc_flag_unknown_warning_option=yes 19082else $as_nop 19083 xorg_cv_cc_flag_unknown_warning_option=no 19084fi 19085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19086fi 19087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19088printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19089 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19090 CFLAGS="$xorg_testset_save_CFLAGS" 19091fi 19092 19093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19096 fi 19097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19099printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19100if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19101then : 19102 printf %s "(cached) " >&6 19103else $as_nop 19104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19105/* end confdefs.h. */ 19106int i; 19107_ACEOF 19108if ac_fn_c_try_compile "$LINENO" 19109then : 19110 xorg_cv_cc_flag_unused_command_line_argument=yes 19111else $as_nop 19112 xorg_cv_cc_flag_unused_command_line_argument=no 19113fi 19114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19115fi 19116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19117printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19119 CFLAGS="$xorg_testset_save_CFLAGS" 19120fi 19121 19122found="no" 19123 19124 if test $found = "no" ; then 19125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19127 fi 19128 19129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19131 fi 19132 19133 CFLAGS="$CFLAGS -Werror=attributes" 19134 19135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19136printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19137 cacheid=xorg_cv_cc_flag__Werror_attributes 19138 if eval test \${$cacheid+y} 19139then : 19140 printf %s "(cached) " >&6 19141else $as_nop 19142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19143/* end confdefs.h. */ 19144int i; 19145int 19146main (void) 19147{ 19148 19149 ; 19150 return 0; 19151} 19152_ACEOF 19153if ac_fn_c_try_link "$LINENO" 19154then : 19155 eval $cacheid=yes 19156else $as_nop 19157 eval $cacheid=no 19158fi 19159rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19160 conftest$ac_exeext conftest.$ac_ext 19161fi 19162 19163 19164 CFLAGS="$xorg_testset_save_CFLAGS" 19165 19166 eval supported=\$$cacheid 19167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19168printf "%s\n" "$supported" >&6; } 19169 if test "$supported" = "yes" ; then 19170 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19171 found="yes" 19172 fi 19173 fi 19174 19175 19176 19177if test "x$STRICT_COMPILE" = "xyes"; then 19178 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19179 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19180fi 19181 19182 19183 19184 19185 19186 19187cat >>confdefs.h <<_ACEOF 19188#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19189_ACEOF 19190 19191 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19192 if test "x$PVM" = "x"; then 19193 PVM="0" 19194 fi 19195 19196printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19197 19198 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19199 if test "x$PVP" = "x"; then 19200 PVP="0" 19201 fi 19202 19203printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19204 19205 19206 19207CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19208mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19209|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19210touch \$(top_srcdir)/ChangeLog; \ 19211echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19212 19213 19214 19215 19216macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19217INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19218mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19219|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19220touch \$(top_srcdir)/INSTALL; \ 19221echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19222 19223 19224 19225 19226 19227 19228case $host_os in 19229 solaris*) 19230 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19231 # check for a man page file found in later versions that use 19232 # traditional section numbers instead 19233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19234printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19235if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19236then : 19237 printf %s "(cached) " >&6 19238else $as_nop 19239 test "$cross_compiling" = yes && 19240 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19241if test -r "/usr/share/man/man7/attributes.7"; then 19242 ac_cv_file__usr_share_man_man7_attributes_7=yes 19243else 19244 ac_cv_file__usr_share_man_man7_attributes_7=no 19245fi 19246fi 19247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19248printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19249if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19250then : 19251 SYSV_MAN_SECTIONS=false 19252else $as_nop 19253 SYSV_MAN_SECTIONS=true 19254fi 19255 19256 ;; 19257 *) SYSV_MAN_SECTIONS=false ;; 19258esac 19259 19260if test x$APP_MAN_SUFFIX = x ; then 19261 APP_MAN_SUFFIX=1 19262fi 19263if test x$APP_MAN_DIR = x ; then 19264 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19265fi 19266 19267if test x$LIB_MAN_SUFFIX = x ; then 19268 LIB_MAN_SUFFIX=3 19269fi 19270if test x$LIB_MAN_DIR = x ; then 19271 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19272fi 19273 19274if test x$FILE_MAN_SUFFIX = x ; then 19275 case $SYSV_MAN_SECTIONS in 19276 true) FILE_MAN_SUFFIX=4 ;; 19277 *) FILE_MAN_SUFFIX=5 ;; 19278 esac 19279fi 19280if test x$FILE_MAN_DIR = x ; then 19281 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19282fi 19283 19284if test x$MISC_MAN_SUFFIX = x ; then 19285 case $SYSV_MAN_SECTIONS in 19286 true) MISC_MAN_SUFFIX=5 ;; 19287 *) MISC_MAN_SUFFIX=7 ;; 19288 esac 19289fi 19290if test x$MISC_MAN_DIR = x ; then 19291 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19292fi 19293 19294if test x$DRIVER_MAN_SUFFIX = x ; then 19295 case $SYSV_MAN_SECTIONS in 19296 true) DRIVER_MAN_SUFFIX=7 ;; 19297 *) DRIVER_MAN_SUFFIX=4 ;; 19298 esac 19299fi 19300if test x$DRIVER_MAN_DIR = x ; then 19301 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19302fi 19303 19304if test x$ADMIN_MAN_SUFFIX = x ; then 19305 case $SYSV_MAN_SECTIONS in 19306 true) ADMIN_MAN_SUFFIX=1m ;; 19307 *) ADMIN_MAN_SUFFIX=8 ;; 19308 esac 19309fi 19310if test x$ADMIN_MAN_DIR = x ; then 19311 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19312fi 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328XORG_MAN_PAGE="X Version 11" 19329 19330MAN_SUBSTS="\ 19331 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19332 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19333 -e 's|__xservername__|Xorg|g' \ 19334 -e 's|__xconfigfile__|xorg.conf|g' \ 19335 -e 's|__projectroot__|\$(prefix)|g' \ 19336 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19337 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19338 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19339 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19340 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19341 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19342 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19343 19344 19345 19346# Check whether --enable-silent-rules was given. 19347if test ${enable_silent_rules+y} 19348then : 19349 enableval=$enable_silent_rules; 19350fi 19351 19352case $enable_silent_rules in # ((( 19353 yes) AM_DEFAULT_VERBOSITY=0;; 19354 no) AM_DEFAULT_VERBOSITY=1;; 19355 *) AM_DEFAULT_VERBOSITY=0;; 19356esac 19357am_make=${MAKE-make} 19358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19359printf %s "checking whether $am_make supports nested variables... " >&6; } 19360if test ${am_cv_make_support_nested_variables+y} 19361then : 19362 printf %s "(cached) " >&6 19363else $as_nop 19364 if printf "%s\n" 'TRUE=$(BAR$(V)) 19365BAR0=false 19366BAR1=true 19367V=1 19368am__doit: 19369 @$(TRUE) 19370.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19371 am_cv_make_support_nested_variables=yes 19372else 19373 am_cv_make_support_nested_variables=no 19374fi 19375fi 19376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19377printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19378if test $am_cv_make_support_nested_variables = yes; then 19379 AM_V='$(V)' 19380 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19381else 19382 AM_V=$AM_DEFAULT_VERBOSITY 19383 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19384fi 19385AM_BACKSLASH='\' 19386 19387 19388 19389# Set library version for Xcursor.h from package version set in AC_INIT 19390# copied from PACKAGE_VERSION_* settings in XORG_VERSION 19391 19392cat >>confdefs.h <<_ACEOF 19393#define XCURSOR_LIB_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19394_ACEOF 19395 19396 19397cat >>confdefs.h <<_ACEOF 19398#define XCURSOR_LIB_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19399_ACEOF 19400 19401 19402cat >>confdefs.h <<_ACEOF 19403#define XCURSOR_LIB_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19404_ACEOF 19405 19406 19407 19408 19409# Check whether --with-icondir was given. 19410if test ${with_icondir+y} 19411then : 19412 withval=$with_icondir; ICONDIR="$withval" 19413else $as_nop 19414 ICONDIR=${datadir}/icons 19415fi 19416 19417 19418 19419DEF_CURSORPATH="~/.local/share/icons:~/.icons:${datadir}/icons:${datadir}/pixmaps" 19420if test "x${ICONDIR}" != "x${datadir}/icons"; then 19421 DEF_CURSORPATH="${DEF_CURSORPATH}:${ICONDIR}" 19422fi 19423 19424# Check whether --with-cursorpath was given. 19425if test ${with_cursorpath+y} 19426then : 19427 withval=$with_cursorpath; XCURSORPATH="$withval" 19428else $as_nop 19429 XCURSORPATH=$DEF_CURSORPATH 19430fi 19431 19432 19433 19434# Obtain compiler/linker options for dependencies 19435 19436pkg_failed=no 19437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender >= 0.8.2 xfixes x11 fixesproto" >&5 19438printf %s "checking for xrender >= 0.8.2 xfixes x11 fixesproto... " >&6; } 19439 19440if test -n "$XCURSOR_CFLAGS"; then 19441 pkg_cv_XCURSOR_CFLAGS="$XCURSOR_CFLAGS" 19442 elif test -n "$PKG_CONFIG"; then 19443 if test -n "$PKG_CONFIG" && \ 19444 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\""; } >&5 19445 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5 19446 ac_status=$? 19447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19448 test $ac_status = 0; }; then 19449 pkg_cv_XCURSOR_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null` 19450 test "x$?" != "x0" && pkg_failed=yes 19451else 19452 pkg_failed=yes 19453fi 19454 else 19455 pkg_failed=untried 19456fi 19457if test -n "$XCURSOR_LIBS"; then 19458 pkg_cv_XCURSOR_LIBS="$XCURSOR_LIBS" 19459 elif test -n "$PKG_CONFIG"; then 19460 if test -n "$PKG_CONFIG" && \ 19461 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\""; } >&5 19462 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5 19463 ac_status=$? 19464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19465 test $ac_status = 0; }; then 19466 pkg_cv_XCURSOR_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null` 19467 test "x$?" != "x0" && pkg_failed=yes 19468else 19469 pkg_failed=yes 19470fi 19471 else 19472 pkg_failed=untried 19473fi 19474 19475 19476 19477if test $pkg_failed = yes; then 19478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19479printf "%s\n" "no" >&6; } 19480 19481if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19482 _pkg_short_errors_supported=yes 19483else 19484 _pkg_short_errors_supported=no 19485fi 19486 if test $_pkg_short_errors_supported = yes; then 19487 XCURSOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>&1` 19488 else 19489 XCURSOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>&1` 19490 fi 19491 # Put the nasty error message in config.log where it belongs 19492 echo "$XCURSOR_PKG_ERRORS" >&5 19493 19494 as_fn_error $? "Package requirements (xrender >= 0.8.2 xfixes x11 fixesproto) were not met: 19495 19496$XCURSOR_PKG_ERRORS 19497 19498Consider adjusting the PKG_CONFIG_PATH environment variable if you 19499installed software in a non-standard prefix. 19500 19501Alternatively, you may set the environment variables XCURSOR_CFLAGS 19502and XCURSOR_LIBS to avoid the need to call pkg-config. 19503See the pkg-config man page for more details." "$LINENO" 5 19504elif test $pkg_failed = untried; then 19505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19506printf "%s\n" "no" >&6; } 19507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19508printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19509as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19510is in your PATH or set the PKG_CONFIG environment variable to the full 19511path to pkg-config. 19512 19513Alternatively, you may set the environment variables XCURSOR_CFLAGS 19514and XCURSOR_LIBS to avoid the need to call pkg-config. 19515See the pkg-config man page for more details. 19516 19517To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19518See \`config.log' for more details" "$LINENO" 5; } 19519else 19520 XCURSOR_CFLAGS=$pkg_cv_XCURSOR_CFLAGS 19521 XCURSOR_LIBS=$pkg_cv_XCURSOR_LIBS 19522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19523printf "%s\n" "yes" >&6; } 19524 19525fi 19526 19527printf "%s\n" "#define HAVE_XFIXES 1" >>confdefs.h 19528 19529 19530# Allow checking code with lint, sparse, etc. 19531 19532 19533 19534 19535 19536# Check whether --with-lint was given. 19537if test ${with_lint+y} 19538then : 19539 withval=$with_lint; use_lint=$withval 19540else $as_nop 19541 use_lint=no 19542fi 19543 19544 19545# Obtain platform specific info like program name and options 19546# The lint program on FreeBSD and NetBSD is different from the one on Solaris 19547case $host_os in 19548 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 19549 lint_name=splint 19550 lint_options="-badflag" 19551 ;; 19552 *freebsd* | *netbsd*) 19553 lint_name=lint 19554 lint_options="-u -b" 19555 ;; 19556 *solaris*) 19557 lint_name=lint 19558 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 19559 ;; 19560esac 19561 19562# Test for the presence of the program (either guessed by the code or spelled out by the user) 19563if test "x$use_lint" = x"yes" ; then 19564 # Extract the first word of "$lint_name", so it can be a program name with args. 19565set dummy $lint_name; ac_word=$2 19566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19567printf %s "checking for $ac_word... " >&6; } 19568if test ${ac_cv_path_LINT+y} 19569then : 19570 printf %s "(cached) " >&6 19571else $as_nop 19572 case $LINT in 19573 [\\/]* | ?:[\\/]*) 19574 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 19575 ;; 19576 *) 19577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19578for as_dir in $PATH 19579do 19580 IFS=$as_save_IFS 19581 case $as_dir in #((( 19582 '') as_dir=./ ;; 19583 */) ;; 19584 *) as_dir=$as_dir/ ;; 19585 esac 19586 for ac_exec_ext in '' $ac_executable_extensions; do 19587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19588 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 19589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19590 break 2 19591 fi 19592done 19593 done 19594IFS=$as_save_IFS 19595 19596 ;; 19597esac 19598fi 19599LINT=$ac_cv_path_LINT 19600if test -n "$LINT"; then 19601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 19602printf "%s\n" "$LINT" >&6; } 19603else 19604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19605printf "%s\n" "no" >&6; } 19606fi 19607 19608 19609 if test "x$LINT" = "x"; then 19610 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 19611 fi 19612elif test "x$use_lint" = x"no" ; then 19613 if test "x$LINT" != "x"; then 19614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 19615printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 19616 fi 19617else 19618 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 19619fi 19620 19621# User supplied flags override default flags 19622if test "x$LINT_FLAGS" != "x"; then 19623 lint_options=$LINT_FLAGS 19624fi 19625 19626LINT_FLAGS=$lint_options 19627 19628 if test "x$LINT" != x; then 19629 LINT_TRUE= 19630 LINT_FALSE='#' 19631else 19632 LINT_TRUE='#' 19633 LINT_FALSE= 19634fi 19635 19636 19637 19638 19639ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcursor.pc" 19640 19641cat >confcache <<\_ACEOF 19642# This file is a shell script that caches the results of configure 19643# tests run on this system so they can be shared between configure 19644# scripts and configure runs, see configure's option --config-cache. 19645# It is not useful on other systems. If it contains results you don't 19646# want to keep, you may remove or edit it. 19647# 19648# config.status only pays attention to the cache file if you give it 19649# the --recheck option to rerun configure. 19650# 19651# `ac_cv_env_foo' variables (set or unset) will be overridden when 19652# loading this file, other *unset* `ac_cv_foo' will be assigned the 19653# following values. 19654 19655_ACEOF 19656 19657# The following way of writing the cache mishandles newlines in values, 19658# but we know of no workaround that is simple, portable, and efficient. 19659# So, we kill variables containing newlines. 19660# Ultrix sh set writes to stderr and can't be redirected directly, 19661# and sets the high bit in the cache file unless we assign to the vars. 19662( 19663 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19664 eval ac_val=\$$ac_var 19665 case $ac_val in #( 19666 *${as_nl}*) 19667 case $ac_var in #( 19668 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19669printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19670 esac 19671 case $ac_var in #( 19672 _ | IFS | as_nl) ;; #( 19673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19674 *) { eval $ac_var=; unset $ac_var;} ;; 19675 esac ;; 19676 esac 19677 done 19678 19679 (set) 2>&1 | 19680 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19681 *${as_nl}ac_space=\ *) 19682 # `set' does not quote correctly, so add quotes: double-quote 19683 # substitution turns \\\\ into \\, and sed turns \\ into \. 19684 sed -n \ 19685 "s/'/'\\\\''/g; 19686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19687 ;; #( 19688 *) 19689 # `set' quotes correctly as required by POSIX, so do not add quotes. 19690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19691 ;; 19692 esac | 19693 sort 19694) | 19695 sed ' 19696 /^ac_cv_env_/b end 19697 t clear 19698 :clear 19699 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19700 t end 19701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19702 :end' >>confcache 19703if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19704 if test -w "$cache_file"; then 19705 if test "x$cache_file" != "x/dev/null"; then 19706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19707printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19708 if test ! -f "$cache_file" || test -h "$cache_file"; then 19709 cat confcache >"$cache_file" 19710 else 19711 case $cache_file in #( 19712 */* | ?:*) 19713 mv -f confcache "$cache_file"$$ && 19714 mv -f "$cache_file"$$ "$cache_file" ;; #( 19715 *) 19716 mv -f confcache "$cache_file" ;; 19717 esac 19718 fi 19719 fi 19720 else 19721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19722printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19723 fi 19724fi 19725rm -f confcache 19726 19727test "x$prefix" = xNONE && prefix=$ac_default_prefix 19728# Let make expand exec_prefix. 19729test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19730 19731DEFS=-DHAVE_CONFIG_H 19732 19733ac_libobjs= 19734ac_ltlibobjs= 19735U= 19736for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19737 # 1. Remove the extension, and $U if already installed. 19738 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19739 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19740 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19741 # will be set to the directory where LIBOBJS objects are built. 19742 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19743 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19744done 19745LIBOBJS=$ac_libobjs 19746 19747LTLIBOBJS=$ac_ltlibobjs 19748 19749 19750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19751printf %s "checking that generated files are newer than configure... " >&6; } 19752 if test -n "$am_sleep_pid"; then 19753 # Hide warnings about reused PIDs. 19754 wait $am_sleep_pid 2>/dev/null 19755 fi 19756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19757printf "%s\n" "done" >&6; } 19758if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19759 as_fn_error $? "conditional \"AMDEP\" was never defined. 19760Usually this means the macro was only invoked conditionally." "$LINENO" 5 19761fi 19762if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19763 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19764Usually this means the macro was only invoked conditionally." "$LINENO" 5 19765fi 19766 if test -n "$EXEEXT"; then 19767 am__EXEEXT_TRUE= 19768 am__EXEEXT_FALSE='#' 19769else 19770 am__EXEEXT_TRUE='#' 19771 am__EXEEXT_FALSE= 19772fi 19773 19774if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 19775 as_fn_error $? "conditional \"LINT\" was never defined. 19776Usually this means the macro was only invoked conditionally." "$LINENO" 5 19777fi 19778 19779: "${CONFIG_STATUS=./config.status}" 19780ac_write_fail=0 19781ac_clean_files_save=$ac_clean_files 19782ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19784printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19785as_write_fail=0 19786cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19787#! $SHELL 19788# Generated by $as_me. 19789# Run this file to recreate the current configuration. 19790# Compiler output produced by configure, useful for debugging 19791# configure, is in config.log if it exists. 19792 19793debug=false 19794ac_cs_recheck=false 19795ac_cs_silent=false 19796 19797SHELL=\${CONFIG_SHELL-$SHELL} 19798export SHELL 19799_ASEOF 19800cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19801## -------------------- ## 19802## M4sh Initialization. ## 19803## -------------------- ## 19804 19805# Be more Bourne compatible 19806DUALCASE=1; export DUALCASE # for MKS sh 19807as_nop=: 19808if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19809then : 19810 emulate sh 19811 NULLCMD=: 19812 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19813 # is contrary to our usage. Disable this feature. 19814 alias -g '${1+"$@"}'='"$@"' 19815 setopt NO_GLOB_SUBST 19816else $as_nop 19817 case `(set -o) 2>/dev/null` in #( 19818 *posix*) : 19819 set -o posix ;; #( 19820 *) : 19821 ;; 19822esac 19823fi 19824 19825 19826 19827# Reset variables that may have inherited troublesome values from 19828# the environment. 19829 19830# IFS needs to be set, to space, tab, and newline, in precisely that order. 19831# (If _AS_PATH_WALK were called with IFS unset, it would have the 19832# side effect of setting IFS to empty, thus disabling word splitting.) 19833# Quoting is to prevent editors from complaining about space-tab. 19834as_nl=' 19835' 19836export as_nl 19837IFS=" "" $as_nl" 19838 19839PS1='$ ' 19840PS2='> ' 19841PS4='+ ' 19842 19843# Ensure predictable behavior from utilities with locale-dependent output. 19844LC_ALL=C 19845export LC_ALL 19846LANGUAGE=C 19847export LANGUAGE 19848 19849# We cannot yet rely on "unset" to work, but we need these variables 19850# to be unset--not just set to an empty or harmless value--now, to 19851# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19852# also avoids known problems related to "unset" and subshell syntax 19853# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19854for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19855do eval test \${$as_var+y} \ 19856 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19857done 19858 19859# Ensure that fds 0, 1, and 2 are open. 19860if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19861if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19862if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19863 19864# The user is always right. 19865if ${PATH_SEPARATOR+false} :; then 19866 PATH_SEPARATOR=: 19867 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19868 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19869 PATH_SEPARATOR=';' 19870 } 19871fi 19872 19873 19874# Find who we are. Look in the path if we contain no directory separator. 19875as_myself= 19876case $0 in #(( 19877 *[\\/]* ) as_myself=$0 ;; 19878 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19879for as_dir in $PATH 19880do 19881 IFS=$as_save_IFS 19882 case $as_dir in #((( 19883 '') as_dir=./ ;; 19884 */) ;; 19885 *) as_dir=$as_dir/ ;; 19886 esac 19887 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19888 done 19889IFS=$as_save_IFS 19890 19891 ;; 19892esac 19893# We did not find ourselves, most probably we were run as `sh COMMAND' 19894# in which case we are not to be found in the path. 19895if test "x$as_myself" = x; then 19896 as_myself=$0 19897fi 19898if test ! -f "$as_myself"; then 19899 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19900 exit 1 19901fi 19902 19903 19904 19905# as_fn_error STATUS ERROR [LINENO LOG_FD] 19906# ---------------------------------------- 19907# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19908# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19909# script with STATUS, using 1 if that was 0. 19910as_fn_error () 19911{ 19912 as_status=$1; test $as_status -eq 0 && as_status=1 19913 if test "$4"; then 19914 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19916 fi 19917 printf "%s\n" "$as_me: error: $2" >&2 19918 as_fn_exit $as_status 19919} # as_fn_error 19920 19921 19922 19923# as_fn_set_status STATUS 19924# ----------------------- 19925# Set $? to STATUS, without forking. 19926as_fn_set_status () 19927{ 19928 return $1 19929} # as_fn_set_status 19930 19931# as_fn_exit STATUS 19932# ----------------- 19933# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19934as_fn_exit () 19935{ 19936 set +e 19937 as_fn_set_status $1 19938 exit $1 19939} # as_fn_exit 19940 19941# as_fn_unset VAR 19942# --------------- 19943# Portably unset VAR. 19944as_fn_unset () 19945{ 19946 { eval $1=; unset $1;} 19947} 19948as_unset=as_fn_unset 19949 19950# as_fn_append VAR VALUE 19951# ---------------------- 19952# Append the text in VALUE to the end of the definition contained in VAR. Take 19953# advantage of any shell optimizations that allow amortized linear growth over 19954# repeated appends, instead of the typical quadratic growth present in naive 19955# implementations. 19956if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19957then : 19958 eval 'as_fn_append () 19959 { 19960 eval $1+=\$2 19961 }' 19962else $as_nop 19963 as_fn_append () 19964 { 19965 eval $1=\$$1\$2 19966 } 19967fi # as_fn_append 19968 19969# as_fn_arith ARG... 19970# ------------------ 19971# Perform arithmetic evaluation on the ARGs, and store the result in the 19972# global $as_val. Take advantage of shells that can avoid forks. The arguments 19973# must be portable across $(()) and expr. 19974if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19975then : 19976 eval 'as_fn_arith () 19977 { 19978 as_val=$(( $* )) 19979 }' 19980else $as_nop 19981 as_fn_arith () 19982 { 19983 as_val=`expr "$@" || test $? -eq 1` 19984 } 19985fi # as_fn_arith 19986 19987 19988if expr a : '\(a\)' >/dev/null 2>&1 && 19989 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19990 as_expr=expr 19991else 19992 as_expr=false 19993fi 19994 19995if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19996 as_basename=basename 19997else 19998 as_basename=false 19999fi 20000 20001if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20002 as_dirname=dirname 20003else 20004 as_dirname=false 20005fi 20006 20007as_me=`$as_basename -- "$0" || 20008$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20009 X"$0" : 'X\(//\)$' \| \ 20010 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20011printf "%s\n" X/"$0" | 20012 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20013 s//\1/ 20014 q 20015 } 20016 /^X\/\(\/\/\)$/{ 20017 s//\1/ 20018 q 20019 } 20020 /^X\/\(\/\).*/{ 20021 s//\1/ 20022 q 20023 } 20024 s/.*/./; q'` 20025 20026# Avoid depending upon Character Ranges. 20027as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20028as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20029as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20030as_cr_digits='0123456789' 20031as_cr_alnum=$as_cr_Letters$as_cr_digits 20032 20033 20034# Determine whether it's possible to make 'echo' print without a newline. 20035# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20036# for compatibility with existing Makefiles. 20037ECHO_C= ECHO_N= ECHO_T= 20038case `echo -n x` in #((((( 20039-n*) 20040 case `echo 'xy\c'` in 20041 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20042 xy) ECHO_C='\c';; 20043 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20044 ECHO_T=' ';; 20045 esac;; 20046*) 20047 ECHO_N='-n';; 20048esac 20049 20050# For backward compatibility with old third-party macros, we provide 20051# the shell variables $as_echo and $as_echo_n. New code should use 20052# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20053as_echo='printf %s\n' 20054as_echo_n='printf %s' 20055 20056rm -f conf$$ conf$$.exe conf$$.file 20057if test -d conf$$.dir; then 20058 rm -f conf$$.dir/conf$$.file 20059else 20060 rm -f conf$$.dir 20061 mkdir conf$$.dir 2>/dev/null 20062fi 20063if (echo >conf$$.file) 2>/dev/null; then 20064 if ln -s conf$$.file conf$$ 2>/dev/null; then 20065 as_ln_s='ln -s' 20066 # ... but there are two gotchas: 20067 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20068 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20069 # In both cases, we have to default to `cp -pR'. 20070 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20071 as_ln_s='cp -pR' 20072 elif ln conf$$.file conf$$ 2>/dev/null; then 20073 as_ln_s=ln 20074 else 20075 as_ln_s='cp -pR' 20076 fi 20077else 20078 as_ln_s='cp -pR' 20079fi 20080rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20081rmdir conf$$.dir 2>/dev/null 20082 20083 20084# as_fn_mkdir_p 20085# ------------- 20086# Create "$as_dir" as a directory, including parents if necessary. 20087as_fn_mkdir_p () 20088{ 20089 20090 case $as_dir in #( 20091 -*) as_dir=./$as_dir;; 20092 esac 20093 test -d "$as_dir" || eval $as_mkdir_p || { 20094 as_dirs= 20095 while :; do 20096 case $as_dir in #( 20097 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20098 *) as_qdir=$as_dir;; 20099 esac 20100 as_dirs="'$as_qdir' $as_dirs" 20101 as_dir=`$as_dirname -- "$as_dir" || 20102$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20103 X"$as_dir" : 'X\(//\)[^/]' \| \ 20104 X"$as_dir" : 'X\(//\)$' \| \ 20105 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20106printf "%s\n" X"$as_dir" | 20107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20108 s//\1/ 20109 q 20110 } 20111 /^X\(\/\/\)[^/].*/{ 20112 s//\1/ 20113 q 20114 } 20115 /^X\(\/\/\)$/{ 20116 s//\1/ 20117 q 20118 } 20119 /^X\(\/\).*/{ 20120 s//\1/ 20121 q 20122 } 20123 s/.*/./; q'` 20124 test -d "$as_dir" && break 20125 done 20126 test -z "$as_dirs" || eval "mkdir $as_dirs" 20127 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20128 20129 20130} # as_fn_mkdir_p 20131if mkdir -p . 2>/dev/null; then 20132 as_mkdir_p='mkdir -p "$as_dir"' 20133else 20134 test -d ./-p && rmdir ./-p 20135 as_mkdir_p=false 20136fi 20137 20138 20139# as_fn_executable_p FILE 20140# ----------------------- 20141# Test if FILE is an executable regular file. 20142as_fn_executable_p () 20143{ 20144 test -f "$1" && test -x "$1" 20145} # as_fn_executable_p 20146as_test_x='test -x' 20147as_executable_p=as_fn_executable_p 20148 20149# Sed expression to map a string onto a valid CPP name. 20150as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20151 20152# Sed expression to map a string onto a valid variable name. 20153as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20154 20155 20156exec 6>&1 20157## ----------------------------------- ## 20158## Main body of $CONFIG_STATUS script. ## 20159## ----------------------------------- ## 20160_ASEOF 20161test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20162 20163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20164# Save the log message, to keep $0 and so on meaningful, and to 20165# report actual input values of CONFIG_FILES etc. instead of their 20166# values after options handling. 20167ac_log=" 20168This file was extended by libXcursor $as_me 1.2.3, which was 20169generated by GNU Autoconf 2.71. Invocation command line was 20170 20171 CONFIG_FILES = $CONFIG_FILES 20172 CONFIG_HEADERS = $CONFIG_HEADERS 20173 CONFIG_LINKS = $CONFIG_LINKS 20174 CONFIG_COMMANDS = $CONFIG_COMMANDS 20175 $ $0 $@ 20176 20177on `(hostname || uname -n) 2>/dev/null | sed 1q` 20178" 20179 20180_ACEOF 20181 20182case $ac_config_files in *" 20183"*) set x $ac_config_files; shift; ac_config_files=$*;; 20184esac 20185 20186case $ac_config_headers in *" 20187"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20188esac 20189 20190 20191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20192# Files that config.status was made for. 20193config_files="$ac_config_files" 20194config_headers="$ac_config_headers" 20195config_commands="$ac_config_commands" 20196 20197_ACEOF 20198 20199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20200ac_cs_usage="\ 20201\`$as_me' instantiates files and other configuration actions 20202from templates according to the current configuration. Unless the files 20203and actions are specified as TAGs, all are instantiated by default. 20204 20205Usage: $0 [OPTION]... [TAG]... 20206 20207 -h, --help print this help, then exit 20208 -V, --version print version number and configuration settings, then exit 20209 --config print configuration, then exit 20210 -q, --quiet, --silent 20211 do not print progress messages 20212 -d, --debug don't remove temporary files 20213 --recheck update $as_me by reconfiguring in the same conditions 20214 --file=FILE[:TEMPLATE] 20215 instantiate the configuration file FILE 20216 --header=FILE[:TEMPLATE] 20217 instantiate the configuration header FILE 20218 20219Configuration files: 20220$config_files 20221 20222Configuration headers: 20223$config_headers 20224 20225Configuration commands: 20226$config_commands 20227 20228Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcursor/-/issues>." 20229 20230_ACEOF 20231ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20232ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20234ac_cs_config='$ac_cs_config_escaped' 20235ac_cs_version="\\ 20236libXcursor config.status 1.2.3 20237configured by $0, generated by GNU Autoconf 2.71, 20238 with options \\"\$ac_cs_config\\" 20239 20240Copyright (C) 2021 Free Software Foundation, Inc. 20241This config.status script is free software; the Free Software Foundation 20242gives unlimited permission to copy, distribute and modify it." 20243 20244ac_pwd='$ac_pwd' 20245srcdir='$srcdir' 20246INSTALL='$INSTALL' 20247MKDIR_P='$MKDIR_P' 20248AWK='$AWK' 20249test -n "\$AWK" || AWK=awk 20250_ACEOF 20251 20252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20253# The default lists apply if the user does not specify any file. 20254ac_need_defaults=: 20255while test $# != 0 20256do 20257 case $1 in 20258 --*=?*) 20259 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20260 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20261 ac_shift=: 20262 ;; 20263 --*=) 20264 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20265 ac_optarg= 20266 ac_shift=: 20267 ;; 20268 *) 20269 ac_option=$1 20270 ac_optarg=$2 20271 ac_shift=shift 20272 ;; 20273 esac 20274 20275 case $ac_option in 20276 # Handling of the options. 20277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20278 ac_cs_recheck=: ;; 20279 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20280 printf "%s\n" "$ac_cs_version"; exit ;; 20281 --config | --confi | --conf | --con | --co | --c ) 20282 printf "%s\n" "$ac_cs_config"; exit ;; 20283 --debug | --debu | --deb | --de | --d | -d ) 20284 debug=: ;; 20285 --file | --fil | --fi | --f ) 20286 $ac_shift 20287 case $ac_optarg in 20288 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20289 '') as_fn_error $? "missing file argument" ;; 20290 esac 20291 as_fn_append CONFIG_FILES " '$ac_optarg'" 20292 ac_need_defaults=false;; 20293 --header | --heade | --head | --hea ) 20294 $ac_shift 20295 case $ac_optarg in 20296 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20297 esac 20298 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20299 ac_need_defaults=false;; 20300 --he | --h) 20301 # Conflict between --help and --header 20302 as_fn_error $? "ambiguous option: \`$1' 20303Try \`$0 --help' for more information.";; 20304 --help | --hel | -h ) 20305 printf "%s\n" "$ac_cs_usage"; exit ;; 20306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20307 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20308 ac_cs_silent=: ;; 20309 20310 # This is an error. 20311 -*) as_fn_error $? "unrecognized option: \`$1' 20312Try \`$0 --help' for more information." ;; 20313 20314 *) as_fn_append ac_config_targets " $1" 20315 ac_need_defaults=false ;; 20316 20317 esac 20318 shift 20319done 20320 20321ac_configure_extra_args= 20322 20323if $ac_cs_silent; then 20324 exec 6>/dev/null 20325 ac_configure_extra_args="$ac_configure_extra_args --silent" 20326fi 20327 20328_ACEOF 20329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20330if \$ac_cs_recheck; then 20331 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20332 shift 20333 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20334 CONFIG_SHELL='$SHELL' 20335 export CONFIG_SHELL 20336 exec "\$@" 20337fi 20338 20339_ACEOF 20340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20341exec 5>>config.log 20342{ 20343 echo 20344 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20345## Running $as_me. ## 20346_ASBOX 20347 printf "%s\n" "$ac_log" 20348} >&5 20349 20350_ACEOF 20351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20352# 20353# INIT-COMMANDS 20354# 20355AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20356 20357 20358# The HP-UX ksh and POSIX shell print the target directory to stdout 20359# if CDPATH is set. 20360(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20361 20362sed_quote_subst='$sed_quote_subst' 20363double_quote_subst='$double_quote_subst' 20364delay_variable_subst='$delay_variable_subst' 20365macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20366macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20367enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20368enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20369pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20370enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20371shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20372SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20373ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20374PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20375host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20376host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20377host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20378build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20379build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20380build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20381SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20382Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20383GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20384EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20385FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20386LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20387NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20388LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20389max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20390ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20391exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20392lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20393lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20394lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20395lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20396lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20397reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20398reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20399FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20400OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20401deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20402file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20403file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20404want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20405DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20406sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20407AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20408lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20409AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20410archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20411STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20412RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20413old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20414old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20415old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20416lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20417CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20418CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20419compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20420GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20421lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20422lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20423lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20424lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20425lt_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"`' 20426lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20427nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20428lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20429lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20430objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20431MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20432lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20433lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20434lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20435lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20436lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20437need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20438MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20439DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20440NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20441LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20442OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20443OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20444libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20445shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20446extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20447archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20448enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20449export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20450whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20451compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20452old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20453old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20454archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20455archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20456module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20457module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20458with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20459allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20460no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20461hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20462hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20463hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20464hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20465hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20466hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20467hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20468inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20469link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20470always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20471export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20472exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20473include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20474prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20475postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20476file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20477variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20478need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20479need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20480version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20481runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20482shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20483shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20484libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20485library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20486soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20487install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20488postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20489postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20490finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20491finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20492hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20493sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20494configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20495configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20496hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20497enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20498enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20499enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20500old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20501striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20502 20503LTCC='$LTCC' 20504LTCFLAGS='$LTCFLAGS' 20505compiler='$compiler_DEFAULT' 20506 20507# A function that is used when there is no print builtin or printf. 20508func_fallback_echo () 20509{ 20510 eval 'cat <<_LTECHO_EOF 20511\$1 20512_LTECHO_EOF' 20513} 20514 20515# Quote evaled strings. 20516for var in SHELL \ 20517ECHO \ 20518PATH_SEPARATOR \ 20519SED \ 20520GREP \ 20521EGREP \ 20522FGREP \ 20523LD \ 20524NM \ 20525LN_S \ 20526lt_SP2NL \ 20527lt_NL2SP \ 20528reload_flag \ 20529FILECMD \ 20530OBJDUMP \ 20531deplibs_check_method \ 20532file_magic_cmd \ 20533file_magic_glob \ 20534want_nocaseglob \ 20535DLLTOOL \ 20536sharedlib_from_linklib_cmd \ 20537AR \ 20538archiver_list_spec \ 20539STRIP \ 20540RANLIB \ 20541CC \ 20542CFLAGS \ 20543compiler \ 20544lt_cv_sys_global_symbol_pipe \ 20545lt_cv_sys_global_symbol_to_cdecl \ 20546lt_cv_sys_global_symbol_to_import \ 20547lt_cv_sys_global_symbol_to_c_name_address \ 20548lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20549lt_cv_nm_interface \ 20550nm_file_list_spec \ 20551lt_cv_truncate_bin \ 20552lt_prog_compiler_no_builtin_flag \ 20553lt_prog_compiler_pic \ 20554lt_prog_compiler_wl \ 20555lt_prog_compiler_static \ 20556lt_cv_prog_compiler_c_o \ 20557need_locks \ 20558MANIFEST_TOOL \ 20559DSYMUTIL \ 20560NMEDIT \ 20561LIPO \ 20562OTOOL \ 20563OTOOL64 \ 20564shrext_cmds \ 20565export_dynamic_flag_spec \ 20566whole_archive_flag_spec \ 20567compiler_needs_object \ 20568with_gnu_ld \ 20569allow_undefined_flag \ 20570no_undefined_flag \ 20571hardcode_libdir_flag_spec \ 20572hardcode_libdir_separator \ 20573exclude_expsyms \ 20574include_expsyms \ 20575file_list_spec \ 20576variables_saved_for_relink \ 20577libname_spec \ 20578library_names_spec \ 20579soname_spec \ 20580install_override_mode \ 20581finish_eval \ 20582old_striplib \ 20583striplib; do 20584 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20585 *[\\\\\\\`\\"\\\$]*) 20586 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20587 ;; 20588 *) 20589 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20590 ;; 20591 esac 20592done 20593 20594# Double-quote double-evaled strings. 20595for var in reload_cmds \ 20596old_postinstall_cmds \ 20597old_postuninstall_cmds \ 20598old_archive_cmds \ 20599extract_expsyms_cmds \ 20600old_archive_from_new_cmds \ 20601old_archive_from_expsyms_cmds \ 20602archive_cmds \ 20603archive_expsym_cmds \ 20604module_cmds \ 20605module_expsym_cmds \ 20606export_symbols_cmds \ 20607prelink_cmds \ 20608postlink_cmds \ 20609postinstall_cmds \ 20610postuninstall_cmds \ 20611finish_cmds \ 20612sys_lib_search_path_spec \ 20613configure_time_dlsearch_path \ 20614configure_time_lt_sys_library_path; do 20615 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20616 *[\\\\\\\`\\"\\\$]*) 20617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20618 ;; 20619 *) 20620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20621 ;; 20622 esac 20623done 20624 20625ac_aux_dir='$ac_aux_dir' 20626 20627# See if we are running on zsh, and set the options that allow our 20628# commands through without removal of \ escapes INIT. 20629if test -n "\${ZSH_VERSION+set}"; then 20630 setopt NO_GLOB_SUBST 20631fi 20632 20633 20634 PACKAGE='$PACKAGE' 20635 VERSION='$VERSION' 20636 RM='$RM' 20637 ofile='$ofile' 20638 20639 20640 20641 20642_ACEOF 20643 20644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20645 20646# Handling of arguments. 20647for ac_config_target in $ac_config_targets 20648do 20649 case $ac_config_target in 20650 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20651 "include/X11/Xcursor/Xcursor.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xcursor/Xcursor.h" ;; 20652 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20653 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20654 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20655 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20656 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20657 "xcursor.pc") CONFIG_FILES="$CONFIG_FILES xcursor.pc" ;; 20658 20659 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20660 esac 20661done 20662 20663 20664# If the user did not use the arguments to specify the items to instantiate, 20665# then the envvar interface is used. Set only those that are not. 20666# We use the long form for the default assignment because of an extremely 20667# bizarre bug on SunOS 4.1.3. 20668if $ac_need_defaults; then 20669 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20670 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20671 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20672fi 20673 20674# Have a temporary directory for convenience. Make it in the build tree 20675# simply because there is no reason against having it here, and in addition, 20676# creating and moving files from /tmp can sometimes cause problems. 20677# Hook for its removal unless debugging. 20678# Note that there is a small window in which the directory will not be cleaned: 20679# after its creation but before its name has been assigned to `$tmp'. 20680$debug || 20681{ 20682 tmp= ac_tmp= 20683 trap 'exit_status=$? 20684 : "${ac_tmp:=$tmp}" 20685 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20686' 0 20687 trap 'as_fn_exit 1' 1 2 13 15 20688} 20689# Create a (secure) tmp directory for tmp files. 20690 20691{ 20692 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20693 test -d "$tmp" 20694} || 20695{ 20696 tmp=./conf$$-$RANDOM 20697 (umask 077 && mkdir "$tmp") 20698} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20699ac_tmp=$tmp 20700 20701# Set up the scripts for CONFIG_FILES section. 20702# No need to generate them if there are no CONFIG_FILES. 20703# This happens for instance with `./config.status config.h'. 20704if test -n "$CONFIG_FILES"; then 20705 20706 20707ac_cr=`echo X | tr X '\015'` 20708# On cygwin, bash can eat \r inside `` if the user requested igncr. 20709# But we know of no other shell where ac_cr would be empty at this 20710# point, so we can use a bashism as a fallback. 20711if test "x$ac_cr" = x; then 20712 eval ac_cr=\$\'\\r\' 20713fi 20714ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20715if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20716 ac_cs_awk_cr='\\r' 20717else 20718 ac_cs_awk_cr=$ac_cr 20719fi 20720 20721echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20722_ACEOF 20723 20724 20725{ 20726 echo "cat >conf$$subs.awk <<_ACEOF" && 20727 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20728 echo "_ACEOF" 20729} >conf$$subs.sh || 20730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20731ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20732ac_delim='%!_!# ' 20733for ac_last_try in false false false false false :; do 20734 . ./conf$$subs.sh || 20735 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20736 20737 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20738 if test $ac_delim_n = $ac_delim_num; then 20739 break 20740 elif $ac_last_try; then 20741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20742 else 20743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20744 fi 20745done 20746rm -f conf$$subs.sh 20747 20748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20749cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20750_ACEOF 20751sed -n ' 20752h 20753s/^/S["/; s/!.*/"]=/ 20754p 20755g 20756s/^[^!]*!// 20757:repl 20758t repl 20759s/'"$ac_delim"'$// 20760t delim 20761:nl 20762h 20763s/\(.\{148\}\)..*/\1/ 20764t more1 20765s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20766p 20767n 20768b repl 20769:more1 20770s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20771p 20772g 20773s/.\{148\}// 20774t nl 20775:delim 20776h 20777s/\(.\{148\}\)..*/\1/ 20778t more2 20779s/["\\]/\\&/g; s/^/"/; s/$/"/ 20780p 20781b 20782:more2 20783s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20784p 20785g 20786s/.\{148\}// 20787t delim 20788' <conf$$subs.awk | sed ' 20789/^[^""]/{ 20790 N 20791 s/\n// 20792} 20793' >>$CONFIG_STATUS || ac_write_fail=1 20794rm -f conf$$subs.awk 20795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20796_ACAWK 20797cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20798 for (key in S) S_is_set[key] = 1 20799 FS = "" 20800 20801} 20802{ 20803 line = $ 0 20804 nfields = split(line, field, "@") 20805 substed = 0 20806 len = length(field[1]) 20807 for (i = 2; i < nfields; i++) { 20808 key = field[i] 20809 keylen = length(key) 20810 if (S_is_set[key]) { 20811 value = S[key] 20812 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20813 len += length(value) + length(field[++i]) 20814 substed = 1 20815 } else 20816 len += 1 + keylen 20817 } 20818 20819 print line 20820} 20821 20822_ACAWK 20823_ACEOF 20824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20825if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20826 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20827else 20828 cat 20829fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20830 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20831_ACEOF 20832 20833# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20834# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20835# trailing colons and then remove the whole line if VPATH becomes empty 20836# (actually we leave an empty line to preserve line numbers). 20837if test "x$srcdir" = x.; then 20838 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20839h 20840s/// 20841s/^/:/ 20842s/[ ]*$/:/ 20843s/:\$(srcdir):/:/g 20844s/:\${srcdir}:/:/g 20845s/:@srcdir@:/:/g 20846s/^:*// 20847s/:*$// 20848x 20849s/\(=[ ]*\).*/\1/ 20850G 20851s/\n// 20852s/^[^=]*=[ ]*$// 20853}' 20854fi 20855 20856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20857fi # test -n "$CONFIG_FILES" 20858 20859# Set up the scripts for CONFIG_HEADERS section. 20860# No need to generate them if there are no CONFIG_HEADERS. 20861# This happens for instance with `./config.status Makefile'. 20862if test -n "$CONFIG_HEADERS"; then 20863cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20864BEGIN { 20865_ACEOF 20866 20867# Transform confdefs.h into an awk script `defines.awk', embedded as 20868# here-document in config.status, that substitutes the proper values into 20869# config.h.in to produce config.h. 20870 20871# Create a delimiter string that does not exist in confdefs.h, to ease 20872# handling of long lines. 20873ac_delim='%!_!# ' 20874for ac_last_try in false false :; do 20875 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20876 if test -z "$ac_tt"; then 20877 break 20878 elif $ac_last_try; then 20879 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20880 else 20881 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20882 fi 20883done 20884 20885# For the awk script, D is an array of macro values keyed by name, 20886# likewise P contains macro parameters if any. Preserve backslash 20887# newline sequences. 20888 20889ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20890sed -n ' 20891s/.\{148\}/&'"$ac_delim"'/g 20892t rset 20893:rset 20894s/^[ ]*#[ ]*define[ ][ ]*/ / 20895t def 20896d 20897:def 20898s/\\$// 20899t bsnl 20900s/["\\]/\\&/g 20901s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20902D["\1"]=" \3"/p 20903s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20904d 20905:bsnl 20906s/["\\]/\\&/g 20907s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20908D["\1"]=" \3\\\\\\n"\\/p 20909t cont 20910s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20911t cont 20912d 20913:cont 20914n 20915s/.\{148\}/&'"$ac_delim"'/g 20916t clear 20917:clear 20918s/\\$// 20919t bsnlc 20920s/["\\]/\\&/g; s/^/"/; s/$/"/p 20921d 20922:bsnlc 20923s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20924b cont 20925' <confdefs.h | sed ' 20926s/'"$ac_delim"'/"\\\ 20927"/g' >>$CONFIG_STATUS || ac_write_fail=1 20928 20929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20930 for (key in D) D_is_set[key] = 1 20931 FS = "" 20932} 20933/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20934 line = \$ 0 20935 split(line, arg, " ") 20936 if (arg[1] == "#") { 20937 defundef = arg[2] 20938 mac1 = arg[3] 20939 } else { 20940 defundef = substr(arg[1], 2) 20941 mac1 = arg[2] 20942 } 20943 split(mac1, mac2, "(") #) 20944 macro = mac2[1] 20945 prefix = substr(line, 1, index(line, defundef) - 1) 20946 if (D_is_set[macro]) { 20947 # Preserve the white space surrounding the "#". 20948 print prefix "define", macro P[macro] D[macro] 20949 next 20950 } else { 20951 # Replace #undef with comments. This is necessary, for example, 20952 # in the case of _POSIX_SOURCE, which is predefined and required 20953 # on some systems where configure will not decide to define it. 20954 if (defundef == "undef") { 20955 print "/*", prefix defundef, macro, "*/" 20956 next 20957 } 20958 } 20959} 20960{ print } 20961_ACAWK 20962_ACEOF 20963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20964 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20965fi # test -n "$CONFIG_HEADERS" 20966 20967 20968eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20969shift 20970for ac_tag 20971do 20972 case $ac_tag in 20973 :[FHLC]) ac_mode=$ac_tag; continue;; 20974 esac 20975 case $ac_mode$ac_tag in 20976 :[FHL]*:*);; 20977 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20978 :[FH]-) ac_tag=-:-;; 20979 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20980 esac 20981 ac_save_IFS=$IFS 20982 IFS=: 20983 set x $ac_tag 20984 IFS=$ac_save_IFS 20985 shift 20986 ac_file=$1 20987 shift 20988 20989 case $ac_mode in 20990 :L) ac_source=$1;; 20991 :[FH]) 20992 ac_file_inputs= 20993 for ac_f 20994 do 20995 case $ac_f in 20996 -) ac_f="$ac_tmp/stdin";; 20997 *) # Look for the file first in the build tree, then in the source tree 20998 # (if the path is not absolute). The absolute path cannot be DOS-style, 20999 # because $ac_f cannot contain `:'. 21000 test -f "$ac_f" || 21001 case $ac_f in 21002 [\\/$]*) false;; 21003 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21004 esac || 21005 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21006 esac 21007 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21008 as_fn_append ac_file_inputs " '$ac_f'" 21009 done 21010 21011 # Let's still pretend it is `configure' which instantiates (i.e., don't 21012 # use $as_me), people would be surprised to read: 21013 # /* config.h. Generated by config.status. */ 21014 configure_input='Generated from '` 21015 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21016 `' by configure.' 21017 if test x"$ac_file" != x-; then 21018 configure_input="$ac_file. $configure_input" 21019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21020printf "%s\n" "$as_me: creating $ac_file" >&6;} 21021 fi 21022 # Neutralize special characters interpreted by sed in replacement strings. 21023 case $configure_input in #( 21024 *\&* | *\|* | *\\* ) 21025 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21026 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21027 *) ac_sed_conf_input=$configure_input;; 21028 esac 21029 21030 case $ac_tag in 21031 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21033 esac 21034 ;; 21035 esac 21036 21037 ac_dir=`$as_dirname -- "$ac_file" || 21038$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21039 X"$ac_file" : 'X\(//\)[^/]' \| \ 21040 X"$ac_file" : 'X\(//\)$' \| \ 21041 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21042printf "%s\n" X"$ac_file" | 21043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21044 s//\1/ 21045 q 21046 } 21047 /^X\(\/\/\)[^/].*/{ 21048 s//\1/ 21049 q 21050 } 21051 /^X\(\/\/\)$/{ 21052 s//\1/ 21053 q 21054 } 21055 /^X\(\/\).*/{ 21056 s//\1/ 21057 q 21058 } 21059 s/.*/./; q'` 21060 as_dir="$ac_dir"; as_fn_mkdir_p 21061 ac_builddir=. 21062 21063case "$ac_dir" in 21064.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21065*) 21066 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21067 # A ".." for each directory in $ac_dir_suffix. 21068 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21069 case $ac_top_builddir_sub in 21070 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21071 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21072 esac ;; 21073esac 21074ac_abs_top_builddir=$ac_pwd 21075ac_abs_builddir=$ac_pwd$ac_dir_suffix 21076# for backward compatibility: 21077ac_top_builddir=$ac_top_build_prefix 21078 21079case $srcdir in 21080 .) # We are building in place. 21081 ac_srcdir=. 21082 ac_top_srcdir=$ac_top_builddir_sub 21083 ac_abs_top_srcdir=$ac_pwd ;; 21084 [\\/]* | ?:[\\/]* ) # Absolute name. 21085 ac_srcdir=$srcdir$ac_dir_suffix; 21086 ac_top_srcdir=$srcdir 21087 ac_abs_top_srcdir=$srcdir ;; 21088 *) # Relative name. 21089 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21090 ac_top_srcdir=$ac_top_build_prefix$srcdir 21091 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21092esac 21093ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21094 21095 21096 case $ac_mode in 21097 :F) 21098 # 21099 # CONFIG_FILE 21100 # 21101 21102 case $INSTALL in 21103 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21104 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21105 esac 21106 ac_MKDIR_P=$MKDIR_P 21107 case $MKDIR_P in 21108 [\\/$]* | ?:[\\/]* ) ;; 21109 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21110 esac 21111_ACEOF 21112 21113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21114# If the template does not know about datarootdir, expand it. 21115# FIXME: This hack should be removed a few years after 2.60. 21116ac_datarootdir_hack=; ac_datarootdir_seen= 21117ac_sed_dataroot=' 21118/datarootdir/ { 21119 p 21120 q 21121} 21122/@datadir@/p 21123/@docdir@/p 21124/@infodir@/p 21125/@localedir@/p 21126/@mandir@/p' 21127case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21128*datarootdir*) ac_datarootdir_seen=yes;; 21129*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21131printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21132_ACEOF 21133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21134 ac_datarootdir_hack=' 21135 s&@datadir@&$datadir&g 21136 s&@docdir@&$docdir&g 21137 s&@infodir@&$infodir&g 21138 s&@localedir@&$localedir&g 21139 s&@mandir@&$mandir&g 21140 s&\\\${datarootdir}&$datarootdir&g' ;; 21141esac 21142_ACEOF 21143 21144# Neutralize VPATH when `$srcdir' = `.'. 21145# Shell code in configure.ac might set extrasub. 21146# FIXME: do we really want to maintain this feature? 21147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21148ac_sed_extra="$ac_vpsub 21149$extrasub 21150_ACEOF 21151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21152:t 21153/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21154s|@configure_input@|$ac_sed_conf_input|;t t 21155s&@top_builddir@&$ac_top_builddir_sub&;t t 21156s&@top_build_prefix@&$ac_top_build_prefix&;t t 21157s&@srcdir@&$ac_srcdir&;t t 21158s&@abs_srcdir@&$ac_abs_srcdir&;t t 21159s&@top_srcdir@&$ac_top_srcdir&;t t 21160s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21161s&@builddir@&$ac_builddir&;t t 21162s&@abs_builddir@&$ac_abs_builddir&;t t 21163s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21164s&@INSTALL@&$ac_INSTALL&;t t 21165s&@MKDIR_P@&$ac_MKDIR_P&;t t 21166$ac_datarootdir_hack 21167" 21168eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21169 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21170 21171test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21172 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21173 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21174 "$ac_tmp/out"`; test -z "$ac_out"; } && 21175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21176which seems to be undefined. Please make sure it is defined" >&5 21177printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21178which seems to be undefined. Please make sure it is defined" >&2;} 21179 21180 rm -f "$ac_tmp/stdin" 21181 case $ac_file in 21182 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21183 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21184 esac \ 21185 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21186 ;; 21187 :H) 21188 # 21189 # CONFIG_HEADER 21190 # 21191 if test x"$ac_file" != x-; then 21192 { 21193 printf "%s\n" "/* $configure_input */" >&1 \ 21194 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21195 } >"$ac_tmp/config.h" \ 21196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21197 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21199printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21200 else 21201 rm -f "$ac_file" 21202 mv "$ac_tmp/config.h" "$ac_file" \ 21203 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21204 fi 21205 else 21206 printf "%s\n" "/* $configure_input */" >&1 \ 21207 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21208 || as_fn_error $? "could not create -" "$LINENO" 5 21209 fi 21210# Compute "$ac_file"'s index in $config_headers. 21211_am_arg="$ac_file" 21212_am_stamp_count=1 21213for _am_header in $config_headers :; do 21214 case $_am_header in 21215 $_am_arg | $_am_arg:* ) 21216 break ;; 21217 * ) 21218 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21219 esac 21220done 21221echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21222$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21223 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21224 X"$_am_arg" : 'X\(//\)$' \| \ 21225 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21226printf "%s\n" X"$_am_arg" | 21227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21228 s//\1/ 21229 q 21230 } 21231 /^X\(\/\/\)[^/].*/{ 21232 s//\1/ 21233 q 21234 } 21235 /^X\(\/\/\)$/{ 21236 s//\1/ 21237 q 21238 } 21239 /^X\(\/\).*/{ 21240 s//\1/ 21241 q 21242 } 21243 s/.*/./; q'`/stamp-h$_am_stamp_count 21244 ;; 21245 21246 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21247printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21248 ;; 21249 esac 21250 21251 21252 case $ac_file$ac_mode in 21253 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21254 # Older Autoconf quotes --file arguments for eval, but not when files 21255 # are listed without --file. Let's play safe and only enable the eval 21256 # if we detect the quoting. 21257 # TODO: see whether this extra hack can be removed once we start 21258 # requiring Autoconf 2.70 or later. 21259 case $CONFIG_FILES in #( 21260 *\'*) : 21261 eval set x "$CONFIG_FILES" ;; #( 21262 *) : 21263 set x $CONFIG_FILES ;; #( 21264 *) : 21265 ;; 21266esac 21267 shift 21268 # Used to flag and report bootstrapping failures. 21269 am_rc=0 21270 for am_mf 21271 do 21272 # Strip MF so we end up with the name of the file. 21273 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21274 # Check whether this is an Automake generated Makefile which includes 21275 # dependency-tracking related rules and includes. 21276 # Grep'ing the whole file directly is not great: AIX grep has a line 21277 # limit of 2048, but all sed's we know have understand at least 4000. 21278 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21279 || continue 21280 am_dirpart=`$as_dirname -- "$am_mf" || 21281$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21282 X"$am_mf" : 'X\(//\)[^/]' \| \ 21283 X"$am_mf" : 'X\(//\)$' \| \ 21284 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21285printf "%s\n" X"$am_mf" | 21286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21287 s//\1/ 21288 q 21289 } 21290 /^X\(\/\/\)[^/].*/{ 21291 s//\1/ 21292 q 21293 } 21294 /^X\(\/\/\)$/{ 21295 s//\1/ 21296 q 21297 } 21298 /^X\(\/\).*/{ 21299 s//\1/ 21300 q 21301 } 21302 s/.*/./; q'` 21303 am_filepart=`$as_basename -- "$am_mf" || 21304$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21305 X"$am_mf" : 'X\(//\)$' \| \ 21306 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21307printf "%s\n" X/"$am_mf" | 21308 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21309 s//\1/ 21310 q 21311 } 21312 /^X\/\(\/\/\)$/{ 21313 s//\1/ 21314 q 21315 } 21316 /^X\/\(\/\).*/{ 21317 s//\1/ 21318 q 21319 } 21320 s/.*/./; q'` 21321 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21322 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21323 | $MAKE -f - am--depfiles" >&5 21324 (cd "$am_dirpart" \ 21325 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21326 | $MAKE -f - am--depfiles) >&5 2>&5 21327 ac_status=$? 21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21329 (exit $ac_status); } || am_rc=$? 21330 done 21331 if test $am_rc -ne 0; then 21332 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21333printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21334as_fn_error $? "Something went wrong bootstrapping makefile fragments 21335 for automatic dependency tracking. If GNU make was not used, consider 21336 re-running the configure script with MAKE=\"gmake\" (or whatever is 21337 necessary). You can also try re-running configure with the 21338 '--disable-dependency-tracking' option to at least be able to build 21339 the package (albeit without support for automatic dependency tracking). 21340See \`config.log' for more details" "$LINENO" 5; } 21341 fi 21342 { am_dirpart=; unset am_dirpart;} 21343 { am_filepart=; unset am_filepart;} 21344 { am_mf=; unset am_mf;} 21345 { am_rc=; unset am_rc;} 21346 rm -f conftest-deps.mk 21347} 21348 ;; 21349 "libtool":C) 21350 21351 # See if we are running on zsh, and set the options that allow our 21352 # commands through without removal of \ escapes. 21353 if test -n "${ZSH_VERSION+set}"; then 21354 setopt NO_GLOB_SUBST 21355 fi 21356 21357 cfgfile=${ofile}T 21358 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21359 $RM "$cfgfile" 21360 21361 cat <<_LT_EOF >> "$cfgfile" 21362#! $SHELL 21363# Generated automatically by $as_me ($PACKAGE) $VERSION 21364# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21365 21366# Provide generalized library-building support services. 21367# Written by Gordon Matzigkeit, 1996 21368 21369# Copyright (C) 2014 Free Software Foundation, Inc. 21370# This is free software; see the source for copying conditions. There is NO 21371# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21372 21373# GNU Libtool is free software; you can redistribute it and/or modify 21374# it under the terms of the GNU General Public License as published by 21375# the Free Software Foundation; either version 2 of of the License, or 21376# (at your option) any later version. 21377# 21378# As a special exception to the GNU General Public License, if you 21379# distribute this file as part of a program or library that is built 21380# using GNU Libtool, you may include this file under the same 21381# distribution terms that you use for the rest of that program. 21382# 21383# GNU Libtool is distributed in the hope that it will be useful, but 21384# WITHOUT ANY WARRANTY; without even the implied warranty of 21385# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21386# GNU General Public License for more details. 21387# 21388# You should have received a copy of the GNU General Public License 21389# along with this program. If not, see <http://www.gnu.org/licenses/>. 21390 21391 21392# The names of the tagged configurations supported by this script. 21393available_tags='' 21394 21395# Configured defaults for sys_lib_dlsearch_path munging. 21396: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21397 21398# ### BEGIN LIBTOOL CONFIG 21399 21400# Which release of libtool.m4 was used? 21401macro_version=$macro_version 21402macro_revision=$macro_revision 21403 21404# Whether or not to build shared libraries. 21405build_libtool_libs=$enable_shared 21406 21407# Whether or not to build static libraries. 21408build_old_libs=$enable_static 21409 21410# What type of objects to build. 21411pic_mode=$pic_mode 21412 21413# Whether or not to optimize for fast installation. 21414fast_install=$enable_fast_install 21415 21416# Shared archive member basename,for filename based shared library versioning on AIX. 21417shared_archive_member_spec=$shared_archive_member_spec 21418 21419# Shell to use when invoking shell scripts. 21420SHELL=$lt_SHELL 21421 21422# An echo program that protects backslashes. 21423ECHO=$lt_ECHO 21424 21425# The PATH separator for the build system. 21426PATH_SEPARATOR=$lt_PATH_SEPARATOR 21427 21428# The host system. 21429host_alias=$host_alias 21430host=$host 21431host_os=$host_os 21432 21433# The build system. 21434build_alias=$build_alias 21435build=$build 21436build_os=$build_os 21437 21438# A sed program that does not truncate output. 21439SED=$lt_SED 21440 21441# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21442Xsed="\$SED -e 1s/^X//" 21443 21444# A grep program that handles long lines. 21445GREP=$lt_GREP 21446 21447# An ERE matcher. 21448EGREP=$lt_EGREP 21449 21450# A literal string matcher. 21451FGREP=$lt_FGREP 21452 21453# A BSD- or MS-compatible name lister. 21454NM=$lt_NM 21455 21456# Whether we need soft or hard links. 21457LN_S=$lt_LN_S 21458 21459# What is the maximum length of a command? 21460max_cmd_len=$max_cmd_len 21461 21462# Object file suffix (normally "o"). 21463objext=$ac_objext 21464 21465# Executable file suffix (normally ""). 21466exeext=$exeext 21467 21468# whether the shell understands "unset". 21469lt_unset=$lt_unset 21470 21471# turn spaces into newlines. 21472SP2NL=$lt_lt_SP2NL 21473 21474# turn newlines into spaces. 21475NL2SP=$lt_lt_NL2SP 21476 21477# convert \$build file names to \$host format. 21478to_host_file_cmd=$lt_cv_to_host_file_cmd 21479 21480# convert \$build files to toolchain format. 21481to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21482 21483# A file(cmd) program that detects file types. 21484FILECMD=$lt_FILECMD 21485 21486# An object symbol dumper. 21487OBJDUMP=$lt_OBJDUMP 21488 21489# Method to check whether dependent libraries are shared objects. 21490deplibs_check_method=$lt_deplibs_check_method 21491 21492# Command to use when deplibs_check_method = "file_magic". 21493file_magic_cmd=$lt_file_magic_cmd 21494 21495# How to find potential files when deplibs_check_method = "file_magic". 21496file_magic_glob=$lt_file_magic_glob 21497 21498# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21499want_nocaseglob=$lt_want_nocaseglob 21500 21501# DLL creation program. 21502DLLTOOL=$lt_DLLTOOL 21503 21504# Command to associate shared and link libraries. 21505sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21506 21507# The archiver. 21508AR=$lt_AR 21509 21510# Flags to create an archive (by configure). 21511lt_ar_flags=$lt_ar_flags 21512 21513# Flags to create an archive. 21514AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21515 21516# How to feed a file listing to the archiver. 21517archiver_list_spec=$lt_archiver_list_spec 21518 21519# A symbol stripping program. 21520STRIP=$lt_STRIP 21521 21522# Commands used to install an old-style archive. 21523RANLIB=$lt_RANLIB 21524old_postinstall_cmds=$lt_old_postinstall_cmds 21525old_postuninstall_cmds=$lt_old_postuninstall_cmds 21526 21527# Whether to use a lock for old archive extraction. 21528lock_old_archive_extraction=$lock_old_archive_extraction 21529 21530# A C compiler. 21531LTCC=$lt_CC 21532 21533# LTCC compiler flags. 21534LTCFLAGS=$lt_CFLAGS 21535 21536# Take the output of nm and produce a listing of raw symbols and C names. 21537global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21538 21539# Transform the output of nm in a proper C declaration. 21540global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21541 21542# Transform the output of nm into a list of symbols to manually relocate. 21543global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21544 21545# Transform the output of nm in a C name address pair. 21546global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21547 21548# Transform the output of nm in a C name address pair when lib prefix is needed. 21549global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21550 21551# The name lister interface. 21552nm_interface=$lt_lt_cv_nm_interface 21553 21554# Specify filename containing input files for \$NM. 21555nm_file_list_spec=$lt_nm_file_list_spec 21556 21557# The root where to search for dependent libraries,and where our libraries should be installed. 21558lt_sysroot=$lt_sysroot 21559 21560# Command to truncate a binary pipe. 21561lt_truncate_bin=$lt_lt_cv_truncate_bin 21562 21563# The name of the directory that contains temporary libtool files. 21564objdir=$objdir 21565 21566# Used to examine libraries when file_magic_cmd begins with "file". 21567MAGIC_CMD=$MAGIC_CMD 21568 21569# Must we lock files when doing compilation? 21570need_locks=$lt_need_locks 21571 21572# Manifest tool. 21573MANIFEST_TOOL=$lt_MANIFEST_TOOL 21574 21575# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21576DSYMUTIL=$lt_DSYMUTIL 21577 21578# Tool to change global to local symbols on Mac OS X. 21579NMEDIT=$lt_NMEDIT 21580 21581# Tool to manipulate fat objects and archives on Mac OS X. 21582LIPO=$lt_LIPO 21583 21584# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21585OTOOL=$lt_OTOOL 21586 21587# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21588OTOOL64=$lt_OTOOL64 21589 21590# Old archive suffix (normally "a"). 21591libext=$libext 21592 21593# Shared library suffix (normally ".so"). 21594shrext_cmds=$lt_shrext_cmds 21595 21596# The commands to extract the exported symbol list from a shared archive. 21597extract_expsyms_cmds=$lt_extract_expsyms_cmds 21598 21599# Variables whose values should be saved in libtool wrapper scripts and 21600# restored at link time. 21601variables_saved_for_relink=$lt_variables_saved_for_relink 21602 21603# Do we need the "lib" prefix for modules? 21604need_lib_prefix=$need_lib_prefix 21605 21606# Do we need a version for libraries? 21607need_version=$need_version 21608 21609# Library versioning type. 21610version_type=$version_type 21611 21612# Shared library runtime path variable. 21613runpath_var=$runpath_var 21614 21615# Shared library path variable. 21616shlibpath_var=$shlibpath_var 21617 21618# Is shlibpath searched before the hard-coded library search path? 21619shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21620 21621# Format of library name prefix. 21622libname_spec=$lt_libname_spec 21623 21624# List of archive names. First name is the real one, the rest are links. 21625# The last name is the one that the linker finds with -lNAME 21626library_names_spec=$lt_library_names_spec 21627 21628# The coded name of the library, if different from the real name. 21629soname_spec=$lt_soname_spec 21630 21631# Permission mode override for installation of shared libraries. 21632install_override_mode=$lt_install_override_mode 21633 21634# Command to use after installation of a shared archive. 21635postinstall_cmds=$lt_postinstall_cmds 21636 21637# Command to use after uninstallation of a shared archive. 21638postuninstall_cmds=$lt_postuninstall_cmds 21639 21640# Commands used to finish a libtool library installation in a directory. 21641finish_cmds=$lt_finish_cmds 21642 21643# As "finish_cmds", except a single script fragment to be evaled but 21644# not shown. 21645finish_eval=$lt_finish_eval 21646 21647# Whether we should hardcode library paths into libraries. 21648hardcode_into_libs=$hardcode_into_libs 21649 21650# Compile-time system search path for libraries. 21651sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21652 21653# Detected run-time system search path for libraries. 21654sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21655 21656# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21657configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21658 21659# Whether dlopen is supported. 21660dlopen_support=$enable_dlopen 21661 21662# Whether dlopen of programs is supported. 21663dlopen_self=$enable_dlopen_self 21664 21665# Whether dlopen of statically linked programs is supported. 21666dlopen_self_static=$enable_dlopen_self_static 21667 21668# Commands to strip libraries. 21669old_striplib=$lt_old_striplib 21670striplib=$lt_striplib 21671 21672 21673# The linker used to build libraries. 21674LD=$lt_LD 21675 21676# How to create reloadable object files. 21677reload_flag=$lt_reload_flag 21678reload_cmds=$lt_reload_cmds 21679 21680# Commands used to build an old-style archive. 21681old_archive_cmds=$lt_old_archive_cmds 21682 21683# A language specific compiler. 21684CC=$lt_compiler 21685 21686# Is the compiler the GNU compiler? 21687with_gcc=$GCC 21688 21689# Compiler flag to turn off builtin functions. 21690no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21691 21692# Additional compiler flags for building library objects. 21693pic_flag=$lt_lt_prog_compiler_pic 21694 21695# How to pass a linker flag through the compiler. 21696wl=$lt_lt_prog_compiler_wl 21697 21698# Compiler flag to prevent dynamic linking. 21699link_static_flag=$lt_lt_prog_compiler_static 21700 21701# Does compiler simultaneously support -c and -o options? 21702compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21703 21704# Whether or not to add -lc for building shared libraries. 21705build_libtool_need_lc=$archive_cmds_need_lc 21706 21707# Whether or not to disallow shared libs when runtime libs are static. 21708allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21709 21710# Compiler flag to allow reflexive dlopens. 21711export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21712 21713# Compiler flag to generate shared objects directly from archives. 21714whole_archive_flag_spec=$lt_whole_archive_flag_spec 21715 21716# Whether the compiler copes with passing no objects directly. 21717compiler_needs_object=$lt_compiler_needs_object 21718 21719# Create an old-style archive from a shared archive. 21720old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21721 21722# Create a temporary old-style archive to link instead of a shared archive. 21723old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21724 21725# Commands used to build a shared archive. 21726archive_cmds=$lt_archive_cmds 21727archive_expsym_cmds=$lt_archive_expsym_cmds 21728 21729# Commands used to build a loadable module if different from building 21730# a shared archive. 21731module_cmds=$lt_module_cmds 21732module_expsym_cmds=$lt_module_expsym_cmds 21733 21734# Whether we are building with GNU ld or not. 21735with_gnu_ld=$lt_with_gnu_ld 21736 21737# Flag that allows shared libraries with undefined symbols to be built. 21738allow_undefined_flag=$lt_allow_undefined_flag 21739 21740# Flag that enforces no undefined symbols. 21741no_undefined_flag=$lt_no_undefined_flag 21742 21743# Flag to hardcode \$libdir into a binary during linking. 21744# This must work even if \$libdir does not exist 21745hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21746 21747# Whether we need a single "-rpath" flag with a separated argument. 21748hardcode_libdir_separator=$lt_hardcode_libdir_separator 21749 21750# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21751# DIR into the resulting binary. 21752hardcode_direct=$hardcode_direct 21753 21754# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21755# DIR into the resulting binary and the resulting library dependency is 21756# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21757# library is relocated. 21758hardcode_direct_absolute=$hardcode_direct_absolute 21759 21760# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21761# into the resulting binary. 21762hardcode_minus_L=$hardcode_minus_L 21763 21764# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21765# into the resulting binary. 21766hardcode_shlibpath_var=$hardcode_shlibpath_var 21767 21768# Set to "yes" if building a shared library automatically hardcodes DIR 21769# into the library and all subsequent libraries and executables linked 21770# against it. 21771hardcode_automatic=$hardcode_automatic 21772 21773# Set to yes if linker adds runtime paths of dependent libraries 21774# to runtime path list. 21775inherit_rpath=$inherit_rpath 21776 21777# Whether libtool must link a program against all its dependency libraries. 21778link_all_deplibs=$link_all_deplibs 21779 21780# Set to "yes" if exported symbols are required. 21781always_export_symbols=$always_export_symbols 21782 21783# The commands to list exported symbols. 21784export_symbols_cmds=$lt_export_symbols_cmds 21785 21786# Symbols that should not be listed in the preloaded symbols. 21787exclude_expsyms=$lt_exclude_expsyms 21788 21789# Symbols that must always be exported. 21790include_expsyms=$lt_include_expsyms 21791 21792# Commands necessary for linking programs (against libraries) with templates. 21793prelink_cmds=$lt_prelink_cmds 21794 21795# Commands necessary for finishing linking programs. 21796postlink_cmds=$lt_postlink_cmds 21797 21798# Specify filename containing input files. 21799file_list_spec=$lt_file_list_spec 21800 21801# How to hardcode a shared library path into an executable. 21802hardcode_action=$hardcode_action 21803 21804# ### END LIBTOOL CONFIG 21805 21806_LT_EOF 21807 21808 cat <<'_LT_EOF' >> "$cfgfile" 21809 21810# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21811 21812# func_munge_path_list VARIABLE PATH 21813# ----------------------------------- 21814# VARIABLE is name of variable containing _space_ separated list of 21815# directories to be munged by the contents of PATH, which is string 21816# having a format: 21817# "DIR[:DIR]:" 21818# string "DIR[ DIR]" will be prepended to VARIABLE 21819# ":DIR[:DIR]" 21820# string "DIR[ DIR]" will be appended to VARIABLE 21821# "DIRP[:DIRP]::[DIRA:]DIRA" 21822# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21823# "DIRA[ DIRA]" will be appended to VARIABLE 21824# "DIR[:DIR]" 21825# VARIABLE will be replaced by "DIR[ DIR]" 21826func_munge_path_list () 21827{ 21828 case x$2 in 21829 x) 21830 ;; 21831 *:) 21832 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21833 ;; 21834 x:*) 21835 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21836 ;; 21837 *::*) 21838 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21839 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21840 ;; 21841 *) 21842 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21843 ;; 21844 esac 21845} 21846 21847 21848# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21849func_cc_basename () 21850{ 21851 for cc_temp in $*""; do 21852 case $cc_temp in 21853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21855 \-*) ;; 21856 *) break;; 21857 esac 21858 done 21859 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21860} 21861 21862 21863# ### END FUNCTIONS SHARED WITH CONFIGURE 21864 21865_LT_EOF 21866 21867 case $host_os in 21868 aix3*) 21869 cat <<\_LT_EOF >> "$cfgfile" 21870# AIX sometimes has problems with the GCC collect2 program. For some 21871# reason, if we set the COLLECT_NAMES environment variable, the problems 21872# vanish in a puff of smoke. 21873if test set != "${COLLECT_NAMES+set}"; then 21874 COLLECT_NAMES= 21875 export COLLECT_NAMES 21876fi 21877_LT_EOF 21878 ;; 21879 esac 21880 21881 21882 21883ltmain=$ac_aux_dir/ltmain.sh 21884 21885 21886 # We use sed instead of cat because bash on DJGPP gets confused if 21887 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21888 # text mode, it properly converts lines to CR/LF. This bash problem 21889 # is reportedly fixed, but why not run on old versions too? 21890 $SED '$q' "$ltmain" >> "$cfgfile" \ 21891 || (rm -f "$cfgfile"; exit 1) 21892 21893 mv -f "$cfgfile" "$ofile" || 21894 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21895 chmod +x "$ofile" 21896 21897 ;; 21898 21899 esac 21900done # for ac_tag 21901 21902 21903as_fn_exit 0 21904_ACEOF 21905ac_clean_files=$ac_clean_files_save 21906 21907test $ac_write_fail = 0 || 21908 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21909 21910 21911# configure is writing to config.log, and then calls config.status. 21912# config.status does its own redirection, appending to config.log. 21913# Unfortunately, on DOS this fails, as config.log is still kept open 21914# by configure, so config.status won't be able to write to it; its 21915# output is simply discarded. So we exec the FD to /dev/null, 21916# effectively closing config.log, so it can be properly (re)opened and 21917# appended to by config.status. When coming back to configure, we 21918# need to make the FD available again. 21919if test "$no_create" != yes; then 21920 ac_cs_success=: 21921 ac_config_status_args= 21922 test "$silent" = yes && 21923 ac_config_status_args="$ac_config_status_args --quiet" 21924 exec 5>/dev/null 21925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21926 exec 5>>config.log 21927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21928 # would make configure fail if this is the last instruction. 21929 $ac_cs_success || as_fn_exit 1 21930fi 21931if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21933printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21934fi 21935 21936 21937