1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXrandr 1.5.2. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXrandr/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 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'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://gitlab.freedesktop.org/xorg/lib/libXrandr/issues 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='libXrandr' 593PACKAGE_TARNAME='libXrandr' 594PACKAGE_VERSION='1.5.2' 595PACKAGE_STRING='libXrandr 1.5.2' 596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXrandr/issues' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640RANDR_LIBS 641RANDR_CFLAGS 642RANDR_VERSION 643XTMALLOC_ZERO_CFLAGS 644XMALLOC_ZERO_CFLAGS 645MALLOC_ZERO_CFLAGS 646MAN_SUBSTS 647XORG_MAN_PAGE 648ADMIN_MAN_DIR 649DRIVER_MAN_DIR 650MISC_MAN_DIR 651FILE_MAN_DIR 652LIB_MAN_DIR 653APP_MAN_DIR 654ADMIN_MAN_SUFFIX 655DRIVER_MAN_SUFFIX 656MISC_MAN_SUFFIX 657FILE_MAN_SUFFIX 658LIB_MAN_SUFFIX 659APP_MAN_SUFFIX 660INSTALL_CMD 661PKG_CONFIG_LIBDIR 662PKG_CONFIG_PATH 663PKG_CONFIG 664CHANGELOG_CMD 665STRICT_CFLAGS 666CWARNFLAGS 667BASE_CFLAGS 668CPP 669LT_SYS_LIBRARY_PATH 670OTOOL64 671OTOOL 672LIPO 673NMEDIT 674DSYMUTIL 675MANIFEST_TOOL 676RANLIB 677ac_ct_AR 678AR 679DLLTOOL 680OBJDUMP 681LN_S 682NM 683ac_ct_DUMPBIN 684DUMPBIN 685LD 686FGREP 687EGREP 688GREP 689SED 690am__fastdepCC_FALSE 691am__fastdepCC_TRUE 692CCDEPMODE 693am__nodep 694AMDEPBACKSLASH 695AMDEP_FALSE 696AMDEP_TRUE 697am__quote 698am__include 699DEPDIR 700OBJEXT 701EXEEXT 702ac_ct_CC 703CPPFLAGS 704LDFLAGS 705CFLAGS 706CC 707host_os 708host_vendor 709host_cpu 710host 711build_os 712build_vendor 713build_cpu 714build 715LIBTOOL 716AM_BACKSLASH 717AM_DEFAULT_VERBOSITY 718AM_DEFAULT_V 719AM_V 720am__untar 721am__tar 722AMTAR 723am__leading_dot 724SET_MAKE 725AWK 726mkdir_p 727MKDIR_P 728INSTALL_STRIP_PROGRAM 729STRIP 730install_sh 731MAKEINFO 732AUTOHEADER 733AUTOMAKE 734AUTOCONF 735ACLOCAL 736VERSION 737PACKAGE 738CYGPATH_W 739am__isrc 740INSTALL_DATA 741INSTALL_SCRIPT 742INSTALL_PROGRAM 743target_alias 744host_alias 745build_alias 746LIBS 747ECHO_T 748ECHO_N 749ECHO_C 750DEFS 751mandir 752localedir 753libdir 754psdir 755pdfdir 756dvidir 757htmldir 758infodir 759docdir 760oldincludedir 761includedir 762localstatedir 763sharedstatedir 764sysconfdir 765datadir 766datarootdir 767libexecdir 768sbindir 769bindir 770program_transform_name 771prefix 772exec_prefix 773PACKAGE_URL 774PACKAGE_BUGREPORT 775PACKAGE_STRING 776PACKAGE_VERSION 777PACKAGE_TARNAME 778PACKAGE_NAME 779PATH_SEPARATOR 780SHELL' 781ac_subst_files='' 782ac_user_opts=' 783enable_option_checking 784enable_silent_rules 785enable_shared 786enable_static 787with_pic 788enable_fast_install 789with_aix_soname 790enable_dependency_tracking 791with_gnu_ld 792with_sysroot 793enable_libtool_lock 794enable_selective_werror 795enable_strict_compilation 796enable_malloc0returnsnull 797' 798 ac_precious_vars='build_alias 799host_alias 800target_alias 801CC 802CFLAGS 803LDFLAGS 804LIBS 805CPPFLAGS 806LT_SYS_LIBRARY_PATH 807CPP 808PKG_CONFIG 809PKG_CONFIG_PATH 810PKG_CONFIG_LIBDIR 811RANDR_CFLAGS 812RANDR_LIBS' 813 814 815# Initialize some variables set by options. 816ac_init_help= 817ac_init_version=false 818ac_unrecognized_opts= 819ac_unrecognized_sep= 820# The variables have the same names as the options, with 821# dashes changed to underlines. 822cache_file=/dev/null 823exec_prefix=NONE 824no_create= 825no_recursion= 826prefix=NONE 827program_prefix=NONE 828program_suffix=NONE 829program_transform_name=s,x,x, 830silent= 831site= 832srcdir= 833verbose= 834x_includes=NONE 835x_libraries=NONE 836 837# Installation directory options. 838# These are left unexpanded so users can "make install exec_prefix=/foo" 839# and all the variables that are supposed to be based on exec_prefix 840# by default will actually change. 841# Use braces instead of parens because sh, perl, etc. also accept them. 842# (The list follows the same order as the GNU Coding Standards.) 843bindir='${exec_prefix}/bin' 844sbindir='${exec_prefix}/sbin' 845libexecdir='${exec_prefix}/libexec' 846datarootdir='${prefix}/share' 847datadir='${datarootdir}' 848sysconfdir='${prefix}/etc' 849sharedstatedir='${prefix}/com' 850localstatedir='${prefix}/var' 851includedir='${prefix}/include' 852oldincludedir='/usr/include' 853docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 854infodir='${datarootdir}/info' 855htmldir='${docdir}' 856dvidir='${docdir}' 857pdfdir='${docdir}' 858psdir='${docdir}' 859libdir='${exec_prefix}/lib' 860localedir='${datarootdir}/locale' 861mandir='${datarootdir}/man' 862 863ac_prev= 864ac_dashdash= 865for ac_option 866do 867 # If the previous option needs an argument, assign it. 868 if test -n "$ac_prev"; then 869 eval $ac_prev=\$ac_option 870 ac_prev= 871 continue 872 fi 873 874 case $ac_option in 875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 876 *=) ac_optarg= ;; 877 *) ac_optarg=yes ;; 878 esac 879 880 # Accept the important Cygnus configure options, so we can diagnose typos. 881 882 case $ac_dashdash$ac_option in 883 --) 884 ac_dashdash=yes ;; 885 886 -bindir | --bindir | --bindi | --bind | --bin | --bi) 887 ac_prev=bindir ;; 888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 889 bindir=$ac_optarg ;; 890 891 -build | --build | --buil | --bui | --bu) 892 ac_prev=build_alias ;; 893 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 894 build_alias=$ac_optarg ;; 895 896 -cache-file | --cache-file | --cache-fil | --cache-fi \ 897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 898 ac_prev=cache_file ;; 899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 901 cache_file=$ac_optarg ;; 902 903 --config-cache | -C) 904 cache_file=config.cache ;; 905 906 -datadir | --datadir | --datadi | --datad) 907 ac_prev=datadir ;; 908 -datadir=* | --datadir=* | --datadi=* | --datad=*) 909 datadir=$ac_optarg ;; 910 911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 912 | --dataroo | --dataro | --datar) 913 ac_prev=datarootdir ;; 914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 916 datarootdir=$ac_optarg ;; 917 918 -disable-* | --disable-*) 919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 920 # Reject names that are not valid shell variable names. 921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 922 as_fn_error $? "invalid feature name: $ac_useropt" 923 ac_useropt_orig=$ac_useropt 924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 925 case $ac_user_opts in 926 *" 927"enable_$ac_useropt" 928"*) ;; 929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 930 ac_unrecognized_sep=', ';; 931 esac 932 eval enable_$ac_useropt=no ;; 933 934 -docdir | --docdir | --docdi | --doc | --do) 935 ac_prev=docdir ;; 936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 937 docdir=$ac_optarg ;; 938 939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 940 ac_prev=dvidir ;; 941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 942 dvidir=$ac_optarg ;; 943 944 -enable-* | --enable-*) 945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 946 # Reject names that are not valid shell variable names. 947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 948 as_fn_error $? "invalid feature name: $ac_useropt" 949 ac_useropt_orig=$ac_useropt 950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 951 case $ac_user_opts in 952 *" 953"enable_$ac_useropt" 954"*) ;; 955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 956 ac_unrecognized_sep=', ';; 957 esac 958 eval enable_$ac_useropt=\$ac_optarg ;; 959 960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 962 | --exec | --exe | --ex) 963 ac_prev=exec_prefix ;; 964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 966 | --exec=* | --exe=* | --ex=*) 967 exec_prefix=$ac_optarg ;; 968 969 -gas | --gas | --ga | --g) 970 # Obsolete; use --with-gas. 971 with_gas=yes ;; 972 973 -help | --help | --hel | --he | -h) 974 ac_init_help=long ;; 975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 976 ac_init_help=recursive ;; 977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 978 ac_init_help=short ;; 979 980 -host | --host | --hos | --ho) 981 ac_prev=host_alias ;; 982 -host=* | --host=* | --hos=* | --ho=*) 983 host_alias=$ac_optarg ;; 984 985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 986 ac_prev=htmldir ;; 987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 988 | --ht=*) 989 htmldir=$ac_optarg ;; 990 991 -includedir | --includedir | --includedi | --included | --include \ 992 | --includ | --inclu | --incl | --inc) 993 ac_prev=includedir ;; 994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 995 | --includ=* | --inclu=* | --incl=* | --inc=*) 996 includedir=$ac_optarg ;; 997 998 -infodir | --infodir | --infodi | --infod | --info | --inf) 999 ac_prev=infodir ;; 1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1001 infodir=$ac_optarg ;; 1002 1003 -libdir | --libdir | --libdi | --libd) 1004 ac_prev=libdir ;; 1005 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1006 libdir=$ac_optarg ;; 1007 1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1009 | --libexe | --libex | --libe) 1010 ac_prev=libexecdir ;; 1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1012 | --libexe=* | --libex=* | --libe=*) 1013 libexecdir=$ac_optarg ;; 1014 1015 -localedir | --localedir | --localedi | --localed | --locale) 1016 ac_prev=localedir ;; 1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1018 localedir=$ac_optarg ;; 1019 1020 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1021 | --localstate | --localstat | --localsta | --localst | --locals) 1022 ac_prev=localstatedir ;; 1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1025 localstatedir=$ac_optarg ;; 1026 1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1028 ac_prev=mandir ;; 1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1030 mandir=$ac_optarg ;; 1031 1032 -nfp | --nfp | --nf) 1033 # Obsolete; use --without-fp. 1034 with_fp=no ;; 1035 1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1037 | --no-cr | --no-c | -n) 1038 no_create=yes ;; 1039 1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1042 no_recursion=yes ;; 1043 1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1046 | --oldin | --oldi | --old | --ol | --o) 1047 ac_prev=oldincludedir ;; 1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1051 oldincludedir=$ac_optarg ;; 1052 1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1054 ac_prev=prefix ;; 1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1056 prefix=$ac_optarg ;; 1057 1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1059 | --program-pre | --program-pr | --program-p) 1060 ac_prev=program_prefix ;; 1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1063 program_prefix=$ac_optarg ;; 1064 1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1066 | --program-suf | --program-su | --program-s) 1067 ac_prev=program_suffix ;; 1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1070 program_suffix=$ac_optarg ;; 1071 1072 -program-transform-name | --program-transform-name \ 1073 | --program-transform-nam | --program-transform-na \ 1074 | --program-transform-n | --program-transform- \ 1075 | --program-transform | --program-transfor \ 1076 | --program-transfo | --program-transf \ 1077 | --program-trans | --program-tran \ 1078 | --progr-tra | --program-tr | --program-t) 1079 ac_prev=program_transform_name ;; 1080 -program-transform-name=* | --program-transform-name=* \ 1081 | --program-transform-nam=* | --program-transform-na=* \ 1082 | --program-transform-n=* | --program-transform-=* \ 1083 | --program-transform=* | --program-transfor=* \ 1084 | --program-transfo=* | --program-transf=* \ 1085 | --program-trans=* | --program-tran=* \ 1086 | --progr-tra=* | --program-tr=* | --program-t=*) 1087 program_transform_name=$ac_optarg ;; 1088 1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1090 ac_prev=pdfdir ;; 1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1092 pdfdir=$ac_optarg ;; 1093 1094 -psdir | --psdir | --psdi | --psd | --ps) 1095 ac_prev=psdir ;; 1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1097 psdir=$ac_optarg ;; 1098 1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1100 | -silent | --silent | --silen | --sile | --sil) 1101 silent=yes ;; 1102 1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1104 ac_prev=sbindir ;; 1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1106 | --sbi=* | --sb=*) 1107 sbindir=$ac_optarg ;; 1108 1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1111 | --sharedst | --shareds | --shared | --share | --shar \ 1112 | --sha | --sh) 1113 ac_prev=sharedstatedir ;; 1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1117 | --sha=* | --sh=*) 1118 sharedstatedir=$ac_optarg ;; 1119 1120 -site | --site | --sit) 1121 ac_prev=site ;; 1122 -site=* | --site=* | --sit=*) 1123 site=$ac_optarg ;; 1124 1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1126 ac_prev=srcdir ;; 1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1128 srcdir=$ac_optarg ;; 1129 1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1131 | --syscon | --sysco | --sysc | --sys | --sy) 1132 ac_prev=sysconfdir ;; 1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1135 sysconfdir=$ac_optarg ;; 1136 1137 -target | --target | --targe | --targ | --tar | --ta | --t) 1138 ac_prev=target_alias ;; 1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1140 target_alias=$ac_optarg ;; 1141 1142 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1143 verbose=yes ;; 1144 1145 -version | --version | --versio | --versi | --vers | -V) 1146 ac_init_version=: ;; 1147 1148 -with-* | --with-*) 1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1152 as_fn_error $? "invalid package name: $ac_useropt" 1153 ac_useropt_orig=$ac_useropt 1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1155 case $ac_user_opts in 1156 *" 1157"with_$ac_useropt" 1158"*) ;; 1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1160 ac_unrecognized_sep=', ';; 1161 esac 1162 eval with_$ac_useropt=\$ac_optarg ;; 1163 1164 -without-* | --without-*) 1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1166 # Reject names that are not valid shell variable names. 1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1168 as_fn_error $? "invalid package name: $ac_useropt" 1169 ac_useropt_orig=$ac_useropt 1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1171 case $ac_user_opts in 1172 *" 1173"with_$ac_useropt" 1174"*) ;; 1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1176 ac_unrecognized_sep=', ';; 1177 esac 1178 eval with_$ac_useropt=no ;; 1179 1180 --x) 1181 # Obsolete; use --with-x. 1182 with_x=yes ;; 1183 1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1185 | --x-incl | --x-inc | --x-in | --x-i) 1186 ac_prev=x_includes ;; 1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1189 x_includes=$ac_optarg ;; 1190 1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1193 ac_prev=x_libraries ;; 1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1196 x_libraries=$ac_optarg ;; 1197 1198 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1199Try \`$0 --help' for more information" 1200 ;; 1201 1202 *=*) 1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1204 # Reject names that are not valid shell variable names. 1205 case $ac_envvar in #( 1206 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1208 esac 1209 eval $ac_envvar=\$ac_optarg 1210 export $ac_envvar ;; 1211 1212 *) 1213 # FIXME: should be removed in autoconf 3.0. 1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1218 ;; 1219 1220 esac 1221done 1222 1223if test -n "$ac_prev"; then 1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1225 as_fn_error $? "missing argument to $ac_option" 1226fi 1227 1228if test -n "$ac_unrecognized_opts"; then 1229 case $enable_option_checking in 1230 no) ;; 1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1233 esac 1234fi 1235 1236# Check all directory arguments for consistency. 1237for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1238 datadir sysconfdir sharedstatedir localstatedir includedir \ 1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1240 libdir localedir mandir 1241do 1242 eval ac_val=\$$ac_var 1243 # Remove trailing slashes. 1244 case $ac_val in 1245 */ ) 1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1247 eval $ac_var=\$ac_val;; 1248 esac 1249 # Be sure to have absolute directory names. 1250 case $ac_val in 1251 [\\/$]* | ?:[\\/]* ) continue;; 1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1253 esac 1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1255done 1256 1257# There might be people who depend on the old broken behavior: `$host' 1258# used to hold the argument of --host etc. 1259# FIXME: To remove some day. 1260build=$build_alias 1261host=$host_alias 1262target=$target_alias 1263 1264# FIXME: To remove some day. 1265if test "x$host_alias" != x; then 1266 if test "x$build_alias" = x; then 1267 cross_compiling=maybe 1268 elif test "x$build_alias" != "x$host_alias"; then 1269 cross_compiling=yes 1270 fi 1271fi 1272 1273ac_tool_prefix= 1274test -n "$host_alias" && ac_tool_prefix=$host_alias- 1275 1276test "$silent" = yes && exec 6>/dev/null 1277 1278 1279ac_pwd=`pwd` && test -n "$ac_pwd" && 1280ac_ls_di=`ls -di .` && 1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1282 as_fn_error $? "working directory cannot be determined" 1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1284 as_fn_error $? "pwd does not report name of working directory" 1285 1286 1287# Find the source files, if location was not specified. 1288if test -z "$srcdir"; then 1289 ac_srcdir_defaulted=yes 1290 # Try the directory containing this script, then the parent directory. 1291 ac_confdir=`$as_dirname -- "$as_myself" || 1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1293 X"$as_myself" : 'X\(//\)[^/]' \| \ 1294 X"$as_myself" : 'X\(//\)$' \| \ 1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1296$as_echo X"$as_myself" | 1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\/\)[^/].*/{ 1302 s//\1/ 1303 q 1304 } 1305 /^X\(\/\/\)$/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\).*/{ 1310 s//\1/ 1311 q 1312 } 1313 s/.*/./; q'` 1314 srcdir=$ac_confdir 1315 if test ! -r "$srcdir/$ac_unique_file"; then 1316 srcdir=.. 1317 fi 1318else 1319 ac_srcdir_defaulted=no 1320fi 1321if test ! -r "$srcdir/$ac_unique_file"; then 1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1324fi 1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1326ac_abs_confdir=`( 1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1328 pwd)` 1329# When building in place, set srcdir=. 1330if test "$ac_abs_confdir" = "$ac_pwd"; then 1331 srcdir=. 1332fi 1333# Remove unnecessary trailing slashes from srcdir. 1334# Double slashes in file names in object file debugging info 1335# mess up M-x gdb in Emacs. 1336case $srcdir in 1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1338esac 1339for ac_var in $ac_precious_vars; do 1340 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1341 eval ac_env_${ac_var}_value=\$${ac_var} 1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1343 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1344done 1345 1346# 1347# Report the --help message. 1348# 1349if test "$ac_init_help" = "long"; then 1350 # Omit some internal or obsolete options to make the list less imposing. 1351 # This message is too long to be a string in the A/UX 3.1 sh. 1352 cat <<_ACEOF 1353\`configure' configures libXrandr 1.5.2 to adapt to many kinds of systems. 1354 1355Usage: $0 [OPTION]... [VAR=VALUE]... 1356 1357To assign environment variables (e.g., CC, CFLAGS...), specify them as 1358VAR=VALUE. See below for descriptions of some of the useful variables. 1359 1360Defaults for the options are specified in brackets. 1361 1362Configuration: 1363 -h, --help display this help and exit 1364 --help=short display options specific to this package 1365 --help=recursive display the short help of all the included packages 1366 -V, --version display version information and exit 1367 -q, --quiet, --silent do not print \`checking ...' messages 1368 --cache-file=FILE cache test results in FILE [disabled] 1369 -C, --config-cache alias for \`--cache-file=config.cache' 1370 -n, --no-create do not create output files 1371 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1372 1373Installation directories: 1374 --prefix=PREFIX install architecture-independent files in PREFIX 1375 [$ac_default_prefix] 1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1377 [PREFIX] 1378 1379By default, \`make install' will install all the files in 1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1381an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1382for instance \`--prefix=\$HOME'. 1383 1384For better control, use the options below. 1385 1386Fine tuning of the installation directories: 1387 --bindir=DIR user executables [EPREFIX/bin] 1388 --sbindir=DIR system admin executables [EPREFIX/sbin] 1389 --libexecdir=DIR program executables [EPREFIX/libexec] 1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1393 --libdir=DIR object code libraries [EPREFIX/lib] 1394 --includedir=DIR C header files [PREFIX/include] 1395 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1398 --infodir=DIR info documentation [DATAROOTDIR/info] 1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1400 --mandir=DIR man documentation [DATAROOTDIR/man] 1401 --docdir=DIR documentation root [DATAROOTDIR/doc/libXrandr] 1402 --htmldir=DIR html documentation [DOCDIR] 1403 --dvidir=DIR dvi documentation [DOCDIR] 1404 --pdfdir=DIR pdf documentation [DOCDIR] 1405 --psdir=DIR ps documentation [DOCDIR] 1406_ACEOF 1407 1408 cat <<\_ACEOF 1409 1410Program names: 1411 --program-prefix=PREFIX prepend PREFIX to installed program names 1412 --program-suffix=SUFFIX append SUFFIX to installed program names 1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1414 1415System types: 1416 --build=BUILD configure for building on BUILD [guessed] 1417 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1418_ACEOF 1419fi 1420 1421if test -n "$ac_init_help"; then 1422 case $ac_init_help in 1423 short | recursive ) echo "Configuration of libXrandr 1.5.2:";; 1424 esac 1425 cat <<\_ACEOF 1426 1427Optional Features: 1428 --disable-option-checking ignore unrecognized --enable/--with options 1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1431 --enable-silent-rules less verbose build output (undo: "make V=1") 1432 --disable-silent-rules verbose build output (undo: "make V=0") 1433 --enable-shared[=PKGS] build shared libraries [default=yes] 1434 --enable-static[=PKGS] build static libraries [default=yes] 1435 --enable-fast-install[=PKGS] 1436 optimize for fast installation [default=yes] 1437 --enable-dependency-tracking 1438 do not reject slow dependency extractors 1439 --disable-dependency-tracking 1440 speeds up one-time build 1441 --disable-libtool-lock avoid locking (might break parallel builds) 1442 --disable-selective-werror 1443 Turn off selective compiler errors. (default: 1444 enabled) 1445 --enable-strict-compilation 1446 Enable all warnings from compiler and make them 1447 errors (default: disabled) 1448 --enable-malloc0returnsnull 1449 malloc(0) returns NULL (default: auto) 1450 1451Optional Packages: 1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1454 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1455 both] 1456 --with-aix-soname=aix|svr4|both 1457 shared library versioning (aka "SONAME") variant to 1458 provide on AIX, [default=aix]. 1459 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1460 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1461 compiler's sysroot if not specified). 1462 1463Some influential environment variables: 1464 CC C compiler command 1465 CFLAGS C compiler flags 1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1467 nonstandard directory <lib dir> 1468 LIBS libraries to pass to the linker, e.g. -l<library> 1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1470 you have headers in a nonstandard directory <include dir> 1471 LT_SYS_LIBRARY_PATH 1472 User-defined run-time library search path. 1473 CPP C preprocessor 1474 PKG_CONFIG path to pkg-config utility 1475 PKG_CONFIG_PATH 1476 directories to add to pkg-config's search path 1477 PKG_CONFIG_LIBDIR 1478 path overriding pkg-config's built-in search path 1479 RANDR_CFLAGS 1480 C compiler flags for RANDR, overriding pkg-config 1481 RANDR_LIBS linker flags for RANDR, overriding pkg-config 1482 1483Use these variables to override the choices made by `configure' or to help 1484it to find libraries and programs with nonstandard names/locations. 1485 1486Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXrandr/issues>. 1487_ACEOF 1488ac_status=$? 1489fi 1490 1491if test "$ac_init_help" = "recursive"; then 1492 # If there are subdirs, report their specific --help. 1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1494 test -d "$ac_dir" || 1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1496 continue 1497 ac_builddir=. 1498 1499case "$ac_dir" in 1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1501*) 1502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1503 # A ".." for each directory in $ac_dir_suffix. 1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1505 case $ac_top_builddir_sub in 1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1508 esac ;; 1509esac 1510ac_abs_top_builddir=$ac_pwd 1511ac_abs_builddir=$ac_pwd$ac_dir_suffix 1512# for backward compatibility: 1513ac_top_builddir=$ac_top_build_prefix 1514 1515case $srcdir in 1516 .) # We are building in place. 1517 ac_srcdir=. 1518 ac_top_srcdir=$ac_top_builddir_sub 1519 ac_abs_top_srcdir=$ac_pwd ;; 1520 [\\/]* | ?:[\\/]* ) # Absolute name. 1521 ac_srcdir=$srcdir$ac_dir_suffix; 1522 ac_top_srcdir=$srcdir 1523 ac_abs_top_srcdir=$srcdir ;; 1524 *) # Relative name. 1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1526 ac_top_srcdir=$ac_top_build_prefix$srcdir 1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1528esac 1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1530 1531 cd "$ac_dir" || { ac_status=$?; continue; } 1532 # Check for guested configure. 1533 if test -f "$ac_srcdir/configure.gnu"; then 1534 echo && 1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1536 elif test -f "$ac_srcdir/configure"; then 1537 echo && 1538 $SHELL "$ac_srcdir/configure" --help=recursive 1539 else 1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1541 fi || ac_status=$? 1542 cd "$ac_pwd" || { ac_status=$?; break; } 1543 done 1544fi 1545 1546test -n "$ac_init_help" && exit $ac_status 1547if $ac_init_version; then 1548 cat <<\_ACEOF 1549libXrandr configure 1.5.2 1550generated by GNU Autoconf 2.69 1551 1552Copyright (C) 2012 Free Software Foundation, Inc. 1553This configure script is free software; the Free Software Foundation 1554gives unlimited permission to copy, distribute and modify it. 1555_ACEOF 1556 exit 1557fi 1558 1559## ------------------------ ## 1560## Autoconf initialization. ## 1561## ------------------------ ## 1562 1563# ac_fn_c_try_compile LINENO 1564# -------------------------- 1565# Try to compile conftest.$ac_ext, and return whether this succeeded. 1566ac_fn_c_try_compile () 1567{ 1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1569 rm -f conftest.$ac_objext 1570 if { { ac_try="$ac_compile" 1571case "(($ac_try" in 1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1573 *) ac_try_echo=$ac_try;; 1574esac 1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1576$as_echo "$ac_try_echo"; } >&5 1577 (eval "$ac_compile") 2>conftest.err 1578 ac_status=$? 1579 if test -s conftest.err; then 1580 grep -v '^ *+' conftest.err >conftest.er1 1581 cat conftest.er1 >&5 1582 mv -f conftest.er1 conftest.err 1583 fi 1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1585 test $ac_status = 0; } && { 1586 test -z "$ac_c_werror_flag" || 1587 test ! -s conftest.err 1588 } && test -s conftest.$ac_objext; then : 1589 ac_retval=0 1590else 1591 $as_echo "$as_me: failed program was:" >&5 1592sed 's/^/| /' conftest.$ac_ext >&5 1593 1594 ac_retval=1 1595fi 1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1597 as_fn_set_status $ac_retval 1598 1599} # ac_fn_c_try_compile 1600 1601# ac_fn_c_try_link LINENO 1602# ----------------------- 1603# Try to link conftest.$ac_ext, and return whether this succeeded. 1604ac_fn_c_try_link () 1605{ 1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1607 rm -f conftest.$ac_objext conftest$ac_exeext 1608 if { { ac_try="$ac_link" 1609case "(($ac_try" in 1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1611 *) ac_try_echo=$ac_try;; 1612esac 1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1614$as_echo "$ac_try_echo"; } >&5 1615 (eval "$ac_link") 2>conftest.err 1616 ac_status=$? 1617 if test -s conftest.err; then 1618 grep -v '^ *+' conftest.err >conftest.er1 1619 cat conftest.er1 >&5 1620 mv -f conftest.er1 conftest.err 1621 fi 1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1623 test $ac_status = 0; } && { 1624 test -z "$ac_c_werror_flag" || 1625 test ! -s conftest.err 1626 } && test -s conftest$ac_exeext && { 1627 test "$cross_compiling" = yes || 1628 test -x conftest$ac_exeext 1629 }; then : 1630 ac_retval=0 1631else 1632 $as_echo "$as_me: failed program was:" >&5 1633sed 's/^/| /' conftest.$ac_ext >&5 1634 1635 ac_retval=1 1636fi 1637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1639 # interfere with the next link command; also delete a directory that is 1640 # left behind by Apple's compiler. We do this before executing the actions. 1641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1643 as_fn_set_status $ac_retval 1644 1645} # ac_fn_c_try_link 1646 1647# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1648# ------------------------------------------------------- 1649# Tests whether HEADER exists and can be compiled using the include files in 1650# INCLUDES, setting the cache variable VAR accordingly. 1651ac_fn_c_check_header_compile () 1652{ 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1655$as_echo_n "checking for $2... " >&6; } 1656if eval \${$3+:} false; then : 1657 $as_echo_n "(cached) " >&6 1658else 1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1660/* end confdefs.h. */ 1661$4 1662#include <$2> 1663_ACEOF 1664if ac_fn_c_try_compile "$LINENO"; then : 1665 eval "$3=yes" 1666else 1667 eval "$3=no" 1668fi 1669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1670fi 1671eval ac_res=\$$3 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1673$as_echo "$ac_res" >&6; } 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 1676} # ac_fn_c_check_header_compile 1677 1678# ac_fn_c_try_cpp LINENO 1679# ---------------------- 1680# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1681ac_fn_c_try_cpp () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 if { { ac_try="$ac_cpp conftest.$ac_ext" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } > conftest.i && { 1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 }; then : 1703 ac_retval=0 1704else 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_cpp 1714 1715# ac_fn_c_try_run LINENO 1716# ---------------------- 1717# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1718# that executables *can* be run. 1719ac_fn_c_try_run () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 if { { ac_try="$ac_link" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728$as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_link") 2>&5 1730 ac_status=$? 1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1733 { { case "(($ac_try" in 1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1735 *) ac_try_echo=$ac_try;; 1736esac 1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1738$as_echo "$ac_try_echo"; } >&5 1739 (eval "$ac_try") 2>&5 1740 ac_status=$? 1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1742 test $ac_status = 0; }; }; then : 1743 ac_retval=0 1744else 1745 $as_echo "$as_me: program exited with status $ac_status" >&5 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=$ac_status 1750fi 1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 as_fn_set_status $ac_retval 1754 1755} # ac_fn_c_try_run 1756 1757# ac_fn_c_check_func LINENO FUNC VAR 1758# ---------------------------------- 1759# Tests whether FUNC exists, setting the cache variable VAR accordingly 1760ac_fn_c_check_func () 1761{ 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1764$as_echo_n "checking for $2... " >&6; } 1765if eval \${$3+:} false; then : 1766 $as_echo_n "(cached) " >&6 1767else 1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1769/* end confdefs.h. */ 1770/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1771 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1772#define $2 innocuous_$2 1773 1774/* System header to define __stub macros and hopefully few prototypes, 1775 which can conflict with char $2 (); below. 1776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1777 <limits.h> exists even on freestanding compilers. */ 1778 1779#ifdef __STDC__ 1780# include <limits.h> 1781#else 1782# include <assert.h> 1783#endif 1784 1785#undef $2 1786 1787/* Override any GCC internal prototype to avoid an error. 1788 Use char because int might match the return type of a GCC 1789 builtin and then its argument prototype would still apply. */ 1790#ifdef __cplusplus 1791extern "C" 1792#endif 1793char $2 (); 1794/* The GNU C library defines this for functions which it implements 1795 to always fail with ENOSYS. Some functions are actually named 1796 something starting with __ and the normal name is an alias. */ 1797#if defined __stub_$2 || defined __stub___$2 1798choke me 1799#endif 1800 1801int 1802main () 1803{ 1804return $2 (); 1805 ; 1806 return 0; 1807} 1808_ACEOF 1809if ac_fn_c_try_link "$LINENO"; then : 1810 eval "$3=yes" 1811else 1812 eval "$3=no" 1813fi 1814rm -f core conftest.err conftest.$ac_objext \ 1815 conftest$ac_exeext conftest.$ac_ext 1816fi 1817eval ac_res=\$$3 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1819$as_echo "$ac_res" >&6; } 1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1821 1822} # ac_fn_c_check_func 1823 1824# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1825# --------------------------------------------- 1826# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1827# accordingly. 1828ac_fn_c_check_decl () 1829{ 1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1831 as_decl_name=`echo $2|sed 's/ *(.*//'` 1832 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1834$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1835if eval \${$3+:} false; then : 1836 $as_echo_n "(cached) " >&6 1837else 1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1839/* end confdefs.h. */ 1840$4 1841int 1842main () 1843{ 1844#ifndef $as_decl_name 1845#ifdef __cplusplus 1846 (void) $as_decl_use; 1847#else 1848 (void) $as_decl_name; 1849#endif 1850#endif 1851 1852 ; 1853 return 0; 1854} 1855_ACEOF 1856if ac_fn_c_try_compile "$LINENO"; then : 1857 eval "$3=yes" 1858else 1859 eval "$3=no" 1860fi 1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1862fi 1863eval ac_res=\$$3 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1865$as_echo "$ac_res" >&6; } 1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1867 1868} # ac_fn_c_check_decl 1869cat >config.log <<_ACEOF 1870This file contains any messages produced by compilers while 1871running configure, to aid debugging if configure makes a mistake. 1872 1873It was created by libXrandr $as_me 1.5.2, which was 1874generated by GNU Autoconf 2.69. Invocation command line was 1875 1876 $ $0 $@ 1877 1878_ACEOF 1879exec 5>>config.log 1880{ 1881cat <<_ASUNAME 1882## --------- ## 1883## Platform. ## 1884## --------- ## 1885 1886hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1887uname -m = `(uname -m) 2>/dev/null || echo unknown` 1888uname -r = `(uname -r) 2>/dev/null || echo unknown` 1889uname -s = `(uname -s) 2>/dev/null || echo unknown` 1890uname -v = `(uname -v) 2>/dev/null || echo unknown` 1891 1892/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1893/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1894 1895/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1896/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1897/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1898/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1899/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1900/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1901/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1902 1903_ASUNAME 1904 1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1906for as_dir in $PATH 1907do 1908 IFS=$as_save_IFS 1909 test -z "$as_dir" && as_dir=. 1910 $as_echo "PATH: $as_dir" 1911 done 1912IFS=$as_save_IFS 1913 1914} >&5 1915 1916cat >&5 <<_ACEOF 1917 1918 1919## ----------- ## 1920## Core tests. ## 1921## ----------- ## 1922 1923_ACEOF 1924 1925 1926# Keep a trace of the command line. 1927# Strip out --no-create and --no-recursion so they do not pile up. 1928# Strip out --silent because we don't want to record it for future runs. 1929# Also quote any args containing shell meta-characters. 1930# Make two passes to allow for proper duplicate-argument suppression. 1931ac_configure_args= 1932ac_configure_args0= 1933ac_configure_args1= 1934ac_must_keep_next=false 1935for ac_pass in 1 2 1936do 1937 for ac_arg 1938 do 1939 case $ac_arg in 1940 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1942 | -silent | --silent | --silen | --sile | --sil) 1943 continue ;; 1944 *\'*) 1945 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1946 esac 1947 case $ac_pass in 1948 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1949 2) 1950 as_fn_append ac_configure_args1 " '$ac_arg'" 1951 if test $ac_must_keep_next = true; then 1952 ac_must_keep_next=false # Got value, back to normal. 1953 else 1954 case $ac_arg in 1955 *=* | --config-cache | -C | -disable-* | --disable-* \ 1956 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1957 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1958 | -with-* | --with-* | -without-* | --without-* | --x) 1959 case "$ac_configure_args0 " in 1960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1961 esac 1962 ;; 1963 -* ) ac_must_keep_next=true ;; 1964 esac 1965 fi 1966 as_fn_append ac_configure_args " '$ac_arg'" 1967 ;; 1968 esac 1969 done 1970done 1971{ ac_configure_args0=; unset ac_configure_args0;} 1972{ ac_configure_args1=; unset ac_configure_args1;} 1973 1974# When interrupted or exit'd, cleanup temporary files, and complete 1975# config.log. We remove comments because anyway the quotes in there 1976# would cause problems or look ugly. 1977# WARNING: Use '\'' to represent an apostrophe within the trap. 1978# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1979trap 'exit_status=$? 1980 # Save into config.log some information that might help in debugging. 1981 { 1982 echo 1983 1984 $as_echo "## ---------------- ## 1985## Cache variables. ## 1986## ---------------- ##" 1987 echo 1988 # The following way of writing the cache mishandles newlines in values, 1989( 1990 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1991 eval ac_val=\$$ac_var 1992 case $ac_val in #( 1993 *${as_nl}*) 1994 case $ac_var in #( 1995 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1996$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1997 esac 1998 case $ac_var in #( 1999 _ | IFS | as_nl) ;; #( 2000 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2001 *) { eval $ac_var=; unset $ac_var;} ;; 2002 esac ;; 2003 esac 2004 done 2005 (set) 2>&1 | 2006 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2007 *${as_nl}ac_space=\ *) 2008 sed -n \ 2009 "s/'\''/'\''\\\\'\'''\''/g; 2010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2011 ;; #( 2012 *) 2013 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2014 ;; 2015 esac | 2016 sort 2017) 2018 echo 2019 2020 $as_echo "## ----------------- ## 2021## Output variables. ## 2022## ----------------- ##" 2023 echo 2024 for ac_var in $ac_subst_vars 2025 do 2026 eval ac_val=\$$ac_var 2027 case $ac_val in 2028 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2029 esac 2030 $as_echo "$ac_var='\''$ac_val'\''" 2031 done | sort 2032 echo 2033 2034 if test -n "$ac_subst_files"; then 2035 $as_echo "## ------------------- ## 2036## File substitutions. ## 2037## ------------------- ##" 2038 echo 2039 for ac_var in $ac_subst_files 2040 do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in 2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2044 esac 2045 $as_echo "$ac_var='\''$ac_val'\''" 2046 done | sort 2047 echo 2048 fi 2049 2050 if test -s confdefs.h; then 2051 $as_echo "## ----------- ## 2052## confdefs.h. ## 2053## ----------- ##" 2054 echo 2055 cat confdefs.h 2056 echo 2057 fi 2058 test "$ac_signal" != 0 && 2059 $as_echo "$as_me: caught signal $ac_signal" 2060 $as_echo "$as_me: exit $exit_status" 2061 } >&5 2062 rm -f core *.core core.conftest.* && 2063 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2064 exit $exit_status 2065' 0 2066for ac_signal in 1 2 13 15; do 2067 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2068done 2069ac_signal=0 2070 2071# confdefs.h avoids OS command line length limits that DEFS can exceed. 2072rm -f -r conftest* confdefs.h 2073 2074$as_echo "/* confdefs.h */" > confdefs.h 2075 2076# Predefined preprocessor variables. 2077 2078cat >>confdefs.h <<_ACEOF 2079#define PACKAGE_NAME "$PACKAGE_NAME" 2080_ACEOF 2081 2082cat >>confdefs.h <<_ACEOF 2083#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2084_ACEOF 2085 2086cat >>confdefs.h <<_ACEOF 2087#define PACKAGE_VERSION "$PACKAGE_VERSION" 2088_ACEOF 2089 2090cat >>confdefs.h <<_ACEOF 2091#define PACKAGE_STRING "$PACKAGE_STRING" 2092_ACEOF 2093 2094cat >>confdefs.h <<_ACEOF 2095#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2096_ACEOF 2097 2098cat >>confdefs.h <<_ACEOF 2099#define PACKAGE_URL "$PACKAGE_URL" 2100_ACEOF 2101 2102 2103# Let the site file select an alternate cache file if it wants to. 2104# Prefer an explicitly selected file to automatically selected ones. 2105ac_site_file1=NONE 2106ac_site_file2=NONE 2107if test -n "$CONFIG_SITE"; then 2108 # We do not want a PATH search for config.site. 2109 case $CONFIG_SITE in #(( 2110 -*) ac_site_file1=./$CONFIG_SITE;; 2111 */*) ac_site_file1=$CONFIG_SITE;; 2112 *) ac_site_file1=./$CONFIG_SITE;; 2113 esac 2114elif test "x$prefix" != xNONE; then 2115 ac_site_file1=$prefix/share/config.site 2116 ac_site_file2=$prefix/etc/config.site 2117else 2118 ac_site_file1=$ac_default_prefix/share/config.site 2119 ac_site_file2=$ac_default_prefix/etc/config.site 2120fi 2121for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2122do 2123 test "x$ac_site_file" = xNONE && continue 2124 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2126$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2127 sed 's/^/| /' "$ac_site_file" >&5 2128 . "$ac_site_file" \ 2129 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2131as_fn_error $? "failed to load site script $ac_site_file 2132See \`config.log' for more details" "$LINENO" 5; } 2133 fi 2134done 2135 2136if test -r "$cache_file"; then 2137 # Some versions of bash will fail to source /dev/null (special files 2138 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2139 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2141$as_echo "$as_me: loading cache $cache_file" >&6;} 2142 case $cache_file in 2143 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2144 *) . "./$cache_file";; 2145 esac 2146 fi 2147else 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2149$as_echo "$as_me: creating cache $cache_file" >&6;} 2150 >$cache_file 2151fi 2152 2153# Check that the precious variables saved in the cache have kept the same 2154# value. 2155ac_cache_corrupted=false 2156for ac_var in $ac_precious_vars; do 2157 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2158 eval ac_new_set=\$ac_env_${ac_var}_set 2159 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2160 eval ac_new_val=\$ac_env_${ac_var}_value 2161 case $ac_old_set,$ac_new_set in 2162 set,) 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2164$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2165 ac_cache_corrupted=: ;; 2166 ,set) 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2168$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2169 ac_cache_corrupted=: ;; 2170 ,);; 2171 *) 2172 if test "x$ac_old_val" != "x$ac_new_val"; then 2173 # differences in whitespace do not lead to failure. 2174 ac_old_val_w=`echo x $ac_old_val` 2175 ac_new_val_w=`echo x $ac_new_val` 2176 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2178$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2179 ac_cache_corrupted=: 2180 else 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2182$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2183 eval $ac_var=\$ac_old_val 2184 fi 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2186$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2188$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2189 fi;; 2190 esac 2191 # Pass precious variables to config.status. 2192 if test "$ac_new_set" = set; then 2193 case $ac_new_val in 2194 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2195 *) ac_arg=$ac_var=$ac_new_val ;; 2196 esac 2197 case " $ac_configure_args " in 2198 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2199 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2200 esac 2201 fi 2202done 2203if $ac_cache_corrupted; then 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2207$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2208 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2209fi 2210## -------------------- ## 2211## Main body of script. ## 2212## -------------------- ## 2213 2214ac_ext=c 2215ac_cpp='$CPP $CPPFLAGS' 2216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2218ac_compiler_gnu=$ac_cv_c_compiler_gnu 2219 2220 2221 2222ac_config_headers="$ac_config_headers config.h" 2223 2224 2225# Initialize Automake 2226am__api_version='1.15' 2227 2228ac_aux_dir= 2229for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2230 if test -f "$ac_dir/install-sh"; then 2231 ac_aux_dir=$ac_dir 2232 ac_install_sh="$ac_aux_dir/install-sh -c" 2233 break 2234 elif test -f "$ac_dir/install.sh"; then 2235 ac_aux_dir=$ac_dir 2236 ac_install_sh="$ac_aux_dir/install.sh -c" 2237 break 2238 elif test -f "$ac_dir/shtool"; then 2239 ac_aux_dir=$ac_dir 2240 ac_install_sh="$ac_aux_dir/shtool install -c" 2241 break 2242 fi 2243done 2244if test -z "$ac_aux_dir"; then 2245 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2246fi 2247 2248# These three variables are undocumented and unsupported, 2249# and are intended to be withdrawn in a future Autoconf release. 2250# They can cause serious problems if a builder's source tree is in a directory 2251# whose full name contains unusual characters. 2252ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2253ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2254ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2255 2256 2257# Find a good install program. We prefer a C program (faster), 2258# so one script is as good as another. But avoid the broken or 2259# incompatible versions: 2260# SysV /etc/install, /usr/sbin/install 2261# SunOS /usr/etc/install 2262# IRIX /sbin/install 2263# AIX /bin/install 2264# AmigaOS /C/install, which installs bootblocks on floppy discs 2265# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2266# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2267# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2268# OS/2's system install, which has a completely different semantic 2269# ./install, which can be erroneously created by make from ./install.sh. 2270# Reject install programs that cannot install multiple files. 2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2272$as_echo_n "checking for a BSD-compatible install... " >&6; } 2273if test -z "$INSTALL"; then 2274if ${ac_cv_path_install+:} false; then : 2275 $as_echo_n "(cached) " >&6 2276else 2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2278for as_dir in $PATH 2279do 2280 IFS=$as_save_IFS 2281 test -z "$as_dir" && as_dir=. 2282 # Account for people who put trailing slashes in PATH elements. 2283case $as_dir/ in #(( 2284 ./ | .// | /[cC]/* | \ 2285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2286 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2287 /usr/ucb/* ) ;; 2288 *) 2289 # OSF1 and SCO ODT 3.0 have their own names for install. 2290 # Don't use installbsd from OSF since it installs stuff as root 2291 # by default. 2292 for ac_prog in ginstall scoinst install; do 2293 for ac_exec_ext in '' $ac_executable_extensions; do 2294 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2295 if test $ac_prog = install && 2296 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2297 # AIX install. It has an incompatible calling convention. 2298 : 2299 elif test $ac_prog = install && 2300 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2301 # program-specific install script used by HP pwplus--don't use. 2302 : 2303 else 2304 rm -rf conftest.one conftest.two conftest.dir 2305 echo one > conftest.one 2306 echo two > conftest.two 2307 mkdir conftest.dir 2308 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2309 test -s conftest.one && test -s conftest.two && 2310 test -s conftest.dir/conftest.one && 2311 test -s conftest.dir/conftest.two 2312 then 2313 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2314 break 3 2315 fi 2316 fi 2317 fi 2318 done 2319 done 2320 ;; 2321esac 2322 2323 done 2324IFS=$as_save_IFS 2325 2326rm -rf conftest.one conftest.two conftest.dir 2327 2328fi 2329 if test "${ac_cv_path_install+set}" = set; then 2330 INSTALL=$ac_cv_path_install 2331 else 2332 # As a last resort, use the slow shell script. Don't cache a 2333 # value for INSTALL within a source directory, because that will 2334 # break other packages using the cache if that directory is 2335 # removed, or if the value is a relative name. 2336 INSTALL=$ac_install_sh 2337 fi 2338fi 2339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2340$as_echo "$INSTALL" >&6; } 2341 2342# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2343# It thinks the first close brace ends the variable substitution. 2344test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2345 2346test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2347 2348test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2349 2350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2351$as_echo_n "checking whether build environment is sane... " >&6; } 2352# Reject unsafe characters in $srcdir or the absolute working directory 2353# name. Accept space and tab only in the latter. 2354am_lf=' 2355' 2356case `pwd` in 2357 *[\\\"\#\$\&\'\`$am_lf]*) 2358 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2359esac 2360case $srcdir in 2361 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2362 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2363esac 2364 2365# Do 'set' in a subshell so we don't clobber the current shell's 2366# arguments. Must try -L first in case configure is actually a 2367# symlink; some systems play weird games with the mod time of symlinks 2368# (eg FreeBSD returns the mod time of the symlink's containing 2369# directory). 2370if ( 2371 am_has_slept=no 2372 for am_try in 1 2; do 2373 echo "timestamp, slept: $am_has_slept" > conftest.file 2374 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2375 if test "$*" = "X"; then 2376 # -L didn't work. 2377 set X `ls -t "$srcdir/configure" conftest.file` 2378 fi 2379 if test "$*" != "X $srcdir/configure conftest.file" \ 2380 && test "$*" != "X conftest.file $srcdir/configure"; then 2381 2382 # If neither matched, then we have a broken ls. This can happen 2383 # if, for instance, CONFIG_SHELL is bash and it inherits a 2384 # broken ls alias from the environment. This has actually 2385 # happened. Such a system could not be considered "sane". 2386 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2387 alias in your environment" "$LINENO" 5 2388 fi 2389 if test "$2" = conftest.file || test $am_try -eq 2; then 2390 break 2391 fi 2392 # Just in case. 2393 sleep 1 2394 am_has_slept=yes 2395 done 2396 test "$2" = conftest.file 2397 ) 2398then 2399 # Ok. 2400 : 2401else 2402 as_fn_error $? "newly created file is older than distributed files! 2403Check your system clock" "$LINENO" 5 2404fi 2405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2406$as_echo "yes" >&6; } 2407# If we didn't sleep, we still need to ensure time stamps of config.status and 2408# generated files are strictly newer. 2409am_sleep_pid= 2410if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2411 ( sleep 1 ) & 2412 am_sleep_pid=$! 2413fi 2414 2415rm -f conftest.file 2416 2417test "$program_prefix" != NONE && 2418 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2419# Use a double $ so make ignores it. 2420test "$program_suffix" != NONE && 2421 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2422# Double any \ or $. 2423# By default was `s,x,x', remove it if useless. 2424ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2425program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2426 2427# Expand $ac_aux_dir to an absolute path. 2428am_aux_dir=`cd "$ac_aux_dir" && pwd` 2429 2430if test x"${MISSING+set}" != xset; then 2431 case $am_aux_dir in 2432 *\ * | *\ *) 2433 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2434 *) 2435 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2436 esac 2437fi 2438# Use eval to expand $SHELL 2439if eval "$MISSING --is-lightweight"; then 2440 am_missing_run="$MISSING " 2441else 2442 am_missing_run= 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2444$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2445fi 2446 2447if test x"${install_sh+set}" != xset; then 2448 case $am_aux_dir in 2449 *\ * | *\ *) 2450 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2451 *) 2452 install_sh="\${SHELL} $am_aux_dir/install-sh" 2453 esac 2454fi 2455 2456# Installed binaries are usually stripped using 'strip' when the user 2457# run "make install-strip". However 'strip' might not be the right 2458# tool to use in cross-compilation environments, therefore Automake 2459# will honor the 'STRIP' environment variable to overrule this program. 2460if test "$cross_compiling" != no; then 2461 if test -n "$ac_tool_prefix"; then 2462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2463set dummy ${ac_tool_prefix}strip; ac_word=$2 2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2465$as_echo_n "checking for $ac_word... " >&6; } 2466if ${ac_cv_prog_STRIP+:} false; then : 2467 $as_echo_n "(cached) " >&6 2468else 2469 if test -n "$STRIP"; then 2470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2471else 2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473for as_dir in $PATH 2474do 2475 IFS=$as_save_IFS 2476 test -z "$as_dir" && as_dir=. 2477 for ac_exec_ext in '' $ac_executable_extensions; do 2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2479 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2481 break 2 2482 fi 2483done 2484 done 2485IFS=$as_save_IFS 2486 2487fi 2488fi 2489STRIP=$ac_cv_prog_STRIP 2490if test -n "$STRIP"; then 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2492$as_echo "$STRIP" >&6; } 2493else 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2495$as_echo "no" >&6; } 2496fi 2497 2498 2499fi 2500if test -z "$ac_cv_prog_STRIP"; then 2501 ac_ct_STRIP=$STRIP 2502 # Extract the first word of "strip", so it can be a program name with args. 2503set dummy strip; ac_word=$2 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2505$as_echo_n "checking for $ac_word... " >&6; } 2506if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2507 $as_echo_n "(cached) " >&6 2508else 2509 if test -n "$ac_ct_STRIP"; then 2510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2511else 2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2513for as_dir in $PATH 2514do 2515 IFS=$as_save_IFS 2516 test -z "$as_dir" && as_dir=. 2517 for ac_exec_ext in '' $ac_executable_extensions; do 2518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2519 ac_cv_prog_ac_ct_STRIP="strip" 2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2521 break 2 2522 fi 2523done 2524 done 2525IFS=$as_save_IFS 2526 2527fi 2528fi 2529ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2530if test -n "$ac_ct_STRIP"; then 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2532$as_echo "$ac_ct_STRIP" >&6; } 2533else 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2535$as_echo "no" >&6; } 2536fi 2537 2538 if test "x$ac_ct_STRIP" = x; then 2539 STRIP=":" 2540 else 2541 case $cross_compiling:$ac_tool_warned in 2542yes:) 2543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2545ac_tool_warned=yes ;; 2546esac 2547 STRIP=$ac_ct_STRIP 2548 fi 2549else 2550 STRIP="$ac_cv_prog_STRIP" 2551fi 2552 2553fi 2554INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2555 2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2557$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2558if test -z "$MKDIR_P"; then 2559 if ${ac_cv_path_mkdir+:} false; then : 2560 $as_echo_n "(cached) " >&6 2561else 2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2563for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2564do 2565 IFS=$as_save_IFS 2566 test -z "$as_dir" && as_dir=. 2567 for ac_prog in mkdir gmkdir; do 2568 for ac_exec_ext in '' $ac_executable_extensions; do 2569 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2570 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2571 'mkdir (GNU coreutils) '* | \ 2572 'mkdir (coreutils) '* | \ 2573 'mkdir (fileutils) '4.1*) 2574 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2575 break 3;; 2576 esac 2577 done 2578 done 2579 done 2580IFS=$as_save_IFS 2581 2582fi 2583 2584 test -d ./--version && rmdir ./--version 2585 if test "${ac_cv_path_mkdir+set}" = set; then 2586 MKDIR_P="$ac_cv_path_mkdir -p" 2587 else 2588 # As a last resort, use the slow shell script. Don't cache a 2589 # value for MKDIR_P within a source directory, because that will 2590 # break other packages using the cache if that directory is 2591 # removed, or if the value is a relative name. 2592 MKDIR_P="$ac_install_sh -d" 2593 fi 2594fi 2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2596$as_echo "$MKDIR_P" >&6; } 2597 2598for ac_prog in gawk mawk nawk awk 2599do 2600 # Extract the first word of "$ac_prog", so it can be a program name with args. 2601set dummy $ac_prog; ac_word=$2 2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2603$as_echo_n "checking for $ac_word... " >&6; } 2604if ${ac_cv_prog_AWK+:} false; then : 2605 $as_echo_n "(cached) " >&6 2606else 2607 if test -n "$AWK"; then 2608 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2609else 2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2611for as_dir in $PATH 2612do 2613 IFS=$as_save_IFS 2614 test -z "$as_dir" && as_dir=. 2615 for ac_exec_ext in '' $ac_executable_extensions; do 2616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2617 ac_cv_prog_AWK="$ac_prog" 2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2619 break 2 2620 fi 2621done 2622 done 2623IFS=$as_save_IFS 2624 2625fi 2626fi 2627AWK=$ac_cv_prog_AWK 2628if test -n "$AWK"; then 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2630$as_echo "$AWK" >&6; } 2631else 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2633$as_echo "no" >&6; } 2634fi 2635 2636 2637 test -n "$AWK" && break 2638done 2639 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2641$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2642set x ${MAKE-make} 2643ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2644if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2645 $as_echo_n "(cached) " >&6 2646else 2647 cat >conftest.make <<\_ACEOF 2648SHELL = /bin/sh 2649all: 2650 @echo '@@@%%%=$(MAKE)=@@@%%%' 2651_ACEOF 2652# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2653case `${MAKE-make} -f conftest.make 2>/dev/null` in 2654 *@@@%%%=?*=@@@%%%*) 2655 eval ac_cv_prog_make_${ac_make}_set=yes;; 2656 *) 2657 eval ac_cv_prog_make_${ac_make}_set=no;; 2658esac 2659rm -f conftest.make 2660fi 2661if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2663$as_echo "yes" >&6; } 2664 SET_MAKE= 2665else 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2667$as_echo "no" >&6; } 2668 SET_MAKE="MAKE=${MAKE-make}" 2669fi 2670 2671rm -rf .tst 2>/dev/null 2672mkdir .tst 2>/dev/null 2673if test -d .tst; then 2674 am__leading_dot=. 2675else 2676 am__leading_dot=_ 2677fi 2678rmdir .tst 2>/dev/null 2679 2680# Check whether --enable-silent-rules was given. 2681if test "${enable_silent_rules+set}" = set; then : 2682 enableval=$enable_silent_rules; 2683fi 2684 2685case $enable_silent_rules in # ((( 2686 yes) AM_DEFAULT_VERBOSITY=0;; 2687 no) AM_DEFAULT_VERBOSITY=1;; 2688 *) AM_DEFAULT_VERBOSITY=1;; 2689esac 2690am_make=${MAKE-make} 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2692$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2693if ${am_cv_make_support_nested_variables+:} false; then : 2694 $as_echo_n "(cached) " >&6 2695else 2696 if $as_echo 'TRUE=$(BAR$(V)) 2697BAR0=false 2698BAR1=true 2699V=1 2700am__doit: 2701 @$(TRUE) 2702.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2703 am_cv_make_support_nested_variables=yes 2704else 2705 am_cv_make_support_nested_variables=no 2706fi 2707fi 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2709$as_echo "$am_cv_make_support_nested_variables" >&6; } 2710if test $am_cv_make_support_nested_variables = yes; then 2711 AM_V='$(V)' 2712 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2713else 2714 AM_V=$AM_DEFAULT_VERBOSITY 2715 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2716fi 2717AM_BACKSLASH='\' 2718 2719if test "`cd $srcdir && pwd`" != "`pwd`"; then 2720 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2721 # is not polluted with repeated "-I." 2722 am__isrc=' -I$(srcdir)' 2723 # test to see if srcdir already configured 2724 if test -f $srcdir/config.status; then 2725 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2726 fi 2727fi 2728 2729# test whether we have cygpath 2730if test -z "$CYGPATH_W"; then 2731 if (cygpath --version) >/dev/null 2>/dev/null; then 2732 CYGPATH_W='cygpath -w' 2733 else 2734 CYGPATH_W=echo 2735 fi 2736fi 2737 2738 2739# Define the identity of the package. 2740 PACKAGE='libXrandr' 2741 VERSION='1.5.2' 2742 2743 2744cat >>confdefs.h <<_ACEOF 2745#define PACKAGE "$PACKAGE" 2746_ACEOF 2747 2748 2749cat >>confdefs.h <<_ACEOF 2750#define VERSION "$VERSION" 2751_ACEOF 2752 2753# Some tools Automake needs. 2754 2755ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2756 2757 2758AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2759 2760 2761AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2762 2763 2764AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2765 2766 2767MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2768 2769# For better backward compatibility. To be removed once Automake 1.9.x 2770# dies out for good. For more background, see: 2771# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2772# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2773mkdir_p='$(MKDIR_P)' 2774 2775# We need awk for the "check" target (and possibly the TAP driver). The 2776# system "awk" is bad on some platforms. 2777# Always define AMTAR for backward compatibility. Yes, it's still used 2778# in the wild :-( We should find a proper way to deprecate it ... 2779AMTAR='$${TAR-tar}' 2780 2781 2782# We'll loop over all known methods to create a tar archive until one works. 2783_am_tools='gnutar pax cpio none' 2784 2785am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2786 2787 2788 2789 2790 2791 2792# POSIX will say in a future version that running "rm -f" with no argument 2793# is OK; and we want to be able to make that assumption in our Makefile 2794# recipes. So use an aggressive probe to check that the usage we want is 2795# actually supported "in the wild" to an acceptable degree. 2796# See automake bug#10828. 2797# To make any issue more visible, cause the running configure to be aborted 2798# by default if the 'rm' program in use doesn't match our expectations; the 2799# user can still override this though. 2800if rm -f && rm -fr && rm -rf; then : OK; else 2801 cat >&2 <<'END' 2802Oops! 2803 2804Your 'rm' program seems unable to run without file operands specified 2805on the command line, even when the '-f' option is present. This is contrary 2806to the behaviour of most rm programs out there, and not conforming with 2807the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2808 2809Please tell bug-automake@gnu.org about your system, including the value 2810of your $PATH and any error possibly output before this message. This 2811can help us improve future automake versions. 2812 2813END 2814 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2815 echo 'Configuration will proceed anyway, since you have set the' >&2 2816 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2817 echo >&2 2818 else 2819 cat >&2 <<'END' 2820Aborting the configuration process, to ensure you take notice of the issue. 2821 2822You can download and install GNU coreutils to get an 'rm' implementation 2823that behaves properly: <http://www.gnu.org/software/coreutils/>. 2824 2825If you want to complete the configuration process using your problematic 2826'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2827to "yes", and re-run configure. 2828 2829END 2830 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2831 fi 2832fi 2833 2834 2835# Initialize libtool 2836case `pwd` in 2837 *\ * | *\ *) 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2839$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2840esac 2841 2842 2843 2844macro_version='2.4.6' 2845macro_revision='2.4.6' 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859ltmain=$ac_aux_dir/ltmain.sh 2860 2861# Make sure we can run config.sub. 2862$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2863 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2864 2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2866$as_echo_n "checking build system type... " >&6; } 2867if ${ac_cv_build+:} false; then : 2868 $as_echo_n "(cached) " >&6 2869else 2870 ac_build_alias=$build_alias 2871test "x$ac_build_alias" = x && 2872 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2873test "x$ac_build_alias" = x && 2874 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2875ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2876 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2877 2878fi 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2880$as_echo "$ac_cv_build" >&6; } 2881case $ac_cv_build in 2882*-*-*) ;; 2883*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2884esac 2885build=$ac_cv_build 2886ac_save_IFS=$IFS; IFS='-' 2887set x $ac_cv_build 2888shift 2889build_cpu=$1 2890build_vendor=$2 2891shift; shift 2892# Remember, the first character of IFS is used to create $*, 2893# except with old shells: 2894build_os=$* 2895IFS=$ac_save_IFS 2896case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2897 2898 2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2900$as_echo_n "checking host system type... " >&6; } 2901if ${ac_cv_host+:} false; then : 2902 $as_echo_n "(cached) " >&6 2903else 2904 if test "x$host_alias" = x; then 2905 ac_cv_host=$ac_cv_build 2906else 2907 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2908 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2909fi 2910 2911fi 2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2913$as_echo "$ac_cv_host" >&6; } 2914case $ac_cv_host in 2915*-*-*) ;; 2916*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2917esac 2918host=$ac_cv_host 2919ac_save_IFS=$IFS; IFS='-' 2920set x $ac_cv_host 2921shift 2922host_cpu=$1 2923host_vendor=$2 2924shift; shift 2925# Remember, the first character of IFS is used to create $*, 2926# except with old shells: 2927host_os=$* 2928IFS=$ac_save_IFS 2929case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2930 2931 2932# Backslashify metacharacters that are still active within 2933# double-quoted strings. 2934sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2935 2936# Same as above, but do not quote variable references. 2937double_quote_subst='s/\(["`\\]\)/\\\1/g' 2938 2939# Sed substitution to delay expansion of an escaped shell variable in a 2940# double_quote_subst'ed string. 2941delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2942 2943# Sed substitution to delay expansion of an escaped single quote. 2944delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2945 2946# Sed substitution to avoid accidental globbing in evaled expressions 2947no_glob_subst='s/\*/\\\*/g' 2948 2949ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2950ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2951ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2952 2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2954$as_echo_n "checking how to print strings... " >&6; } 2955# Test print first, because it will be a builtin if present. 2956if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2957 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2958 ECHO='print -r --' 2959elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2960 ECHO='printf %s\n' 2961else 2962 # Use this function as a fallback that always works. 2963 func_fallback_echo () 2964 { 2965 eval 'cat <<_LTECHO_EOF 2966$1 2967_LTECHO_EOF' 2968 } 2969 ECHO='func_fallback_echo' 2970fi 2971 2972# func_echo_all arg... 2973# Invoke $ECHO with all args, space-separated. 2974func_echo_all () 2975{ 2976 $ECHO "" 2977} 2978 2979case $ECHO in 2980 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2981$as_echo "printf" >&6; } ;; 2982 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2983$as_echo "print -r" >&6; } ;; 2984 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2985$as_echo "cat" >&6; } ;; 2986esac 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001DEPDIR="${am__leading_dot}deps" 3002 3003ac_config_commands="$ac_config_commands depfiles" 3004 3005 3006am_make=${MAKE-make} 3007cat > confinc << 'END' 3008am__doit: 3009 @echo this is the am__doit target 3010.PHONY: am__doit 3011END 3012# If we don't find an include directive, just comment out the code. 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3014$as_echo_n "checking for style of include used by $am_make... " >&6; } 3015am__include="#" 3016am__quote= 3017_am_result=none 3018# First try GNU make style include. 3019echo "include confinc" > confmf 3020# Ignore all kinds of additional output from 'make'. 3021case `$am_make -s -f confmf 2> /dev/null` in #( 3022*the\ am__doit\ target*) 3023 am__include=include 3024 am__quote= 3025 _am_result=GNU 3026 ;; 3027esac 3028# Now try BSD make style include. 3029if test "$am__include" = "#"; then 3030 echo '.include "confinc"' > confmf 3031 case `$am_make -s -f confmf 2> /dev/null` in #( 3032 *the\ am__doit\ target*) 3033 am__include=.include 3034 am__quote="\"" 3035 _am_result=BSD 3036 ;; 3037 esac 3038fi 3039 3040 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3042$as_echo "$_am_result" >&6; } 3043rm -f confinc confmf 3044 3045# Check whether --enable-dependency-tracking was given. 3046if test "${enable_dependency_tracking+set}" = set; then : 3047 enableval=$enable_dependency_tracking; 3048fi 3049 3050if test "x$enable_dependency_tracking" != xno; then 3051 am_depcomp="$ac_aux_dir/depcomp" 3052 AMDEPBACKSLASH='\' 3053 am__nodep='_no' 3054fi 3055 if test "x$enable_dependency_tracking" != xno; then 3056 AMDEP_TRUE= 3057 AMDEP_FALSE='#' 3058else 3059 AMDEP_TRUE='#' 3060 AMDEP_FALSE= 3061fi 3062 3063 3064ac_ext=c 3065ac_cpp='$CPP $CPPFLAGS' 3066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3068ac_compiler_gnu=$ac_cv_c_compiler_gnu 3069if test -n "$ac_tool_prefix"; then 3070 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3071set dummy ${ac_tool_prefix}gcc; ac_word=$2 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3073$as_echo_n "checking for $ac_word... " >&6; } 3074if ${ac_cv_prog_CC+:} false; then : 3075 $as_echo_n "(cached) " >&6 3076else 3077 if test -n "$CC"; then 3078 ac_cv_prog_CC="$CC" # Let the user override the test. 3079else 3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3081for as_dir in $PATH 3082do 3083 IFS=$as_save_IFS 3084 test -z "$as_dir" && as_dir=. 3085 for ac_exec_ext in '' $ac_executable_extensions; do 3086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3087 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3089 break 2 3090 fi 3091done 3092 done 3093IFS=$as_save_IFS 3094 3095fi 3096fi 3097CC=$ac_cv_prog_CC 3098if test -n "$CC"; then 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3100$as_echo "$CC" >&6; } 3101else 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3103$as_echo "no" >&6; } 3104fi 3105 3106 3107fi 3108if test -z "$ac_cv_prog_CC"; then 3109 ac_ct_CC=$CC 3110 # Extract the first word of "gcc", so it can be a program name with args. 3111set dummy gcc; ac_word=$2 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3113$as_echo_n "checking for $ac_word... " >&6; } 3114if ${ac_cv_prog_ac_ct_CC+:} false; then : 3115 $as_echo_n "(cached) " >&6 3116else 3117 if test -n "$ac_ct_CC"; then 3118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3119else 3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3121for as_dir in $PATH 3122do 3123 IFS=$as_save_IFS 3124 test -z "$as_dir" && as_dir=. 3125 for ac_exec_ext in '' $ac_executable_extensions; do 3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3127 ac_cv_prog_ac_ct_CC="gcc" 3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3129 break 2 3130 fi 3131done 3132 done 3133IFS=$as_save_IFS 3134 3135fi 3136fi 3137ac_ct_CC=$ac_cv_prog_ac_ct_CC 3138if test -n "$ac_ct_CC"; then 3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3140$as_echo "$ac_ct_CC" >&6; } 3141else 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3143$as_echo "no" >&6; } 3144fi 3145 3146 if test "x$ac_ct_CC" = x; then 3147 CC="" 3148 else 3149 case $cross_compiling:$ac_tool_warned in 3150yes:) 3151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3153ac_tool_warned=yes ;; 3154esac 3155 CC=$ac_ct_CC 3156 fi 3157else 3158 CC="$ac_cv_prog_CC" 3159fi 3160 3161if test -z "$CC"; then 3162 if test -n "$ac_tool_prefix"; then 3163 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3164set dummy ${ac_tool_prefix}cc; ac_word=$2 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3166$as_echo_n "checking for $ac_word... " >&6; } 3167if ${ac_cv_prog_CC+:} false; then : 3168 $as_echo_n "(cached) " >&6 3169else 3170 if test -n "$CC"; then 3171 ac_cv_prog_CC="$CC" # Let the user override the test. 3172else 3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3174for as_dir in $PATH 3175do 3176 IFS=$as_save_IFS 3177 test -z "$as_dir" && as_dir=. 3178 for ac_exec_ext in '' $ac_executable_extensions; do 3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3180 ac_cv_prog_CC="${ac_tool_prefix}cc" 3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3182 break 2 3183 fi 3184done 3185 done 3186IFS=$as_save_IFS 3187 3188fi 3189fi 3190CC=$ac_cv_prog_CC 3191if test -n "$CC"; then 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3193$as_echo "$CC" >&6; } 3194else 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196$as_echo "no" >&6; } 3197fi 3198 3199 3200 fi 3201fi 3202if test -z "$CC"; then 3203 # Extract the first word of "cc", so it can be a program name with args. 3204set dummy cc; ac_word=$2 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3206$as_echo_n "checking for $ac_word... " >&6; } 3207if ${ac_cv_prog_CC+:} false; then : 3208 $as_echo_n "(cached) " >&6 3209else 3210 if test -n "$CC"; then 3211 ac_cv_prog_CC="$CC" # Let the user override the test. 3212else 3213 ac_prog_rejected=no 3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3215for as_dir in $PATH 3216do 3217 IFS=$as_save_IFS 3218 test -z "$as_dir" && as_dir=. 3219 for ac_exec_ext in '' $ac_executable_extensions; do 3220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3221 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3222 ac_prog_rejected=yes 3223 continue 3224 fi 3225 ac_cv_prog_CC="cc" 3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3227 break 2 3228 fi 3229done 3230 done 3231IFS=$as_save_IFS 3232 3233if test $ac_prog_rejected = yes; then 3234 # We found a bogon in the path, so make sure we never use it. 3235 set dummy $ac_cv_prog_CC 3236 shift 3237 if test $# != 0; then 3238 # We chose a different compiler from the bogus one. 3239 # However, it has the same basename, so the bogon will be chosen 3240 # first if we set CC to just the basename; use the full file name. 3241 shift 3242 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3243 fi 3244fi 3245fi 3246fi 3247CC=$ac_cv_prog_CC 3248if test -n "$CC"; then 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3250$as_echo "$CC" >&6; } 3251else 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3253$as_echo "no" >&6; } 3254fi 3255 3256 3257fi 3258if test -z "$CC"; then 3259 if test -n "$ac_tool_prefix"; then 3260 for ac_prog in cl.exe 3261 do 3262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3263set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3265$as_echo_n "checking for $ac_word... " >&6; } 3266if ${ac_cv_prog_CC+:} false; then : 3267 $as_echo_n "(cached) " >&6 3268else 3269 if test -n "$CC"; then 3270 ac_cv_prog_CC="$CC" # Let the user override the test. 3271else 3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3273for as_dir in $PATH 3274do 3275 IFS=$as_save_IFS 3276 test -z "$as_dir" && as_dir=. 3277 for ac_exec_ext in '' $ac_executable_extensions; do 3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3281 break 2 3282 fi 3283done 3284 done 3285IFS=$as_save_IFS 3286 3287fi 3288fi 3289CC=$ac_cv_prog_CC 3290if test -n "$CC"; then 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3292$as_echo "$CC" >&6; } 3293else 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3295$as_echo "no" >&6; } 3296fi 3297 3298 3299 test -n "$CC" && break 3300 done 3301fi 3302if test -z "$CC"; then 3303 ac_ct_CC=$CC 3304 for ac_prog in cl.exe 3305do 3306 # Extract the first word of "$ac_prog", so it can be a program name with args. 3307set dummy $ac_prog; ac_word=$2 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3309$as_echo_n "checking for $ac_word... " >&6; } 3310if ${ac_cv_prog_ac_ct_CC+:} false; then : 3311 $as_echo_n "(cached) " >&6 3312else 3313 if test -n "$ac_ct_CC"; then 3314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3315else 3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3317for as_dir in $PATH 3318do 3319 IFS=$as_save_IFS 3320 test -z "$as_dir" && as_dir=. 3321 for ac_exec_ext in '' $ac_executable_extensions; do 3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3323 ac_cv_prog_ac_ct_CC="$ac_prog" 3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3325 break 2 3326 fi 3327done 3328 done 3329IFS=$as_save_IFS 3330 3331fi 3332fi 3333ac_ct_CC=$ac_cv_prog_ac_ct_CC 3334if test -n "$ac_ct_CC"; then 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3336$as_echo "$ac_ct_CC" >&6; } 3337else 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3339$as_echo "no" >&6; } 3340fi 3341 3342 3343 test -n "$ac_ct_CC" && break 3344done 3345 3346 if test "x$ac_ct_CC" = x; then 3347 CC="" 3348 else 3349 case $cross_compiling:$ac_tool_warned in 3350yes:) 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3353ac_tool_warned=yes ;; 3354esac 3355 CC=$ac_ct_CC 3356 fi 3357fi 3358 3359fi 3360 3361 3362test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3364as_fn_error $? "no acceptable C compiler found in \$PATH 3365See \`config.log' for more details" "$LINENO" 5; } 3366 3367# Provide some information about the compiler. 3368$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3369set X $ac_compile 3370ac_compiler=$2 3371for ac_option in --version -v -V -qversion; do 3372 { { ac_try="$ac_compiler $ac_option >&5" 3373case "(($ac_try" in 3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3375 *) ac_try_echo=$ac_try;; 3376esac 3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3378$as_echo "$ac_try_echo"; } >&5 3379 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3380 ac_status=$? 3381 if test -s conftest.err; then 3382 sed '10a\ 3383... rest of stderr output deleted ... 3384 10q' conftest.err >conftest.er1 3385 cat conftest.er1 >&5 3386 fi 3387 rm -f conftest.er1 conftest.err 3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3389 test $ac_status = 0; } 3390done 3391 3392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3393/* end confdefs.h. */ 3394 3395int 3396main () 3397{ 3398 3399 ; 3400 return 0; 3401} 3402_ACEOF 3403ac_clean_files_save=$ac_clean_files 3404ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3405# Try to create an executable without -o first, disregard a.out. 3406# It will help us diagnose broken compilers, and finding out an intuition 3407# of exeext. 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3409$as_echo_n "checking whether the C compiler works... " >&6; } 3410ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3411 3412# The possible output files: 3413ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3414 3415ac_rmfiles= 3416for ac_file in $ac_files 3417do 3418 case $ac_file in 3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3420 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3421 esac 3422done 3423rm -f $ac_rmfiles 3424 3425if { { ac_try="$ac_link_default" 3426case "(($ac_try" in 3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3428 *) ac_try_echo=$ac_try;; 3429esac 3430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3431$as_echo "$ac_try_echo"; } >&5 3432 (eval "$ac_link_default") 2>&5 3433 ac_status=$? 3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3435 test $ac_status = 0; }; then : 3436 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3437# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3438# in a Makefile. We should not override ac_cv_exeext if it was cached, 3439# so that the user can short-circuit this test for compilers unknown to 3440# Autoconf. 3441for ac_file in $ac_files '' 3442do 3443 test -f "$ac_file" || continue 3444 case $ac_file in 3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3446 ;; 3447 [ab].out ) 3448 # We found the default executable, but exeext='' is most 3449 # certainly right. 3450 break;; 3451 *.* ) 3452 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3453 then :; else 3454 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3455 fi 3456 # We set ac_cv_exeext here because the later test for it is not 3457 # safe: cross compilers may not add the suffix if given an `-o' 3458 # argument, so we may need to know it at that point already. 3459 # Even if this section looks crufty: it has the advantage of 3460 # actually working. 3461 break;; 3462 * ) 3463 break;; 3464 esac 3465done 3466test "$ac_cv_exeext" = no && ac_cv_exeext= 3467 3468else 3469 ac_file='' 3470fi 3471if test -z "$ac_file"; then : 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3473$as_echo "no" >&6; } 3474$as_echo "$as_me: failed program was:" >&5 3475sed 's/^/| /' conftest.$ac_ext >&5 3476 3477{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3479as_fn_error 77 "C compiler cannot create executables 3480See \`config.log' for more details" "$LINENO" 5; } 3481else 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3483$as_echo "yes" >&6; } 3484fi 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3486$as_echo_n "checking for C compiler default output file name... " >&6; } 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3488$as_echo "$ac_file" >&6; } 3489ac_exeext=$ac_cv_exeext 3490 3491rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3492ac_clean_files=$ac_clean_files_save 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3494$as_echo_n "checking for suffix of executables... " >&6; } 3495if { { ac_try="$ac_link" 3496case "(($ac_try" in 3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3498 *) ac_try_echo=$ac_try;; 3499esac 3500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3501$as_echo "$ac_try_echo"; } >&5 3502 (eval "$ac_link") 2>&5 3503 ac_status=$? 3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3505 test $ac_status = 0; }; then : 3506 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3507# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3508# work properly (i.e., refer to `conftest.exe'), while it won't with 3509# `rm'. 3510for ac_file in conftest.exe conftest conftest.*; do 3511 test -f "$ac_file" || continue 3512 case $ac_file in 3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3514 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3515 break;; 3516 * ) break;; 3517 esac 3518done 3519else 3520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3522as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3523See \`config.log' for more details" "$LINENO" 5; } 3524fi 3525rm -f conftest conftest$ac_cv_exeext 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3527$as_echo "$ac_cv_exeext" >&6; } 3528 3529rm -f conftest.$ac_ext 3530EXEEXT=$ac_cv_exeext 3531ac_exeext=$EXEEXT 3532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3533/* end confdefs.h. */ 3534#include <stdio.h> 3535int 3536main () 3537{ 3538FILE *f = fopen ("conftest.out", "w"); 3539 return ferror (f) || fclose (f) != 0; 3540 3541 ; 3542 return 0; 3543} 3544_ACEOF 3545ac_clean_files="$ac_clean_files conftest.out" 3546# Check that the compiler produces executables we can run. If not, either 3547# the compiler is broken, or we cross compile. 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3549$as_echo_n "checking whether we are cross compiling... " >&6; } 3550if test "$cross_compiling" != yes; then 3551 { { ac_try="$ac_link" 3552case "(($ac_try" in 3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3554 *) ac_try_echo=$ac_try;; 3555esac 3556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3557$as_echo "$ac_try_echo"; } >&5 3558 (eval "$ac_link") 2>&5 3559 ac_status=$? 3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3561 test $ac_status = 0; } 3562 if { ac_try='./conftest$ac_cv_exeext' 3563 { { case "(($ac_try" in 3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3565 *) ac_try_echo=$ac_try;; 3566esac 3567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3568$as_echo "$ac_try_echo"; } >&5 3569 (eval "$ac_try") 2>&5 3570 ac_status=$? 3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3572 test $ac_status = 0; }; }; then 3573 cross_compiling=no 3574 else 3575 if test "$cross_compiling" = maybe; then 3576 cross_compiling=yes 3577 else 3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3580as_fn_error $? "cannot run C compiled programs. 3581If you meant to cross compile, use \`--host'. 3582See \`config.log' for more details" "$LINENO" 5; } 3583 fi 3584 fi 3585fi 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3587$as_echo "$cross_compiling" >&6; } 3588 3589rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3590ac_clean_files=$ac_clean_files_save 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3592$as_echo_n "checking for suffix of object files... " >&6; } 3593if ${ac_cv_objext+:} false; then : 3594 $as_echo_n "(cached) " >&6 3595else 3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3597/* end confdefs.h. */ 3598 3599int 3600main () 3601{ 3602 3603 ; 3604 return 0; 3605} 3606_ACEOF 3607rm -f conftest.o conftest.obj 3608if { { ac_try="$ac_compile" 3609case "(($ac_try" in 3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3611 *) ac_try_echo=$ac_try;; 3612esac 3613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3614$as_echo "$ac_try_echo"; } >&5 3615 (eval "$ac_compile") 2>&5 3616 ac_status=$? 3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3618 test $ac_status = 0; }; then : 3619 for ac_file in conftest.o conftest.obj conftest.*; do 3620 test -f "$ac_file" || continue; 3621 case $ac_file in 3622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3623 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3624 break;; 3625 esac 3626done 3627else 3628 $as_echo "$as_me: failed program was:" >&5 3629sed 's/^/| /' conftest.$ac_ext >&5 3630 3631{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3633as_fn_error $? "cannot compute suffix of object files: cannot compile 3634See \`config.log' for more details" "$LINENO" 5; } 3635fi 3636rm -f conftest.$ac_cv_objext conftest.$ac_ext 3637fi 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3639$as_echo "$ac_cv_objext" >&6; } 3640OBJEXT=$ac_cv_objext 3641ac_objext=$OBJEXT 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3643$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3644if ${ac_cv_c_compiler_gnu+:} false; then : 3645 $as_echo_n "(cached) " >&6 3646else 3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3648/* end confdefs.h. */ 3649 3650int 3651main () 3652{ 3653#ifndef __GNUC__ 3654 choke me 3655#endif 3656 3657 ; 3658 return 0; 3659} 3660_ACEOF 3661if ac_fn_c_try_compile "$LINENO"; then : 3662 ac_compiler_gnu=yes 3663else 3664 ac_compiler_gnu=no 3665fi 3666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3667ac_cv_c_compiler_gnu=$ac_compiler_gnu 3668 3669fi 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3671$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3672if test $ac_compiler_gnu = yes; then 3673 GCC=yes 3674else 3675 GCC= 3676fi 3677ac_test_CFLAGS=${CFLAGS+set} 3678ac_save_CFLAGS=$CFLAGS 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3680$as_echo_n "checking whether $CC accepts -g... " >&6; } 3681if ${ac_cv_prog_cc_g+:} false; then : 3682 $as_echo_n "(cached) " >&6 3683else 3684 ac_save_c_werror_flag=$ac_c_werror_flag 3685 ac_c_werror_flag=yes 3686 ac_cv_prog_cc_g=no 3687 CFLAGS="-g" 3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3689/* end confdefs.h. */ 3690 3691int 3692main () 3693{ 3694 3695 ; 3696 return 0; 3697} 3698_ACEOF 3699if ac_fn_c_try_compile "$LINENO"; then : 3700 ac_cv_prog_cc_g=yes 3701else 3702 CFLAGS="" 3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3704/* end confdefs.h. */ 3705 3706int 3707main () 3708{ 3709 3710 ; 3711 return 0; 3712} 3713_ACEOF 3714if ac_fn_c_try_compile "$LINENO"; then : 3715 3716else 3717 ac_c_werror_flag=$ac_save_c_werror_flag 3718 CFLAGS="-g" 3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3720/* end confdefs.h. */ 3721 3722int 3723main () 3724{ 3725 3726 ; 3727 return 0; 3728} 3729_ACEOF 3730if ac_fn_c_try_compile "$LINENO"; then : 3731 ac_cv_prog_cc_g=yes 3732fi 3733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3734fi 3735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3736fi 3737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3738 ac_c_werror_flag=$ac_save_c_werror_flag 3739fi 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3741$as_echo "$ac_cv_prog_cc_g" >&6; } 3742if test "$ac_test_CFLAGS" = set; then 3743 CFLAGS=$ac_save_CFLAGS 3744elif test $ac_cv_prog_cc_g = yes; then 3745 if test "$GCC" = yes; then 3746 CFLAGS="-g -O2" 3747 else 3748 CFLAGS="-g" 3749 fi 3750else 3751 if test "$GCC" = yes; then 3752 CFLAGS="-O2" 3753 else 3754 CFLAGS= 3755 fi 3756fi 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3758$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3759if ${ac_cv_prog_cc_c89+:} false; then : 3760 $as_echo_n "(cached) " >&6 3761else 3762 ac_cv_prog_cc_c89=no 3763ac_save_CC=$CC 3764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3765/* end confdefs.h. */ 3766#include <stdarg.h> 3767#include <stdio.h> 3768struct stat; 3769/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3770struct buf { int x; }; 3771FILE * (*rcsopen) (struct buf *, struct stat *, int); 3772static char *e (p, i) 3773 char **p; 3774 int i; 3775{ 3776 return p[i]; 3777} 3778static char *f (char * (*g) (char **, int), char **p, ...) 3779{ 3780 char *s; 3781 va_list v; 3782 va_start (v,p); 3783 s = g (p, va_arg (v,int)); 3784 va_end (v); 3785 return s; 3786} 3787 3788/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3789 function prototypes and stuff, but not '\xHH' hex character constants. 3790 These don't provoke an error unfortunately, instead are silently treated 3791 as 'x'. The following induces an error, until -std is added to get 3792 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3793 array size at least. It's necessary to write '\x00'==0 to get something 3794 that's true only with -std. */ 3795int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3796 3797/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3798 inside strings and character constants. */ 3799#define FOO(x) 'x' 3800int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3801 3802int test (int i, double x); 3803struct s1 {int (*f) (int a);}; 3804struct s2 {int (*f) (double a);}; 3805int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3806int argc; 3807char **argv; 3808int 3809main () 3810{ 3811return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3817 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3818do 3819 CC="$ac_save_CC $ac_arg" 3820 if ac_fn_c_try_compile "$LINENO"; then : 3821 ac_cv_prog_cc_c89=$ac_arg 3822fi 3823rm -f core conftest.err conftest.$ac_objext 3824 test "x$ac_cv_prog_cc_c89" != "xno" && break 3825done 3826rm -f conftest.$ac_ext 3827CC=$ac_save_CC 3828 3829fi 3830# AC_CACHE_VAL 3831case "x$ac_cv_prog_cc_c89" in 3832 x) 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3834$as_echo "none needed" >&6; } ;; 3835 xno) 3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3837$as_echo "unsupported" >&6; } ;; 3838 *) 3839 CC="$CC $ac_cv_prog_cc_c89" 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3841$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3842esac 3843if test "x$ac_cv_prog_cc_c89" != xno; then : 3844 3845fi 3846 3847ac_ext=c 3848ac_cpp='$CPP $CPPFLAGS' 3849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3851ac_compiler_gnu=$ac_cv_c_compiler_gnu 3852 3853ac_ext=c 3854ac_cpp='$CPP $CPPFLAGS' 3855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3857ac_compiler_gnu=$ac_cv_c_compiler_gnu 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3859$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3860if ${am_cv_prog_cc_c_o+:} false; then : 3861 $as_echo_n "(cached) " >&6 3862else 3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3864/* end confdefs.h. */ 3865 3866int 3867main () 3868{ 3869 3870 ; 3871 return 0; 3872} 3873_ACEOF 3874 # Make sure it works both with $CC and with simple cc. 3875 # Following AC_PROG_CC_C_O, we do the test twice because some 3876 # compilers refuse to overwrite an existing .o file with -o, 3877 # though they will create one. 3878 am_cv_prog_cc_c_o=yes 3879 for am_i in 1 2; do 3880 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3881 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3882 ac_status=$? 3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3884 (exit $ac_status); } \ 3885 && test -f conftest2.$ac_objext; then 3886 : OK 3887 else 3888 am_cv_prog_cc_c_o=no 3889 break 3890 fi 3891 done 3892 rm -f core conftest* 3893 unset am_i 3894fi 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3896$as_echo "$am_cv_prog_cc_c_o" >&6; } 3897if test "$am_cv_prog_cc_c_o" != yes; then 3898 # Losing compiler, so override with the script. 3899 # FIXME: It is wrong to rewrite CC. 3900 # But if we don't then we get into trouble of one sort or another. 3901 # A longer-term fix would be to have automake use am__CC in this case, 3902 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3903 CC="$am_aux_dir/compile $CC" 3904fi 3905ac_ext=c 3906ac_cpp='$CPP $CPPFLAGS' 3907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3909ac_compiler_gnu=$ac_cv_c_compiler_gnu 3910 3911 3912depcc="$CC" am_compiler_list= 3913 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3915$as_echo_n "checking dependency style of $depcc... " >&6; } 3916if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3917 $as_echo_n "(cached) " >&6 3918else 3919 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3920 # We make a subdir and do the tests there. Otherwise we can end up 3921 # making bogus files that we don't know about and never remove. For 3922 # instance it was reported that on HP-UX the gcc test will end up 3923 # making a dummy file named 'D' -- because '-MD' means "put the output 3924 # in D". 3925 rm -rf conftest.dir 3926 mkdir conftest.dir 3927 # Copy depcomp to subdir because otherwise we won't find it if we're 3928 # using a relative directory. 3929 cp "$am_depcomp" conftest.dir 3930 cd conftest.dir 3931 # We will build objects and dependencies in a subdirectory because 3932 # it helps to detect inapplicable dependency modes. For instance 3933 # both Tru64's cc and ICC support -MD to output dependencies as a 3934 # side effect of compilation, but ICC will put the dependencies in 3935 # the current directory while Tru64 will put them in the object 3936 # directory. 3937 mkdir sub 3938 3939 am_cv_CC_dependencies_compiler_type=none 3940 if test "$am_compiler_list" = ""; then 3941 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3942 fi 3943 am__universal=false 3944 case " $depcc " in #( 3945 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3946 esac 3947 3948 for depmode in $am_compiler_list; do 3949 # Setup a source with many dependencies, because some compilers 3950 # like to wrap large dependency lists on column 80 (with \), and 3951 # we should not choose a depcomp mode which is confused by this. 3952 # 3953 # We need to recreate these files for each test, as the compiler may 3954 # overwrite some of them when testing with obscure command lines. 3955 # This happens at least with the AIX C compiler. 3956 : > sub/conftest.c 3957 for i in 1 2 3 4 5 6; do 3958 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3959 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3960 # Solaris 10 /bin/sh. 3961 echo '/* dummy */' > sub/conftst$i.h 3962 done 3963 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3964 3965 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3966 # mode. It turns out that the SunPro C++ compiler does not properly 3967 # handle '-M -o', and we need to detect this. Also, some Intel 3968 # versions had trouble with output in subdirs. 3969 am__obj=sub/conftest.${OBJEXT-o} 3970 am__minus_obj="-o $am__obj" 3971 case $depmode in 3972 gcc) 3973 # This depmode causes a compiler race in universal mode. 3974 test "$am__universal" = false || continue 3975 ;; 3976 nosideeffect) 3977 # After this tag, mechanisms are not by side-effect, so they'll 3978 # only be used when explicitly requested. 3979 if test "x$enable_dependency_tracking" = xyes; then 3980 continue 3981 else 3982 break 3983 fi 3984 ;; 3985 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3986 # This compiler won't grok '-c -o', but also, the minuso test has 3987 # not run yet. These depmodes are late enough in the game, and 3988 # so weak that their functioning should not be impacted. 3989 am__obj=conftest.${OBJEXT-o} 3990 am__minus_obj= 3991 ;; 3992 none) break ;; 3993 esac 3994 if depmode=$depmode \ 3995 source=sub/conftest.c object=$am__obj \ 3996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3997 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3998 >/dev/null 2>conftest.err && 3999 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4001 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4003 # icc doesn't choke on unknown options, it will just issue warnings 4004 # or remarks (even with -Werror). So we grep stderr for any message 4005 # that says an option was ignored or not supported. 4006 # When given -MP, icc 7.0 and 7.1 complain thusly: 4007 # icc: Command line warning: ignoring option '-M'; no argument required 4008 # The diagnosis changed in icc 8.0: 4009 # icc: Command line remark: option '-MP' not supported 4010 if (grep 'ignoring option' conftest.err || 4011 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4012 am_cv_CC_dependencies_compiler_type=$depmode 4013 break 4014 fi 4015 fi 4016 done 4017 4018 cd .. 4019 rm -rf conftest.dir 4020else 4021 am_cv_CC_dependencies_compiler_type=none 4022fi 4023 4024fi 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4026$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4027CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4028 4029 if 4030 test "x$enable_dependency_tracking" != xno \ 4031 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4032 am__fastdepCC_TRUE= 4033 am__fastdepCC_FALSE='#' 4034else 4035 am__fastdepCC_TRUE='#' 4036 am__fastdepCC_FALSE= 4037fi 4038 4039 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4041$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4042if ${ac_cv_path_SED+:} false; then : 4043 $as_echo_n "(cached) " >&6 4044else 4045 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4046 for ac_i in 1 2 3 4 5 6 7; do 4047 ac_script="$ac_script$as_nl$ac_script" 4048 done 4049 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4050 { ac_script=; unset ac_script;} 4051 if test -z "$SED"; then 4052 ac_path_SED_found=false 4053 # Loop through the user's path and test for each of PROGNAME-LIST 4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4055for as_dir in $PATH 4056do 4057 IFS=$as_save_IFS 4058 test -z "$as_dir" && as_dir=. 4059 for ac_prog in sed gsed; do 4060 for ac_exec_ext in '' $ac_executable_extensions; do 4061 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4062 as_fn_executable_p "$ac_path_SED" || continue 4063# Check for GNU ac_path_SED and select it if it is found. 4064 # Check for GNU $ac_path_SED 4065case `"$ac_path_SED" --version 2>&1` in 4066*GNU*) 4067 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4068*) 4069 ac_count=0 4070 $as_echo_n 0123456789 >"conftest.in" 4071 while : 4072 do 4073 cat "conftest.in" "conftest.in" >"conftest.tmp" 4074 mv "conftest.tmp" "conftest.in" 4075 cp "conftest.in" "conftest.nl" 4076 $as_echo '' >> "conftest.nl" 4077 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4079 as_fn_arith $ac_count + 1 && ac_count=$as_val 4080 if test $ac_count -gt ${ac_path_SED_max-0}; then 4081 # Best one so far, save it but keep looking for a better one 4082 ac_cv_path_SED="$ac_path_SED" 4083 ac_path_SED_max=$ac_count 4084 fi 4085 # 10*(2^10) chars as input seems more than enough 4086 test $ac_count -gt 10 && break 4087 done 4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4089esac 4090 4091 $ac_path_SED_found && break 3 4092 done 4093 done 4094 done 4095IFS=$as_save_IFS 4096 if test -z "$ac_cv_path_SED"; then 4097 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4098 fi 4099else 4100 ac_cv_path_SED=$SED 4101fi 4102 4103fi 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4105$as_echo "$ac_cv_path_SED" >&6; } 4106 SED="$ac_cv_path_SED" 4107 rm -f conftest.sed 4108 4109test -z "$SED" && SED=sed 4110Xsed="$SED -e 1s/^X//" 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4123$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4124if ${ac_cv_path_GREP+:} false; then : 4125 $as_echo_n "(cached) " >&6 4126else 4127 if test -z "$GREP"; then 4128 ac_path_GREP_found=false 4129 # Loop through the user's path and test for each of PROGNAME-LIST 4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4132do 4133 IFS=$as_save_IFS 4134 test -z "$as_dir" && as_dir=. 4135 for ac_prog in grep ggrep; do 4136 for ac_exec_ext in '' $ac_executable_extensions; do 4137 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4138 as_fn_executable_p "$ac_path_GREP" || continue 4139# Check for GNU ac_path_GREP and select it if it is found. 4140 # Check for GNU $ac_path_GREP 4141case `"$ac_path_GREP" --version 2>&1` in 4142*GNU*) 4143 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4144*) 4145 ac_count=0 4146 $as_echo_n 0123456789 >"conftest.in" 4147 while : 4148 do 4149 cat "conftest.in" "conftest.in" >"conftest.tmp" 4150 mv "conftest.tmp" "conftest.in" 4151 cp "conftest.in" "conftest.nl" 4152 $as_echo 'GREP' >> "conftest.nl" 4153 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4155 as_fn_arith $ac_count + 1 && ac_count=$as_val 4156 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4157 # Best one so far, save it but keep looking for a better one 4158 ac_cv_path_GREP="$ac_path_GREP" 4159 ac_path_GREP_max=$ac_count 4160 fi 4161 # 10*(2^10) chars as input seems more than enough 4162 test $ac_count -gt 10 && break 4163 done 4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4165esac 4166 4167 $ac_path_GREP_found && break 3 4168 done 4169 done 4170 done 4171IFS=$as_save_IFS 4172 if test -z "$ac_cv_path_GREP"; then 4173 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4174 fi 4175else 4176 ac_cv_path_GREP=$GREP 4177fi 4178 4179fi 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4181$as_echo "$ac_cv_path_GREP" >&6; } 4182 GREP="$ac_cv_path_GREP" 4183 4184 4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4186$as_echo_n "checking for egrep... " >&6; } 4187if ${ac_cv_path_EGREP+:} false; then : 4188 $as_echo_n "(cached) " >&6 4189else 4190 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4191 then ac_cv_path_EGREP="$GREP -E" 4192 else 4193 if test -z "$EGREP"; then 4194 ac_path_EGREP_found=false 4195 # Loop through the user's path and test for each of PROGNAME-LIST 4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4197for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4198do 4199 IFS=$as_save_IFS 4200 test -z "$as_dir" && as_dir=. 4201 for ac_prog in egrep; do 4202 for ac_exec_ext in '' $ac_executable_extensions; do 4203 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4204 as_fn_executable_p "$ac_path_EGREP" || continue 4205# Check for GNU ac_path_EGREP and select it if it is found. 4206 # Check for GNU $ac_path_EGREP 4207case `"$ac_path_EGREP" --version 2>&1` in 4208*GNU*) 4209 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4210*) 4211 ac_count=0 4212 $as_echo_n 0123456789 >"conftest.in" 4213 while : 4214 do 4215 cat "conftest.in" "conftest.in" >"conftest.tmp" 4216 mv "conftest.tmp" "conftest.in" 4217 cp "conftest.in" "conftest.nl" 4218 $as_echo 'EGREP' >> "conftest.nl" 4219 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4221 as_fn_arith $ac_count + 1 && ac_count=$as_val 4222 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4223 # Best one so far, save it but keep looking for a better one 4224 ac_cv_path_EGREP="$ac_path_EGREP" 4225 ac_path_EGREP_max=$ac_count 4226 fi 4227 # 10*(2^10) chars as input seems more than enough 4228 test $ac_count -gt 10 && break 4229 done 4230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4231esac 4232 4233 $ac_path_EGREP_found && break 3 4234 done 4235 done 4236 done 4237IFS=$as_save_IFS 4238 if test -z "$ac_cv_path_EGREP"; then 4239 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4240 fi 4241else 4242 ac_cv_path_EGREP=$EGREP 4243fi 4244 4245 fi 4246fi 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4248$as_echo "$ac_cv_path_EGREP" >&6; } 4249 EGREP="$ac_cv_path_EGREP" 4250 4251 4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4253$as_echo_n "checking for fgrep... " >&6; } 4254if ${ac_cv_path_FGREP+:} false; then : 4255 $as_echo_n "(cached) " >&6 4256else 4257 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4258 then ac_cv_path_FGREP="$GREP -F" 4259 else 4260 if test -z "$FGREP"; then 4261 ac_path_FGREP_found=false 4262 # Loop through the user's path and test for each of PROGNAME-LIST 4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4264for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4265do 4266 IFS=$as_save_IFS 4267 test -z "$as_dir" && as_dir=. 4268 for ac_prog in fgrep; do 4269 for ac_exec_ext in '' $ac_executable_extensions; do 4270 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4271 as_fn_executable_p "$ac_path_FGREP" || continue 4272# Check for GNU ac_path_FGREP and select it if it is found. 4273 # Check for GNU $ac_path_FGREP 4274case `"$ac_path_FGREP" --version 2>&1` in 4275*GNU*) 4276 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4277*) 4278 ac_count=0 4279 $as_echo_n 0123456789 >"conftest.in" 4280 while : 4281 do 4282 cat "conftest.in" "conftest.in" >"conftest.tmp" 4283 mv "conftest.tmp" "conftest.in" 4284 cp "conftest.in" "conftest.nl" 4285 $as_echo 'FGREP' >> "conftest.nl" 4286 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4288 as_fn_arith $ac_count + 1 && ac_count=$as_val 4289 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4290 # Best one so far, save it but keep looking for a better one 4291 ac_cv_path_FGREP="$ac_path_FGREP" 4292 ac_path_FGREP_max=$ac_count 4293 fi 4294 # 10*(2^10) chars as input seems more than enough 4295 test $ac_count -gt 10 && break 4296 done 4297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4298esac 4299 4300 $ac_path_FGREP_found && break 3 4301 done 4302 done 4303 done 4304IFS=$as_save_IFS 4305 if test -z "$ac_cv_path_FGREP"; then 4306 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4307 fi 4308else 4309 ac_cv_path_FGREP=$FGREP 4310fi 4311 4312 fi 4313fi 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4315$as_echo "$ac_cv_path_FGREP" >&6; } 4316 FGREP="$ac_cv_path_FGREP" 4317 4318 4319test -z "$GREP" && GREP=grep 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339# Check whether --with-gnu-ld was given. 4340if test "${with_gnu_ld+set}" = set; then : 4341 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4342else 4343 with_gnu_ld=no 4344fi 4345 4346ac_prog=ld 4347if test yes = "$GCC"; then 4348 # Check if gcc -print-prog-name=ld gives a path. 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4350$as_echo_n "checking for ld used by $CC... " >&6; } 4351 case $host in 4352 *-*-mingw*) 4353 # gcc leaves a trailing carriage return, which upsets mingw 4354 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4355 *) 4356 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4357 esac 4358 case $ac_prog in 4359 # Accept absolute paths. 4360 [\\/]* | ?:[\\/]*) 4361 re_direlt='/[^/][^/]*/\.\./' 4362 # Canonicalize the pathname of ld 4363 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4364 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4365 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4366 done 4367 test -z "$LD" && LD=$ac_prog 4368 ;; 4369 "") 4370 # If it fails, then pretend we aren't using GCC. 4371 ac_prog=ld 4372 ;; 4373 *) 4374 # If it is relative, then search for the first ld in PATH. 4375 with_gnu_ld=unknown 4376 ;; 4377 esac 4378elif test yes = "$with_gnu_ld"; then 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4380$as_echo_n "checking for GNU ld... " >&6; } 4381else 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4383$as_echo_n "checking for non-GNU ld... " >&6; } 4384fi 4385if ${lt_cv_path_LD+:} false; then : 4386 $as_echo_n "(cached) " >&6 4387else 4388 if test -z "$LD"; then 4389 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4390 for ac_dir in $PATH; do 4391 IFS=$lt_save_ifs 4392 test -z "$ac_dir" && ac_dir=. 4393 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4394 lt_cv_path_LD=$ac_dir/$ac_prog 4395 # Check to see if the program is GNU ld. I'd rather use --version, 4396 # but apparently some variants of GNU ld only accept -v. 4397 # Break only if it was the GNU/non-GNU ld that we prefer. 4398 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4399 *GNU* | *'with BFD'*) 4400 test no != "$with_gnu_ld" && break 4401 ;; 4402 *) 4403 test yes != "$with_gnu_ld" && break 4404 ;; 4405 esac 4406 fi 4407 done 4408 IFS=$lt_save_ifs 4409else 4410 lt_cv_path_LD=$LD # Let the user override the test with a path. 4411fi 4412fi 4413 4414LD=$lt_cv_path_LD 4415if test -n "$LD"; then 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4417$as_echo "$LD" >&6; } 4418else 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4420$as_echo "no" >&6; } 4421fi 4422test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4424$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4425if ${lt_cv_prog_gnu_ld+:} false; then : 4426 $as_echo_n "(cached) " >&6 4427else 4428 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4429case `$LD -v 2>&1 </dev/null` in 4430*GNU* | *'with BFD'*) 4431 lt_cv_prog_gnu_ld=yes 4432 ;; 4433*) 4434 lt_cv_prog_gnu_ld=no 4435 ;; 4436esac 4437fi 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4439$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4440with_gnu_ld=$lt_cv_prog_gnu_ld 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4451$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4452if ${lt_cv_path_NM+:} false; then : 4453 $as_echo_n "(cached) " >&6 4454else 4455 if test -n "$NM"; then 4456 # Let the user override the test. 4457 lt_cv_path_NM=$NM 4458else 4459 lt_nm_to_check=${ac_tool_prefix}nm 4460 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4461 lt_nm_to_check="$lt_nm_to_check nm" 4462 fi 4463 for lt_tmp_nm in $lt_nm_to_check; do 4464 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4465 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4466 IFS=$lt_save_ifs 4467 test -z "$ac_dir" && ac_dir=. 4468 tmp_nm=$ac_dir/$lt_tmp_nm 4469 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4470 # Check to see if the nm accepts a BSD-compat flag. 4471 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4472 # nm: unknown option "B" ignored 4473 # Tru64's nm complains that /dev/null is an invalid object file 4474 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4475 case $build_os in 4476 mingw*) lt_bad_file=conftest.nm/nofile ;; 4477 *) lt_bad_file=/dev/null ;; 4478 esac 4479 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4480 *$lt_bad_file* | *'Invalid file or object type'*) 4481 lt_cv_path_NM="$tmp_nm -B" 4482 break 2 4483 ;; 4484 *) 4485 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4486 */dev/null*) 4487 lt_cv_path_NM="$tmp_nm -p" 4488 break 2 4489 ;; 4490 *) 4491 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4492 continue # so that we can try to find one that supports BSD flags 4493 ;; 4494 esac 4495 ;; 4496 esac 4497 fi 4498 done 4499 IFS=$lt_save_ifs 4500 done 4501 : ${lt_cv_path_NM=no} 4502fi 4503fi 4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4505$as_echo "$lt_cv_path_NM" >&6; } 4506if test no != "$lt_cv_path_NM"; then 4507 NM=$lt_cv_path_NM 4508else 4509 # Didn't find any BSD compatible name lister, look for dumpbin. 4510 if test -n "$DUMPBIN"; then : 4511 # Let the user override the test. 4512 else 4513 if test -n "$ac_tool_prefix"; then 4514 for ac_prog in dumpbin "link -dump" 4515 do 4516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4517set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4519$as_echo_n "checking for $ac_word... " >&6; } 4520if ${ac_cv_prog_DUMPBIN+:} false; then : 4521 $as_echo_n "(cached) " >&6 4522else 4523 if test -n "$DUMPBIN"; then 4524 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4525else 4526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4527for as_dir in $PATH 4528do 4529 IFS=$as_save_IFS 4530 test -z "$as_dir" && as_dir=. 4531 for ac_exec_ext in '' $ac_executable_extensions; do 4532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4533 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4535 break 2 4536 fi 4537done 4538 done 4539IFS=$as_save_IFS 4540 4541fi 4542fi 4543DUMPBIN=$ac_cv_prog_DUMPBIN 4544if test -n "$DUMPBIN"; then 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4546$as_echo "$DUMPBIN" >&6; } 4547else 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4549$as_echo "no" >&6; } 4550fi 4551 4552 4553 test -n "$DUMPBIN" && break 4554 done 4555fi 4556if test -z "$DUMPBIN"; then 4557 ac_ct_DUMPBIN=$DUMPBIN 4558 for ac_prog in dumpbin "link -dump" 4559do 4560 # Extract the first word of "$ac_prog", so it can be a program name with args. 4561set dummy $ac_prog; ac_word=$2 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4563$as_echo_n "checking for $ac_word... " >&6; } 4564if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4565 $as_echo_n "(cached) " >&6 4566else 4567 if test -n "$ac_ct_DUMPBIN"; then 4568 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4569else 4570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4571for as_dir in $PATH 4572do 4573 IFS=$as_save_IFS 4574 test -z "$as_dir" && as_dir=. 4575 for ac_exec_ext in '' $ac_executable_extensions; do 4576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4577 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4579 break 2 4580 fi 4581done 4582 done 4583IFS=$as_save_IFS 4584 4585fi 4586fi 4587ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4588if test -n "$ac_ct_DUMPBIN"; then 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4590$as_echo "$ac_ct_DUMPBIN" >&6; } 4591else 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4593$as_echo "no" >&6; } 4594fi 4595 4596 4597 test -n "$ac_ct_DUMPBIN" && break 4598done 4599 4600 if test "x$ac_ct_DUMPBIN" = x; then 4601 DUMPBIN=":" 4602 else 4603 case $cross_compiling:$ac_tool_warned in 4604yes:) 4605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4607ac_tool_warned=yes ;; 4608esac 4609 DUMPBIN=$ac_ct_DUMPBIN 4610 fi 4611fi 4612 4613 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4614 *COFF*) 4615 DUMPBIN="$DUMPBIN -symbols -headers" 4616 ;; 4617 *) 4618 DUMPBIN=: 4619 ;; 4620 esac 4621 fi 4622 4623 if test : != "$DUMPBIN"; then 4624 NM=$DUMPBIN 4625 fi 4626fi 4627test -z "$NM" && NM=nm 4628 4629 4630 4631 4632 4633 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4635$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4636if ${lt_cv_nm_interface+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 lt_cv_nm_interface="BSD nm" 4640 echo "int some_variable = 0;" > conftest.$ac_ext 4641 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4642 (eval "$ac_compile" 2>conftest.err) 4643 cat conftest.err >&5 4644 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4645 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4646 cat conftest.err >&5 4647 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4648 cat conftest.out >&5 4649 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4650 lt_cv_nm_interface="MS dumpbin" 4651 fi 4652 rm -f conftest* 4653fi 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4655$as_echo "$lt_cv_nm_interface" >&6; } 4656 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4658$as_echo_n "checking whether ln -s works... " >&6; } 4659LN_S=$as_ln_s 4660if test "$LN_S" = "ln -s"; then 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4662$as_echo "yes" >&6; } 4663else 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4665$as_echo "no, using $LN_S" >&6; } 4666fi 4667 4668# find the maximum length of command line arguments 4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4670$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4671if ${lt_cv_sys_max_cmd_len+:} false; then : 4672 $as_echo_n "(cached) " >&6 4673else 4674 i=0 4675 teststring=ABCD 4676 4677 case $build_os in 4678 msdosdjgpp*) 4679 # On DJGPP, this test can blow up pretty badly due to problems in libc 4680 # (any single argument exceeding 2000 bytes causes a buffer overrun 4681 # during glob expansion). Even if it were fixed, the result of this 4682 # check would be larger than it should be. 4683 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4684 ;; 4685 4686 gnu*) 4687 # Under GNU Hurd, this test is not required because there is 4688 # no limit to the length of command line arguments. 4689 # Libtool will interpret -1 as no limit whatsoever 4690 lt_cv_sys_max_cmd_len=-1; 4691 ;; 4692 4693 cygwin* | mingw* | cegcc*) 4694 # On Win9x/ME, this test blows up -- it succeeds, but takes 4695 # about 5 minutes as the teststring grows exponentially. 4696 # Worse, since 9x/ME are not pre-emptively multitasking, 4697 # you end up with a "frozen" computer, even though with patience 4698 # the test eventually succeeds (with a max line length of 256k). 4699 # Instead, let's just punt: use the minimum linelength reported by 4700 # all of the supported platforms: 8192 (on NT/2K/XP). 4701 lt_cv_sys_max_cmd_len=8192; 4702 ;; 4703 4704 mint*) 4705 # On MiNT this can take a long time and run out of memory. 4706 lt_cv_sys_max_cmd_len=8192; 4707 ;; 4708 4709 amigaos*) 4710 # On AmigaOS with pdksh, this test takes hours, literally. 4711 # So we just punt and use a minimum line length of 8192. 4712 lt_cv_sys_max_cmd_len=8192; 4713 ;; 4714 4715 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4716 # This has been around since 386BSD, at least. Likely further. 4717 if test -x /sbin/sysctl; then 4718 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4719 elif test -x /usr/sbin/sysctl; then 4720 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4721 else 4722 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4723 fi 4724 # And add a safety zone 4725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4727 ;; 4728 4729 interix*) 4730 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4731 lt_cv_sys_max_cmd_len=196608 4732 ;; 4733 4734 os2*) 4735 # The test takes a long time on OS/2. 4736 lt_cv_sys_max_cmd_len=8192 4737 ;; 4738 4739 osf*) 4740 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4741 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4742 # nice to cause kernel panics so lets avoid the loop below. 4743 # First set a reasonable default. 4744 lt_cv_sys_max_cmd_len=16384 4745 # 4746 if test -x /sbin/sysconfig; then 4747 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4748 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4749 esac 4750 fi 4751 ;; 4752 sco3.2v5*) 4753 lt_cv_sys_max_cmd_len=102400 4754 ;; 4755 sysv5* | sco5v6* | sysv4.2uw2*) 4756 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4757 if test -n "$kargmax"; then 4758 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4759 else 4760 lt_cv_sys_max_cmd_len=32768 4761 fi 4762 ;; 4763 *) 4764 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4765 if test -n "$lt_cv_sys_max_cmd_len" && \ 4766 test undefined != "$lt_cv_sys_max_cmd_len"; then 4767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4769 else 4770 # Make teststring a little bigger before we do anything with it. 4771 # a 1K string should be a reasonable start. 4772 for i in 1 2 3 4 5 6 7 8; do 4773 teststring=$teststring$teststring 4774 done 4775 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4776 # If test is not a shell built-in, we'll probably end up computing a 4777 # maximum length that is only half of the actual maximum length, but 4778 # we can't tell. 4779 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4780 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4781 test 17 != "$i" # 1/2 MB should be enough 4782 do 4783 i=`expr $i + 1` 4784 teststring=$teststring$teststring 4785 done 4786 # Only check the string length outside the loop. 4787 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4788 teststring= 4789 # Add a significant safety factor because C++ compilers can tack on 4790 # massive amounts of additional arguments before passing them to the 4791 # linker. It appears as though 1/2 is a usable value. 4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4793 fi 4794 ;; 4795 esac 4796 4797fi 4798 4799if test -n "$lt_cv_sys_max_cmd_len"; then 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4801$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4802else 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4804$as_echo "none" >&6; } 4805fi 4806max_cmd_len=$lt_cv_sys_max_cmd_len 4807 4808 4809 4810 4811 4812 4813: ${CP="cp -f"} 4814: ${MV="mv -f"} 4815: ${RM="rm -f"} 4816 4817if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4818 lt_unset=unset 4819else 4820 lt_unset=false 4821fi 4822 4823 4824 4825 4826 4827# test EBCDIC or ASCII 4828case `echo X|tr X '\101'` in 4829 A) # ASCII based system 4830 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4831 lt_SP2NL='tr \040 \012' 4832 lt_NL2SP='tr \015\012 \040\040' 4833 ;; 4834 *) # EBCDIC based system 4835 lt_SP2NL='tr \100 \n' 4836 lt_NL2SP='tr \r\n \100\100' 4837 ;; 4838esac 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4849$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4850if ${lt_cv_to_host_file_cmd+:} false; then : 4851 $as_echo_n "(cached) " >&6 4852else 4853 case $host in 4854 *-*-mingw* ) 4855 case $build in 4856 *-*-mingw* ) # actually msys 4857 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4858 ;; 4859 *-*-cygwin* ) 4860 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4861 ;; 4862 * ) # otherwise, assume *nix 4863 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4864 ;; 4865 esac 4866 ;; 4867 *-*-cygwin* ) 4868 case $build in 4869 *-*-mingw* ) # actually msys 4870 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4871 ;; 4872 *-*-cygwin* ) 4873 lt_cv_to_host_file_cmd=func_convert_file_noop 4874 ;; 4875 * ) # otherwise, assume *nix 4876 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4877 ;; 4878 esac 4879 ;; 4880 * ) # unhandled hosts (and "normal" native builds) 4881 lt_cv_to_host_file_cmd=func_convert_file_noop 4882 ;; 4883esac 4884 4885fi 4886 4887to_host_file_cmd=$lt_cv_to_host_file_cmd 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4889$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4890 4891 4892 4893 4894 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4896$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4897if ${lt_cv_to_tool_file_cmd+:} false; then : 4898 $as_echo_n "(cached) " >&6 4899else 4900 #assume ordinary cross tools, or native build. 4901lt_cv_to_tool_file_cmd=func_convert_file_noop 4902case $host in 4903 *-*-mingw* ) 4904 case $build in 4905 *-*-mingw* ) # actually msys 4906 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4907 ;; 4908 esac 4909 ;; 4910esac 4911 4912fi 4913 4914to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4916$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4917 4918 4919 4920 4921 4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4923$as_echo_n "checking for $LD option to reload object files... " >&6; } 4924if ${lt_cv_ld_reload_flag+:} false; then : 4925 $as_echo_n "(cached) " >&6 4926else 4927 lt_cv_ld_reload_flag='-r' 4928fi 4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4930$as_echo "$lt_cv_ld_reload_flag" >&6; } 4931reload_flag=$lt_cv_ld_reload_flag 4932case $reload_flag in 4933"" | " "*) ;; 4934*) reload_flag=" $reload_flag" ;; 4935esac 4936reload_cmds='$LD$reload_flag -o $output$reload_objs' 4937case $host_os in 4938 cygwin* | mingw* | pw32* | cegcc*) 4939 if test yes != "$GCC"; then 4940 reload_cmds=false 4941 fi 4942 ;; 4943 darwin*) 4944 if test yes = "$GCC"; then 4945 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4946 else 4947 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4948 fi 4949 ;; 4950esac 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960if test -n "$ac_tool_prefix"; then 4961 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4962set dummy ${ac_tool_prefix}objdump; ac_word=$2 4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4964$as_echo_n "checking for $ac_word... " >&6; } 4965if ${ac_cv_prog_OBJDUMP+:} false; then : 4966 $as_echo_n "(cached) " >&6 4967else 4968 if test -n "$OBJDUMP"; then 4969 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4970else 4971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4972for as_dir in $PATH 4973do 4974 IFS=$as_save_IFS 4975 test -z "$as_dir" && as_dir=. 4976 for ac_exec_ext in '' $ac_executable_extensions; do 4977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4978 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4980 break 2 4981 fi 4982done 4983 done 4984IFS=$as_save_IFS 4985 4986fi 4987fi 4988OBJDUMP=$ac_cv_prog_OBJDUMP 4989if test -n "$OBJDUMP"; then 4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4991$as_echo "$OBJDUMP" >&6; } 4992else 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4994$as_echo "no" >&6; } 4995fi 4996 4997 4998fi 4999if test -z "$ac_cv_prog_OBJDUMP"; then 5000 ac_ct_OBJDUMP=$OBJDUMP 5001 # Extract the first word of "objdump", so it can be a program name with args. 5002set dummy objdump; ac_word=$2 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5004$as_echo_n "checking for $ac_word... " >&6; } 5005if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5006 $as_echo_n "(cached) " >&6 5007else 5008 if test -n "$ac_ct_OBJDUMP"; then 5009 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5010else 5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5012for as_dir in $PATH 5013do 5014 IFS=$as_save_IFS 5015 test -z "$as_dir" && as_dir=. 5016 for ac_exec_ext in '' $ac_executable_extensions; do 5017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5018 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5020 break 2 5021 fi 5022done 5023 done 5024IFS=$as_save_IFS 5025 5026fi 5027fi 5028ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5029if test -n "$ac_ct_OBJDUMP"; then 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5031$as_echo "$ac_ct_OBJDUMP" >&6; } 5032else 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5034$as_echo "no" >&6; } 5035fi 5036 5037 if test "x$ac_ct_OBJDUMP" = x; then 5038 OBJDUMP="false" 5039 else 5040 case $cross_compiling:$ac_tool_warned in 5041yes:) 5042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5044ac_tool_warned=yes ;; 5045esac 5046 OBJDUMP=$ac_ct_OBJDUMP 5047 fi 5048else 5049 OBJDUMP="$ac_cv_prog_OBJDUMP" 5050fi 5051 5052test -z "$OBJDUMP" && OBJDUMP=objdump 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5063$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5064if ${lt_cv_deplibs_check_method+:} false; then : 5065 $as_echo_n "(cached) " >&6 5066else 5067 lt_cv_file_magic_cmd='$MAGIC_CMD' 5068lt_cv_file_magic_test_file= 5069lt_cv_deplibs_check_method='unknown' 5070# Need to set the preceding variable on all platforms that support 5071# interlibrary dependencies. 5072# 'none' -- dependencies not supported. 5073# 'unknown' -- same as none, but documents that we really don't know. 5074# 'pass_all' -- all dependencies passed with no checks. 5075# 'test_compile' -- check by making test program. 5076# 'file_magic [[regex]]' -- check by looking for files in library path 5077# that responds to the $file_magic_cmd with a given extended regex. 5078# If you have 'file' or equivalent on your system and you're not sure 5079# whether 'pass_all' will *always* work, you probably want this one. 5080 5081case $host_os in 5082aix[4-9]*) 5083 lt_cv_deplibs_check_method=pass_all 5084 ;; 5085 5086beos*) 5087 lt_cv_deplibs_check_method=pass_all 5088 ;; 5089 5090bsdi[45]*) 5091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5092 lt_cv_file_magic_cmd='/usr/bin/file -L' 5093 lt_cv_file_magic_test_file=/shlib/libc.so 5094 ;; 5095 5096cygwin*) 5097 # func_win32_libid is a shell function defined in ltmain.sh 5098 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5099 lt_cv_file_magic_cmd='func_win32_libid' 5100 ;; 5101 5102mingw* | pw32*) 5103 # Base MSYS/MinGW do not provide the 'file' command needed by 5104 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5105 # unless we find 'file', for example because we are cross-compiling. 5106 if ( file / ) >/dev/null 2>&1; then 5107 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5108 lt_cv_file_magic_cmd='func_win32_libid' 5109 else 5110 # Keep this pattern in sync with the one in func_win32_libid. 5111 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5112 lt_cv_file_magic_cmd='$OBJDUMP -f' 5113 fi 5114 ;; 5115 5116cegcc*) 5117 # use the weaker test based on 'objdump'. See mingw*. 5118 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5119 lt_cv_file_magic_cmd='$OBJDUMP -f' 5120 ;; 5121 5122darwin* | rhapsody*) 5123 lt_cv_deplibs_check_method=pass_all 5124 ;; 5125 5126freebsd* | dragonfly*) 5127 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5128 case $host_cpu in 5129 i*86 ) 5130 # Not sure whether the presence of OpenBSD here was a mistake. 5131 # Let's accept both of them until this is cleared up. 5132 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5133 lt_cv_file_magic_cmd=/usr/bin/file 5134 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5135 ;; 5136 esac 5137 else 5138 lt_cv_deplibs_check_method=pass_all 5139 fi 5140 ;; 5141 5142haiku*) 5143 lt_cv_deplibs_check_method=pass_all 5144 ;; 5145 5146hpux10.20* | hpux11*) 5147 lt_cv_file_magic_cmd=/usr/bin/file 5148 case $host_cpu in 5149 ia64*) 5150 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5151 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5152 ;; 5153 hppa*64*) 5154 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]' 5155 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5156 ;; 5157 *) 5158 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5159 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5160 ;; 5161 esac 5162 ;; 5163 5164interix[3-9]*) 5165 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5167 ;; 5168 5169irix5* | irix6* | nonstopux*) 5170 case $LD in 5171 *-32|*"-32 ") libmagic=32-bit;; 5172 *-n32|*"-n32 ") libmagic=N32;; 5173 *-64|*"-64 ") libmagic=64-bit;; 5174 *) libmagic=never-match;; 5175 esac 5176 lt_cv_deplibs_check_method=pass_all 5177 ;; 5178 5179# This must be glibc/ELF. 5180linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5181 lt_cv_deplibs_check_method=pass_all 5182 ;; 5183 5184netbsd*) 5185 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5187 else 5188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5189 fi 5190 ;; 5191 5192newos6*) 5193 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5194 lt_cv_file_magic_cmd=/usr/bin/file 5195 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5196 ;; 5197 5198*nto* | *qnx*) 5199 lt_cv_deplibs_check_method=pass_all 5200 ;; 5201 5202openbsd* | bitrig*) 5203 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5205 else 5206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5207 fi 5208 ;; 5209 5210osf3* | osf4* | osf5*) 5211 lt_cv_deplibs_check_method=pass_all 5212 ;; 5213 5214rdos*) 5215 lt_cv_deplibs_check_method=pass_all 5216 ;; 5217 5218solaris*) 5219 lt_cv_deplibs_check_method=pass_all 5220 ;; 5221 5222sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5223 lt_cv_deplibs_check_method=pass_all 5224 ;; 5225 5226sysv4 | sysv4.3*) 5227 case $host_vendor in 5228 motorola) 5229 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]' 5230 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5231 ;; 5232 ncr) 5233 lt_cv_deplibs_check_method=pass_all 5234 ;; 5235 sequent) 5236 lt_cv_file_magic_cmd='/bin/file' 5237 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5238 ;; 5239 sni) 5240 lt_cv_file_magic_cmd='/bin/file' 5241 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5242 lt_cv_file_magic_test_file=/lib/libc.so 5243 ;; 5244 siemens) 5245 lt_cv_deplibs_check_method=pass_all 5246 ;; 5247 pc) 5248 lt_cv_deplibs_check_method=pass_all 5249 ;; 5250 esac 5251 ;; 5252 5253tpf*) 5254 lt_cv_deplibs_check_method=pass_all 5255 ;; 5256os2*) 5257 lt_cv_deplibs_check_method=pass_all 5258 ;; 5259esac 5260 5261fi 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5263$as_echo "$lt_cv_deplibs_check_method" >&6; } 5264 5265file_magic_glob= 5266want_nocaseglob=no 5267if test "$build" = "$host"; then 5268 case $host_os in 5269 mingw* | pw32*) 5270 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5271 want_nocaseglob=yes 5272 else 5273 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5274 fi 5275 ;; 5276 esac 5277fi 5278 5279file_magic_cmd=$lt_cv_file_magic_cmd 5280deplibs_check_method=$lt_cv_deplibs_check_method 5281test -z "$deplibs_check_method" && deplibs_check_method=unknown 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304if test -n "$ac_tool_prefix"; then 5305 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5306set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5308$as_echo_n "checking for $ac_word... " >&6; } 5309if ${ac_cv_prog_DLLTOOL+:} false; then : 5310 $as_echo_n "(cached) " >&6 5311else 5312 if test -n "$DLLTOOL"; then 5313 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5314else 5315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5316for as_dir in $PATH 5317do 5318 IFS=$as_save_IFS 5319 test -z "$as_dir" && as_dir=. 5320 for ac_exec_ext in '' $ac_executable_extensions; do 5321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5322 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5324 break 2 5325 fi 5326done 5327 done 5328IFS=$as_save_IFS 5329 5330fi 5331fi 5332DLLTOOL=$ac_cv_prog_DLLTOOL 5333if test -n "$DLLTOOL"; then 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5335$as_echo "$DLLTOOL" >&6; } 5336else 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5338$as_echo "no" >&6; } 5339fi 5340 5341 5342fi 5343if test -z "$ac_cv_prog_DLLTOOL"; then 5344 ac_ct_DLLTOOL=$DLLTOOL 5345 # Extract the first word of "dlltool", so it can be a program name with args. 5346set dummy dlltool; ac_word=$2 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5348$as_echo_n "checking for $ac_word... " >&6; } 5349if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5350 $as_echo_n "(cached) " >&6 5351else 5352 if test -n "$ac_ct_DLLTOOL"; then 5353 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5354else 5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5356for as_dir in $PATH 5357do 5358 IFS=$as_save_IFS 5359 test -z "$as_dir" && as_dir=. 5360 for ac_exec_ext in '' $ac_executable_extensions; do 5361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5362 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5364 break 2 5365 fi 5366done 5367 done 5368IFS=$as_save_IFS 5369 5370fi 5371fi 5372ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5373if test -n "$ac_ct_DLLTOOL"; then 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5375$as_echo "$ac_ct_DLLTOOL" >&6; } 5376else 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5378$as_echo "no" >&6; } 5379fi 5380 5381 if test "x$ac_ct_DLLTOOL" = x; then 5382 DLLTOOL="false" 5383 else 5384 case $cross_compiling:$ac_tool_warned in 5385yes:) 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5388ac_tool_warned=yes ;; 5389esac 5390 DLLTOOL=$ac_ct_DLLTOOL 5391 fi 5392else 5393 DLLTOOL="$ac_cv_prog_DLLTOOL" 5394fi 5395 5396test -z "$DLLTOOL" && DLLTOOL=dlltool 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5408$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5409if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5410 $as_echo_n "(cached) " >&6 5411else 5412 lt_cv_sharedlib_from_linklib_cmd='unknown' 5413 5414case $host_os in 5415cygwin* | mingw* | pw32* | cegcc*) 5416 # two different shell functions defined in ltmain.sh; 5417 # decide which one to use based on capabilities of $DLLTOOL 5418 case `$DLLTOOL --help 2>&1` in 5419 *--identify-strict*) 5420 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5421 ;; 5422 *) 5423 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5424 ;; 5425 esac 5426 ;; 5427*) 5428 # fallback: assume linklib IS sharedlib 5429 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5430 ;; 5431esac 5432 5433fi 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5435$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5436sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5437test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5438 5439 5440 5441 5442 5443 5444 5445 5446if test -n "$ac_tool_prefix"; then 5447 for ac_prog in ar 5448 do 5449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5450set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5452$as_echo_n "checking for $ac_word... " >&6; } 5453if ${ac_cv_prog_AR+:} false; then : 5454 $as_echo_n "(cached) " >&6 5455else 5456 if test -n "$AR"; then 5457 ac_cv_prog_AR="$AR" # Let the user override the test. 5458else 5459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5460for as_dir in $PATH 5461do 5462 IFS=$as_save_IFS 5463 test -z "$as_dir" && as_dir=. 5464 for ac_exec_ext in '' $ac_executable_extensions; do 5465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5466 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5468 break 2 5469 fi 5470done 5471 done 5472IFS=$as_save_IFS 5473 5474fi 5475fi 5476AR=$ac_cv_prog_AR 5477if test -n "$AR"; then 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5479$as_echo "$AR" >&6; } 5480else 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5482$as_echo "no" >&6; } 5483fi 5484 5485 5486 test -n "$AR" && break 5487 done 5488fi 5489if test -z "$AR"; then 5490 ac_ct_AR=$AR 5491 for ac_prog in ar 5492do 5493 # Extract the first word of "$ac_prog", so it can be a program name with args. 5494set dummy $ac_prog; ac_word=$2 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5496$as_echo_n "checking for $ac_word... " >&6; } 5497if ${ac_cv_prog_ac_ct_AR+:} false; then : 5498 $as_echo_n "(cached) " >&6 5499else 5500 if test -n "$ac_ct_AR"; then 5501 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5502else 5503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5504for as_dir in $PATH 5505do 5506 IFS=$as_save_IFS 5507 test -z "$as_dir" && as_dir=. 5508 for ac_exec_ext in '' $ac_executable_extensions; do 5509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5510 ac_cv_prog_ac_ct_AR="$ac_prog" 5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5512 break 2 5513 fi 5514done 5515 done 5516IFS=$as_save_IFS 5517 5518fi 5519fi 5520ac_ct_AR=$ac_cv_prog_ac_ct_AR 5521if test -n "$ac_ct_AR"; then 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5523$as_echo "$ac_ct_AR" >&6; } 5524else 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5526$as_echo "no" >&6; } 5527fi 5528 5529 5530 test -n "$ac_ct_AR" && break 5531done 5532 5533 if test "x$ac_ct_AR" = x; then 5534 AR="false" 5535 else 5536 case $cross_compiling:$ac_tool_warned in 5537yes:) 5538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5540ac_tool_warned=yes ;; 5541esac 5542 AR=$ac_ct_AR 5543 fi 5544fi 5545 5546: ${AR=ar} 5547: ${AR_FLAGS=cru} 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5560$as_echo_n "checking for archiver @FILE support... " >&6; } 5561if ${lt_cv_ar_at_file+:} false; then : 5562 $as_echo_n "(cached) " >&6 5563else 5564 lt_cv_ar_at_file=no 5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5566/* end confdefs.h. */ 5567 5568int 5569main () 5570{ 5571 5572 ; 5573 return 0; 5574} 5575_ACEOF 5576if ac_fn_c_try_compile "$LINENO"; then : 5577 echo conftest.$ac_objext > conftest.lst 5578 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5580 (eval $lt_ar_try) 2>&5 5581 ac_status=$? 5582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5583 test $ac_status = 0; } 5584 if test 0 -eq "$ac_status"; then 5585 # Ensure the archiver fails upon bogus file names. 5586 rm -f conftest.$ac_objext libconftest.a 5587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5588 (eval $lt_ar_try) 2>&5 5589 ac_status=$? 5590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5591 test $ac_status = 0; } 5592 if test 0 -ne "$ac_status"; then 5593 lt_cv_ar_at_file=@ 5594 fi 5595 fi 5596 rm -f conftest.* libconftest.a 5597 5598fi 5599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5600 5601fi 5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5603$as_echo "$lt_cv_ar_at_file" >&6; } 5604 5605if test no = "$lt_cv_ar_at_file"; then 5606 archiver_list_spec= 5607else 5608 archiver_list_spec=$lt_cv_ar_at_file 5609fi 5610 5611 5612 5613 5614 5615 5616 5617if test -n "$ac_tool_prefix"; then 5618 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5619set dummy ${ac_tool_prefix}strip; ac_word=$2 5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5621$as_echo_n "checking for $ac_word... " >&6; } 5622if ${ac_cv_prog_STRIP+:} false; then : 5623 $as_echo_n "(cached) " >&6 5624else 5625 if test -n "$STRIP"; then 5626 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5627else 5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5629for as_dir in $PATH 5630do 5631 IFS=$as_save_IFS 5632 test -z "$as_dir" && as_dir=. 5633 for ac_exec_ext in '' $ac_executable_extensions; do 5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5635 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5637 break 2 5638 fi 5639done 5640 done 5641IFS=$as_save_IFS 5642 5643fi 5644fi 5645STRIP=$ac_cv_prog_STRIP 5646if test -n "$STRIP"; then 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5648$as_echo "$STRIP" >&6; } 5649else 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5651$as_echo "no" >&6; } 5652fi 5653 5654 5655fi 5656if test -z "$ac_cv_prog_STRIP"; then 5657 ac_ct_STRIP=$STRIP 5658 # Extract the first word of "strip", so it can be a program name with args. 5659set dummy strip; ac_word=$2 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5661$as_echo_n "checking for $ac_word... " >&6; } 5662if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 if test -n "$ac_ct_STRIP"; then 5666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5667else 5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5669for as_dir in $PATH 5670do 5671 IFS=$as_save_IFS 5672 test -z "$as_dir" && as_dir=. 5673 for ac_exec_ext in '' $ac_executable_extensions; do 5674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5675 ac_cv_prog_ac_ct_STRIP="strip" 5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5677 break 2 5678 fi 5679done 5680 done 5681IFS=$as_save_IFS 5682 5683fi 5684fi 5685ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5686if test -n "$ac_ct_STRIP"; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5688$as_echo "$ac_ct_STRIP" >&6; } 5689else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5691$as_echo "no" >&6; } 5692fi 5693 5694 if test "x$ac_ct_STRIP" = x; then 5695 STRIP=":" 5696 else 5697 case $cross_compiling:$ac_tool_warned in 5698yes:) 5699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5701ac_tool_warned=yes ;; 5702esac 5703 STRIP=$ac_ct_STRIP 5704 fi 5705else 5706 STRIP="$ac_cv_prog_STRIP" 5707fi 5708 5709test -z "$STRIP" && STRIP=: 5710 5711 5712 5713 5714 5715 5716if test -n "$ac_tool_prefix"; then 5717 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5718set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5720$as_echo_n "checking for $ac_word... " >&6; } 5721if ${ac_cv_prog_RANLIB+:} false; then : 5722 $as_echo_n "(cached) " >&6 5723else 5724 if test -n "$RANLIB"; then 5725 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5726else 5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5728for as_dir in $PATH 5729do 5730 IFS=$as_save_IFS 5731 test -z "$as_dir" && as_dir=. 5732 for ac_exec_ext in '' $ac_executable_extensions; do 5733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5734 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5736 break 2 5737 fi 5738done 5739 done 5740IFS=$as_save_IFS 5741 5742fi 5743fi 5744RANLIB=$ac_cv_prog_RANLIB 5745if test -n "$RANLIB"; then 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5747$as_echo "$RANLIB" >&6; } 5748else 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5750$as_echo "no" >&6; } 5751fi 5752 5753 5754fi 5755if test -z "$ac_cv_prog_RANLIB"; then 5756 ac_ct_RANLIB=$RANLIB 5757 # Extract the first word of "ranlib", so it can be a program name with args. 5758set dummy ranlib; ac_word=$2 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5760$as_echo_n "checking for $ac_word... " >&6; } 5761if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5762 $as_echo_n "(cached) " >&6 5763else 5764 if test -n "$ac_ct_RANLIB"; then 5765 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5766else 5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768for as_dir in $PATH 5769do 5770 IFS=$as_save_IFS 5771 test -z "$as_dir" && as_dir=. 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5774 ac_cv_prog_ac_ct_RANLIB="ranlib" 5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778done 5779 done 5780IFS=$as_save_IFS 5781 5782fi 5783fi 5784ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5785if test -n "$ac_ct_RANLIB"; then 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5787$as_echo "$ac_ct_RANLIB" >&6; } 5788else 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5790$as_echo "no" >&6; } 5791fi 5792 5793 if test "x$ac_ct_RANLIB" = x; then 5794 RANLIB=":" 5795 else 5796 case $cross_compiling:$ac_tool_warned in 5797yes:) 5798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5800ac_tool_warned=yes ;; 5801esac 5802 RANLIB=$ac_ct_RANLIB 5803 fi 5804else 5805 RANLIB="$ac_cv_prog_RANLIB" 5806fi 5807 5808test -z "$RANLIB" && RANLIB=: 5809 5810 5811 5812 5813 5814 5815# Determine commands to create old-style static archives. 5816old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5817old_postinstall_cmds='chmod 644 $oldlib' 5818old_postuninstall_cmds= 5819 5820if test -n "$RANLIB"; then 5821 case $host_os in 5822 bitrig* | openbsd*) 5823 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5824 ;; 5825 *) 5826 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5827 ;; 5828 esac 5829 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5830fi 5831 5832case $host_os in 5833 darwin*) 5834 lock_old_archive_extraction=yes ;; 5835 *) 5836 lock_old_archive_extraction=no ;; 5837esac 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877# If no C compiler was specified, use CC. 5878LTCC=${LTCC-"$CC"} 5879 5880# If no C compiler flags were specified, use CFLAGS. 5881LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5882 5883# Allow CC to be a program name with arguments. 5884compiler=$CC 5885 5886 5887# Check for command to grab the raw symbol name followed by C symbol from nm. 5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5889$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5890if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5891 $as_echo_n "(cached) " >&6 5892else 5893 5894# These are sane defaults that work on at least a few old systems. 5895# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5896 5897# Character class describing NM global symbol codes. 5898symcode='[BCDEGRST]' 5899 5900# Regexp to match symbols that can be accessed directly from C. 5901sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5902 5903# Define system-specific variables. 5904case $host_os in 5905aix*) 5906 symcode='[BCDT]' 5907 ;; 5908cygwin* | mingw* | pw32* | cegcc*) 5909 symcode='[ABCDGISTW]' 5910 ;; 5911hpux*) 5912 if test ia64 = "$host_cpu"; then 5913 symcode='[ABCDEGRST]' 5914 fi 5915 ;; 5916irix* | nonstopux*) 5917 symcode='[BCDEGRST]' 5918 ;; 5919osf*) 5920 symcode='[BCDEGQRST]' 5921 ;; 5922solaris*) 5923 symcode='[BDRT]' 5924 ;; 5925sco3.2v5*) 5926 symcode='[DT]' 5927 ;; 5928sysv4.2uw2*) 5929 symcode='[DT]' 5930 ;; 5931sysv5* | sco5v6* | unixware* | OpenUNIX*) 5932 symcode='[ABDT]' 5933 ;; 5934sysv4) 5935 symcode='[DFNSTU]' 5936 ;; 5937esac 5938 5939# If we're using GNU nm, then use its standard symbol codes. 5940case `$NM -V 2>&1` in 5941*GNU* | *'with BFD'*) 5942 symcode='[ABCDGIRSTW]' ;; 5943esac 5944 5945if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5946 # Gets list of data symbols to import. 5947 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 5948 # Adjust the below global symbol transforms to fixup imported variables. 5949 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 5950 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 5951 lt_c_name_lib_hook="\ 5952 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 5953 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 5954else 5955 # Disable hooks by default. 5956 lt_cv_sys_global_symbol_to_import= 5957 lt_cdecl_hook= 5958 lt_c_name_hook= 5959 lt_c_name_lib_hook= 5960fi 5961 5962# Transform an extracted symbol line into a proper C declaration. 5963# Some systems (esp. on ia64) link data and code symbols differently, 5964# so use this general approach. 5965lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 5966$lt_cdecl_hook\ 5967" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 5968" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 5969 5970# Transform an extracted symbol line into symbol name and symbol address 5971lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 5972$lt_c_name_hook\ 5973" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5974" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 5975 5976# Transform an extracted symbol line into symbol name with lib prefix and 5977# symbol address. 5978lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 5979$lt_c_name_lib_hook\ 5980" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5981" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 5982" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 5983 5984# Handle CRLF in mingw tool chain 5985opt_cr= 5986case $build_os in 5987mingw*) 5988 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5989 ;; 5990esac 5991 5992# Try without a prefix underscore, then with it. 5993for ac_symprfx in "" "_"; do 5994 5995 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5996 symxfrm="\\1 $ac_symprfx\\2 \\2" 5997 5998 # Write the raw and C identifiers. 5999 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6000 # Fake it for dumpbin and say T for any non-static function, 6001 # D for any global variable and I for any imported variable. 6002 # Also find C++ and __fastcall symbols from MSVC++, 6003 # which start with @ or ?. 6004 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6005" {last_section=section; section=\$ 3};"\ 6006" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6007" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6008" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6009" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6010" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6011" \$ 0!~/External *\|/{next};"\ 6012" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6013" {if(hide[section]) next};"\ 6014" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6015" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6016" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6017" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6018" ' prfx=^$ac_symprfx" 6019 else 6020 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6021 fi 6022 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6023 6024 # Check to see that the pipe works correctly. 6025 pipe_works=no 6026 6027 rm -f conftest* 6028 cat > conftest.$ac_ext <<_LT_EOF 6029#ifdef __cplusplus 6030extern "C" { 6031#endif 6032char nm_test_var; 6033void nm_test_func(void); 6034void nm_test_func(void){} 6035#ifdef __cplusplus 6036} 6037#endif 6038int main(){nm_test_var='a';nm_test_func();return(0);} 6039_LT_EOF 6040 6041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6042 (eval $ac_compile) 2>&5 6043 ac_status=$? 6044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6045 test $ac_status = 0; }; then 6046 # Now try to grab the symbols. 6047 nlist=conftest.nm 6048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6049 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6050 ac_status=$? 6051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6052 test $ac_status = 0; } && test -s "$nlist"; then 6053 # Try sorting and uniquifying the output. 6054 if sort "$nlist" | uniq > "$nlist"T; then 6055 mv -f "$nlist"T "$nlist" 6056 else 6057 rm -f "$nlist"T 6058 fi 6059 6060 # Make sure that we snagged all the symbols we need. 6061 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6062 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6063 cat <<_LT_EOF > conftest.$ac_ext 6064/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6065#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6066/* DATA imports from DLLs on WIN32 can't be const, because runtime 6067 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6068# define LT_DLSYM_CONST 6069#elif defined __osf__ 6070/* This system does not cope well with relocations in const data. */ 6071# define LT_DLSYM_CONST 6072#else 6073# define LT_DLSYM_CONST const 6074#endif 6075 6076#ifdef __cplusplus 6077extern "C" { 6078#endif 6079 6080_LT_EOF 6081 # Now generate the symbol file. 6082 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6083 6084 cat <<_LT_EOF >> conftest.$ac_ext 6085 6086/* The mapping between symbol names and symbols. */ 6087LT_DLSYM_CONST struct { 6088 const char *name; 6089 void *address; 6090} 6091lt__PROGRAM__LTX_preloaded_symbols[] = 6092{ 6093 { "@PROGRAM@", (void *) 0 }, 6094_LT_EOF 6095 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6096 cat <<\_LT_EOF >> conftest.$ac_ext 6097 {0, (void *) 0} 6098}; 6099 6100/* This works around a problem in FreeBSD linker */ 6101#ifdef FREEBSD_WORKAROUND 6102static const void *lt_preloaded_setup() { 6103 return lt__PROGRAM__LTX_preloaded_symbols; 6104} 6105#endif 6106 6107#ifdef __cplusplus 6108} 6109#endif 6110_LT_EOF 6111 # Now try linking the two files. 6112 mv conftest.$ac_objext conftstm.$ac_objext 6113 lt_globsym_save_LIBS=$LIBS 6114 lt_globsym_save_CFLAGS=$CFLAGS 6115 LIBS=conftstm.$ac_objext 6116 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6118 (eval $ac_link) 2>&5 6119 ac_status=$? 6120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6121 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6122 pipe_works=yes 6123 fi 6124 LIBS=$lt_globsym_save_LIBS 6125 CFLAGS=$lt_globsym_save_CFLAGS 6126 else 6127 echo "cannot find nm_test_func in $nlist" >&5 6128 fi 6129 else 6130 echo "cannot find nm_test_var in $nlist" >&5 6131 fi 6132 else 6133 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6134 fi 6135 else 6136 echo "$progname: failed program was:" >&5 6137 cat conftest.$ac_ext >&5 6138 fi 6139 rm -rf conftest* conftst* 6140 6141 # Do not use the global_symbol_pipe unless it works. 6142 if test yes = "$pipe_works"; then 6143 break 6144 else 6145 lt_cv_sys_global_symbol_pipe= 6146 fi 6147done 6148 6149fi 6150 6151if test -z "$lt_cv_sys_global_symbol_pipe"; then 6152 lt_cv_sys_global_symbol_to_cdecl= 6153fi 6154if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6156$as_echo "failed" >&6; } 6157else 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6159$as_echo "ok" >&6; } 6160fi 6161 6162# Response file support. 6163if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6164 nm_file_list_spec='@' 6165elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6166 nm_file_list_spec='@' 6167fi 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6206$as_echo_n "checking for sysroot... " >&6; } 6207 6208# Check whether --with-sysroot was given. 6209if test "${with_sysroot+set}" = set; then : 6210 withval=$with_sysroot; 6211else 6212 with_sysroot=no 6213fi 6214 6215 6216lt_sysroot= 6217case $with_sysroot in #( 6218 yes) 6219 if test yes = "$GCC"; then 6220 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6221 fi 6222 ;; #( 6223 /*) 6224 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6225 ;; #( 6226 no|'') 6227 ;; #( 6228 *) 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6230$as_echo "$with_sysroot" >&6; } 6231 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6232 ;; 6233esac 6234 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6236$as_echo "${lt_sysroot:-no}" >&6; } 6237 6238 6239 6240 6241 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6243$as_echo_n "checking for a working dd... " >&6; } 6244if ${ac_cv_path_lt_DD+:} false; then : 6245 $as_echo_n "(cached) " >&6 6246else 6247 printf 0123456789abcdef0123456789abcdef >conftest.i 6248cat conftest.i conftest.i >conftest2.i 6249: ${lt_DD:=$DD} 6250if test -z "$lt_DD"; then 6251 ac_path_lt_DD_found=false 6252 # Loop through the user's path and test for each of PROGNAME-LIST 6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6254for as_dir in $PATH 6255do 6256 IFS=$as_save_IFS 6257 test -z "$as_dir" && as_dir=. 6258 for ac_prog in dd; do 6259 for ac_exec_ext in '' $ac_executable_extensions; do 6260 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6261 as_fn_executable_p "$ac_path_lt_DD" || continue 6262if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6263 cmp -s conftest.i conftest.out \ 6264 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6265fi 6266 $ac_path_lt_DD_found && break 3 6267 done 6268 done 6269 done 6270IFS=$as_save_IFS 6271 if test -z "$ac_cv_path_lt_DD"; then 6272 : 6273 fi 6274else 6275 ac_cv_path_lt_DD=$lt_DD 6276fi 6277 6278rm -f conftest.i conftest2.i conftest.out 6279fi 6280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6281$as_echo "$ac_cv_path_lt_DD" >&6; } 6282 6283 6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6285$as_echo_n "checking how to truncate binary pipes... " >&6; } 6286if ${lt_cv_truncate_bin+:} false; then : 6287 $as_echo_n "(cached) " >&6 6288else 6289 printf 0123456789abcdef0123456789abcdef >conftest.i 6290cat conftest.i conftest.i >conftest2.i 6291lt_cv_truncate_bin= 6292if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6293 cmp -s conftest.i conftest.out \ 6294 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6295fi 6296rm -f conftest.i conftest2.i conftest.out 6297test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6298fi 6299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6300$as_echo "$lt_cv_truncate_bin" >&6; } 6301 6302 6303 6304 6305 6306 6307 6308# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6309func_cc_basename () 6310{ 6311 for cc_temp in $*""; do 6312 case $cc_temp in 6313 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6314 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6315 \-*) ;; 6316 *) break;; 6317 esac 6318 done 6319 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6320} 6321 6322# Check whether --enable-libtool-lock was given. 6323if test "${enable_libtool_lock+set}" = set; then : 6324 enableval=$enable_libtool_lock; 6325fi 6326 6327test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6328 6329# Some flags need to be propagated to the compiler or linker for good 6330# libtool support. 6331case $host in 6332ia64-*-hpux*) 6333 # Find out what ABI is being produced by ac_compile, and set mode 6334 # options accordingly. 6335 echo 'int i;' > conftest.$ac_ext 6336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6337 (eval $ac_compile) 2>&5 6338 ac_status=$? 6339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6340 test $ac_status = 0; }; then 6341 case `/usr/bin/file conftest.$ac_objext` in 6342 *ELF-32*) 6343 HPUX_IA64_MODE=32 6344 ;; 6345 *ELF-64*) 6346 HPUX_IA64_MODE=64 6347 ;; 6348 esac 6349 fi 6350 rm -rf conftest* 6351 ;; 6352*-*-irix6*) 6353 # Find out what ABI is being produced by ac_compile, and set linker 6354 # options accordingly. 6355 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6357 (eval $ac_compile) 2>&5 6358 ac_status=$? 6359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6360 test $ac_status = 0; }; then 6361 if test yes = "$lt_cv_prog_gnu_ld"; then 6362 case `/usr/bin/file conftest.$ac_objext` in 6363 *32-bit*) 6364 LD="${LD-ld} -melf32bsmip" 6365 ;; 6366 *N32*) 6367 LD="${LD-ld} -melf32bmipn32" 6368 ;; 6369 *64-bit*) 6370 LD="${LD-ld} -melf64bmip" 6371 ;; 6372 esac 6373 else 6374 case `/usr/bin/file conftest.$ac_objext` in 6375 *32-bit*) 6376 LD="${LD-ld} -32" 6377 ;; 6378 *N32*) 6379 LD="${LD-ld} -n32" 6380 ;; 6381 *64-bit*) 6382 LD="${LD-ld} -64" 6383 ;; 6384 esac 6385 fi 6386 fi 6387 rm -rf conftest* 6388 ;; 6389 6390mips64*-*linux*) 6391 # Find out what ABI is being produced by ac_compile, and set linker 6392 # options accordingly. 6393 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6395 (eval $ac_compile) 2>&5 6396 ac_status=$? 6397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6398 test $ac_status = 0; }; then 6399 emul=elf 6400 case `/usr/bin/file conftest.$ac_objext` in 6401 *32-bit*) 6402 emul="${emul}32" 6403 ;; 6404 *64-bit*) 6405 emul="${emul}64" 6406 ;; 6407 esac 6408 case `/usr/bin/file conftest.$ac_objext` in 6409 *MSB*) 6410 emul="${emul}btsmip" 6411 ;; 6412 *LSB*) 6413 emul="${emul}ltsmip" 6414 ;; 6415 esac 6416 case `/usr/bin/file conftest.$ac_objext` in 6417 *N32*) 6418 emul="${emul}n32" 6419 ;; 6420 esac 6421 LD="${LD-ld} -m $emul" 6422 fi 6423 rm -rf conftest* 6424 ;; 6425 6426x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6427s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6428 # Find out what ABI is being produced by ac_compile, and set linker 6429 # options accordingly. Note that the listed cases only cover the 6430 # situations where additional linker options are needed (such as when 6431 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6432 # vice versa); the common cases where no linker options are needed do 6433 # not appear in the list. 6434 echo 'int i;' > conftest.$ac_ext 6435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6436 (eval $ac_compile) 2>&5 6437 ac_status=$? 6438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6439 test $ac_status = 0; }; then 6440 case `/usr/bin/file conftest.o` in 6441 *32-bit*) 6442 case $host in 6443 x86_64-*kfreebsd*-gnu) 6444 LD="${LD-ld} -m elf_i386_fbsd" 6445 ;; 6446 x86_64-*linux*) 6447 case `/usr/bin/file conftest.o` in 6448 *x86-64*) 6449 LD="${LD-ld} -m elf32_x86_64" 6450 ;; 6451 *) 6452 LD="${LD-ld} -m elf_i386" 6453 ;; 6454 esac 6455 ;; 6456 powerpc64le-*linux*) 6457 LD="${LD-ld} -m elf32lppclinux" 6458 ;; 6459 powerpc64-*linux*) 6460 LD="${LD-ld} -m elf32ppclinux" 6461 ;; 6462 s390x-*linux*) 6463 LD="${LD-ld} -m elf_s390" 6464 ;; 6465 sparc64-*linux*) 6466 LD="${LD-ld} -m elf32_sparc" 6467 ;; 6468 esac 6469 ;; 6470 *64-bit*) 6471 case $host in 6472 x86_64-*kfreebsd*-gnu) 6473 LD="${LD-ld} -m elf_x86_64_fbsd" 6474 ;; 6475 x86_64-*linux*) 6476 LD="${LD-ld} -m elf_x86_64" 6477 ;; 6478 powerpcle-*linux*) 6479 LD="${LD-ld} -m elf64lppc" 6480 ;; 6481 powerpc-*linux*) 6482 LD="${LD-ld} -m elf64ppc" 6483 ;; 6484 s390*-*linux*|s390*-*tpf*) 6485 LD="${LD-ld} -m elf64_s390" 6486 ;; 6487 sparc*-*linux*) 6488 LD="${LD-ld} -m elf64_sparc" 6489 ;; 6490 esac 6491 ;; 6492 esac 6493 fi 6494 rm -rf conftest* 6495 ;; 6496 6497*-*-sco3.2v5*) 6498 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6499 SAVE_CFLAGS=$CFLAGS 6500 CFLAGS="$CFLAGS -belf" 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6502$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6503if ${lt_cv_cc_needs_belf+:} false; then : 6504 $as_echo_n "(cached) " >&6 6505else 6506 ac_ext=c 6507ac_cpp='$CPP $CPPFLAGS' 6508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6510ac_compiler_gnu=$ac_cv_c_compiler_gnu 6511 6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6513/* end confdefs.h. */ 6514 6515int 6516main () 6517{ 6518 6519 ; 6520 return 0; 6521} 6522_ACEOF 6523if ac_fn_c_try_link "$LINENO"; then : 6524 lt_cv_cc_needs_belf=yes 6525else 6526 lt_cv_cc_needs_belf=no 6527fi 6528rm -f core conftest.err conftest.$ac_objext \ 6529 conftest$ac_exeext conftest.$ac_ext 6530 ac_ext=c 6531ac_cpp='$CPP $CPPFLAGS' 6532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6534ac_compiler_gnu=$ac_cv_c_compiler_gnu 6535 6536fi 6537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6538$as_echo "$lt_cv_cc_needs_belf" >&6; } 6539 if test yes != "$lt_cv_cc_needs_belf"; then 6540 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6541 CFLAGS=$SAVE_CFLAGS 6542 fi 6543 ;; 6544*-*solaris*) 6545 # Find out what ABI is being produced by ac_compile, and set linker 6546 # options accordingly. 6547 echo 'int i;' > conftest.$ac_ext 6548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6549 (eval $ac_compile) 2>&5 6550 ac_status=$? 6551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6552 test $ac_status = 0; }; then 6553 case `/usr/bin/file conftest.o` in 6554 *64-bit*) 6555 case $lt_cv_prog_gnu_ld in 6556 yes*) 6557 case $host in 6558 i?86-*-solaris*|x86_64-*-solaris*) 6559 LD="${LD-ld} -m elf_x86_64" 6560 ;; 6561 sparc*-*-solaris*) 6562 LD="${LD-ld} -m elf64_sparc" 6563 ;; 6564 esac 6565 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6566 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6567 LD=${LD-ld}_sol2 6568 fi 6569 ;; 6570 *) 6571 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6572 LD="${LD-ld} -64" 6573 fi 6574 ;; 6575 esac 6576 ;; 6577 esac 6578 fi 6579 rm -rf conftest* 6580 ;; 6581esac 6582 6583need_locks=$enable_libtool_lock 6584 6585if test -n "$ac_tool_prefix"; then 6586 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6587set dummy ${ac_tool_prefix}mt; ac_word=$2 6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6589$as_echo_n "checking for $ac_word... " >&6; } 6590if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6591 $as_echo_n "(cached) " >&6 6592else 6593 if test -n "$MANIFEST_TOOL"; then 6594 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6595else 6596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6597for as_dir in $PATH 6598do 6599 IFS=$as_save_IFS 6600 test -z "$as_dir" && as_dir=. 6601 for ac_exec_ext in '' $ac_executable_extensions; do 6602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6603 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6605 break 2 6606 fi 6607done 6608 done 6609IFS=$as_save_IFS 6610 6611fi 6612fi 6613MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6614if test -n "$MANIFEST_TOOL"; then 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6616$as_echo "$MANIFEST_TOOL" >&6; } 6617else 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6619$as_echo "no" >&6; } 6620fi 6621 6622 6623fi 6624if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6625 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6626 # Extract the first word of "mt", so it can be a program name with args. 6627set dummy mt; ac_word=$2 6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6629$as_echo_n "checking for $ac_word... " >&6; } 6630if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6631 $as_echo_n "(cached) " >&6 6632else 6633 if test -n "$ac_ct_MANIFEST_TOOL"; then 6634 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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 test -z "$as_dir" && as_dir=. 6641 for ac_exec_ext in '' $ac_executable_extensions; do 6642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6643 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6645 break 2 6646 fi 6647done 6648 done 6649IFS=$as_save_IFS 6650 6651fi 6652fi 6653ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6654if test -n "$ac_ct_MANIFEST_TOOL"; then 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6656$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6657else 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6659$as_echo "no" >&6; } 6660fi 6661 6662 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6663 MANIFEST_TOOL=":" 6664 else 6665 case $cross_compiling:$ac_tool_warned in 6666yes:) 6667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6669ac_tool_warned=yes ;; 6670esac 6671 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6672 fi 6673else 6674 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6675fi 6676 6677test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6679$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6680if ${lt_cv_path_mainfest_tool+:} false; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 lt_cv_path_mainfest_tool=no 6684 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6685 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6686 cat conftest.err >&5 6687 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6688 lt_cv_path_mainfest_tool=yes 6689 fi 6690 rm -f conftest* 6691fi 6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6693$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6694if test yes != "$lt_cv_path_mainfest_tool"; then 6695 MANIFEST_TOOL=: 6696fi 6697 6698 6699 6700 6701 6702 6703 case $host_os in 6704 rhapsody* | darwin*) 6705 if test -n "$ac_tool_prefix"; then 6706 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6707set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6709$as_echo_n "checking for $ac_word... " >&6; } 6710if ${ac_cv_prog_DSYMUTIL+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 if test -n "$DSYMUTIL"; then 6714 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6715else 6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6717for as_dir in $PATH 6718do 6719 IFS=$as_save_IFS 6720 test -z "$as_dir" && as_dir=. 6721 for ac_exec_ext in '' $ac_executable_extensions; do 6722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6723 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6725 break 2 6726 fi 6727done 6728 done 6729IFS=$as_save_IFS 6730 6731fi 6732fi 6733DSYMUTIL=$ac_cv_prog_DSYMUTIL 6734if test -n "$DSYMUTIL"; then 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6736$as_echo "$DSYMUTIL" >&6; } 6737else 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6739$as_echo "no" >&6; } 6740fi 6741 6742 6743fi 6744if test -z "$ac_cv_prog_DSYMUTIL"; then 6745 ac_ct_DSYMUTIL=$DSYMUTIL 6746 # Extract the first word of "dsymutil", so it can be a program name with args. 6747set dummy dsymutil; ac_word=$2 6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6749$as_echo_n "checking for $ac_word... " >&6; } 6750if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6751 $as_echo_n "(cached) " >&6 6752else 6753 if test -n "$ac_ct_DSYMUTIL"; then 6754 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6755else 6756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6757for as_dir in $PATH 6758do 6759 IFS=$as_save_IFS 6760 test -z "$as_dir" && as_dir=. 6761 for ac_exec_ext in '' $ac_executable_extensions; do 6762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6763 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6765 break 2 6766 fi 6767done 6768 done 6769IFS=$as_save_IFS 6770 6771fi 6772fi 6773ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6774if test -n "$ac_ct_DSYMUTIL"; then 6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6776$as_echo "$ac_ct_DSYMUTIL" >&6; } 6777else 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6779$as_echo "no" >&6; } 6780fi 6781 6782 if test "x$ac_ct_DSYMUTIL" = x; then 6783 DSYMUTIL=":" 6784 else 6785 case $cross_compiling:$ac_tool_warned in 6786yes:) 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6789ac_tool_warned=yes ;; 6790esac 6791 DSYMUTIL=$ac_ct_DSYMUTIL 6792 fi 6793else 6794 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6795fi 6796 6797 if test -n "$ac_tool_prefix"; then 6798 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6799set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6801$as_echo_n "checking for $ac_word... " >&6; } 6802if ${ac_cv_prog_NMEDIT+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 if test -n "$NMEDIT"; then 6806 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6807else 6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6809for as_dir in $PATH 6810do 6811 IFS=$as_save_IFS 6812 test -z "$as_dir" && as_dir=. 6813 for ac_exec_ext in '' $ac_executable_extensions; do 6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6815 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6817 break 2 6818 fi 6819done 6820 done 6821IFS=$as_save_IFS 6822 6823fi 6824fi 6825NMEDIT=$ac_cv_prog_NMEDIT 6826if test -n "$NMEDIT"; then 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6828$as_echo "$NMEDIT" >&6; } 6829else 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6831$as_echo "no" >&6; } 6832fi 6833 6834 6835fi 6836if test -z "$ac_cv_prog_NMEDIT"; then 6837 ac_ct_NMEDIT=$NMEDIT 6838 # Extract the first word of "nmedit", so it can be a program name with args. 6839set dummy nmedit; ac_word=$2 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6841$as_echo_n "checking for $ac_word... " >&6; } 6842if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6843 $as_echo_n "(cached) " >&6 6844else 6845 if test -n "$ac_ct_NMEDIT"; then 6846 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6847else 6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6849for as_dir in $PATH 6850do 6851 IFS=$as_save_IFS 6852 test -z "$as_dir" && as_dir=. 6853 for ac_exec_ext in '' $ac_executable_extensions; do 6854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6855 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6857 break 2 6858 fi 6859done 6860 done 6861IFS=$as_save_IFS 6862 6863fi 6864fi 6865ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6866if test -n "$ac_ct_NMEDIT"; then 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6868$as_echo "$ac_ct_NMEDIT" >&6; } 6869else 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6871$as_echo "no" >&6; } 6872fi 6873 6874 if test "x$ac_ct_NMEDIT" = x; then 6875 NMEDIT=":" 6876 else 6877 case $cross_compiling:$ac_tool_warned in 6878yes:) 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6881ac_tool_warned=yes ;; 6882esac 6883 NMEDIT=$ac_ct_NMEDIT 6884 fi 6885else 6886 NMEDIT="$ac_cv_prog_NMEDIT" 6887fi 6888 6889 if test -n "$ac_tool_prefix"; then 6890 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6891set dummy ${ac_tool_prefix}lipo; ac_word=$2 6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6893$as_echo_n "checking for $ac_word... " >&6; } 6894if ${ac_cv_prog_LIPO+:} false; then : 6895 $as_echo_n "(cached) " >&6 6896else 6897 if test -n "$LIPO"; then 6898 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6899else 6900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6901for as_dir in $PATH 6902do 6903 IFS=$as_save_IFS 6904 test -z "$as_dir" && as_dir=. 6905 for ac_exec_ext in '' $ac_executable_extensions; do 6906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6907 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6909 break 2 6910 fi 6911done 6912 done 6913IFS=$as_save_IFS 6914 6915fi 6916fi 6917LIPO=$ac_cv_prog_LIPO 6918if test -n "$LIPO"; then 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6920$as_echo "$LIPO" >&6; } 6921else 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6923$as_echo "no" >&6; } 6924fi 6925 6926 6927fi 6928if test -z "$ac_cv_prog_LIPO"; then 6929 ac_ct_LIPO=$LIPO 6930 # Extract the first word of "lipo", so it can be a program name with args. 6931set dummy lipo; ac_word=$2 6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6933$as_echo_n "checking for $ac_word... " >&6; } 6934if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6935 $as_echo_n "(cached) " >&6 6936else 6937 if test -n "$ac_ct_LIPO"; then 6938 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6939else 6940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6941for as_dir in $PATH 6942do 6943 IFS=$as_save_IFS 6944 test -z "$as_dir" && as_dir=. 6945 for ac_exec_ext in '' $ac_executable_extensions; do 6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6947 ac_cv_prog_ac_ct_LIPO="lipo" 6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6949 break 2 6950 fi 6951done 6952 done 6953IFS=$as_save_IFS 6954 6955fi 6956fi 6957ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6958if test -n "$ac_ct_LIPO"; then 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6960$as_echo "$ac_ct_LIPO" >&6; } 6961else 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6963$as_echo "no" >&6; } 6964fi 6965 6966 if test "x$ac_ct_LIPO" = x; then 6967 LIPO=":" 6968 else 6969 case $cross_compiling:$ac_tool_warned in 6970yes:) 6971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6973ac_tool_warned=yes ;; 6974esac 6975 LIPO=$ac_ct_LIPO 6976 fi 6977else 6978 LIPO="$ac_cv_prog_LIPO" 6979fi 6980 6981 if test -n "$ac_tool_prefix"; then 6982 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6983set dummy ${ac_tool_prefix}otool; ac_word=$2 6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6985$as_echo_n "checking for $ac_word... " >&6; } 6986if ${ac_cv_prog_OTOOL+:} false; then : 6987 $as_echo_n "(cached) " >&6 6988else 6989 if test -n "$OTOOL"; then 6990 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6991else 6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6993for as_dir in $PATH 6994do 6995 IFS=$as_save_IFS 6996 test -z "$as_dir" && as_dir=. 6997 for ac_exec_ext in '' $ac_executable_extensions; do 6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6999 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7001 break 2 7002 fi 7003done 7004 done 7005IFS=$as_save_IFS 7006 7007fi 7008fi 7009OTOOL=$ac_cv_prog_OTOOL 7010if test -n "$OTOOL"; then 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7012$as_echo "$OTOOL" >&6; } 7013else 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7015$as_echo "no" >&6; } 7016fi 7017 7018 7019fi 7020if test -z "$ac_cv_prog_OTOOL"; then 7021 ac_ct_OTOOL=$OTOOL 7022 # Extract the first word of "otool", so it can be a program name with args. 7023set dummy otool; ac_word=$2 7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7025$as_echo_n "checking for $ac_word... " >&6; } 7026if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7027 $as_echo_n "(cached) " >&6 7028else 7029 if test -n "$ac_ct_OTOOL"; then 7030 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7031else 7032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7033for as_dir in $PATH 7034do 7035 IFS=$as_save_IFS 7036 test -z "$as_dir" && as_dir=. 7037 for ac_exec_ext in '' $ac_executable_extensions; do 7038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7039 ac_cv_prog_ac_ct_OTOOL="otool" 7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7041 break 2 7042 fi 7043done 7044 done 7045IFS=$as_save_IFS 7046 7047fi 7048fi 7049ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7050if test -n "$ac_ct_OTOOL"; then 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7052$as_echo "$ac_ct_OTOOL" >&6; } 7053else 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7055$as_echo "no" >&6; } 7056fi 7057 7058 if test "x$ac_ct_OTOOL" = x; then 7059 OTOOL=":" 7060 else 7061 case $cross_compiling:$ac_tool_warned in 7062yes:) 7063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7065ac_tool_warned=yes ;; 7066esac 7067 OTOOL=$ac_ct_OTOOL 7068 fi 7069else 7070 OTOOL="$ac_cv_prog_OTOOL" 7071fi 7072 7073 if test -n "$ac_tool_prefix"; then 7074 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7075set dummy ${ac_tool_prefix}otool64; ac_word=$2 7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7077$as_echo_n "checking for $ac_word... " >&6; } 7078if ${ac_cv_prog_OTOOL64+:} false; then : 7079 $as_echo_n "(cached) " >&6 7080else 7081 if test -n "$OTOOL64"; then 7082 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7083else 7084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7085for as_dir in $PATH 7086do 7087 IFS=$as_save_IFS 7088 test -z "$as_dir" && as_dir=. 7089 for ac_exec_ext in '' $ac_executable_extensions; do 7090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7091 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7093 break 2 7094 fi 7095done 7096 done 7097IFS=$as_save_IFS 7098 7099fi 7100fi 7101OTOOL64=$ac_cv_prog_OTOOL64 7102if test -n "$OTOOL64"; then 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7104$as_echo "$OTOOL64" >&6; } 7105else 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7107$as_echo "no" >&6; } 7108fi 7109 7110 7111fi 7112if test -z "$ac_cv_prog_OTOOL64"; then 7113 ac_ct_OTOOL64=$OTOOL64 7114 # Extract the first word of "otool64", so it can be a program name with args. 7115set dummy otool64; ac_word=$2 7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7117$as_echo_n "checking for $ac_word... " >&6; } 7118if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7119 $as_echo_n "(cached) " >&6 7120else 7121 if test -n "$ac_ct_OTOOL64"; then 7122 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7123else 7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7125for as_dir in $PATH 7126do 7127 IFS=$as_save_IFS 7128 test -z "$as_dir" && as_dir=. 7129 for ac_exec_ext in '' $ac_executable_extensions; do 7130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7131 ac_cv_prog_ac_ct_OTOOL64="otool64" 7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7133 break 2 7134 fi 7135done 7136 done 7137IFS=$as_save_IFS 7138 7139fi 7140fi 7141ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7142if test -n "$ac_ct_OTOOL64"; then 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7144$as_echo "$ac_ct_OTOOL64" >&6; } 7145else 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7147$as_echo "no" >&6; } 7148fi 7149 7150 if test "x$ac_ct_OTOOL64" = x; then 7151 OTOOL64=":" 7152 else 7153 case $cross_compiling:$ac_tool_warned in 7154yes:) 7155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7157ac_tool_warned=yes ;; 7158esac 7159 OTOOL64=$ac_ct_OTOOL64 7160 fi 7161else 7162 OTOOL64="$ac_cv_prog_OTOOL64" 7163fi 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7192$as_echo_n "checking for -single_module linker flag... " >&6; } 7193if ${lt_cv_apple_cc_single_mod+:} false; then : 7194 $as_echo_n "(cached) " >&6 7195else 7196 lt_cv_apple_cc_single_mod=no 7197 if test -z "$LT_MULTI_MODULE"; then 7198 # By default we will add the -single_module flag. You can override 7199 # by either setting the environment variable LT_MULTI_MODULE 7200 # non-empty at configure time, or by adding -multi_module to the 7201 # link flags. 7202 rm -rf libconftest.dylib* 7203 echo "int foo(void){return 1;}" > conftest.c 7204 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7205-dynamiclib -Wl,-single_module conftest.c" >&5 7206 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7207 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7208 _lt_result=$? 7209 # If there is a non-empty error log, and "single_module" 7210 # appears in it, assume the flag caused a linker warning 7211 if test -s conftest.err && $GREP single_module conftest.err; then 7212 cat conftest.err >&5 7213 # Otherwise, if the output was created with a 0 exit code from 7214 # the compiler, it worked. 7215 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7216 lt_cv_apple_cc_single_mod=yes 7217 else 7218 cat conftest.err >&5 7219 fi 7220 rm -rf libconftest.dylib* 7221 rm -f conftest.* 7222 fi 7223fi 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7225$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7226 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7228$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7229if ${lt_cv_ld_exported_symbols_list+:} false; then : 7230 $as_echo_n "(cached) " >&6 7231else 7232 lt_cv_ld_exported_symbols_list=no 7233 save_LDFLAGS=$LDFLAGS 7234 echo "_main" > conftest.sym 7235 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7237/* end confdefs.h. */ 7238 7239int 7240main () 7241{ 7242 7243 ; 7244 return 0; 7245} 7246_ACEOF 7247if ac_fn_c_try_link "$LINENO"; then : 7248 lt_cv_ld_exported_symbols_list=yes 7249else 7250 lt_cv_ld_exported_symbols_list=no 7251fi 7252rm -f core conftest.err conftest.$ac_objext \ 7253 conftest$ac_exeext conftest.$ac_ext 7254 LDFLAGS=$save_LDFLAGS 7255 7256fi 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7258$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7259 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7261$as_echo_n "checking for -force_load linker flag... " >&6; } 7262if ${lt_cv_ld_force_load+:} false; then : 7263 $as_echo_n "(cached) " >&6 7264else 7265 lt_cv_ld_force_load=no 7266 cat > conftest.c << _LT_EOF 7267int forced_loaded() { return 2;} 7268_LT_EOF 7269 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7270 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7271 echo "$AR cru libconftest.a conftest.o" >&5 7272 $AR cru libconftest.a conftest.o 2>&5 7273 echo "$RANLIB libconftest.a" >&5 7274 $RANLIB libconftest.a 2>&5 7275 cat > conftest.c << _LT_EOF 7276int main() { return 0;} 7277_LT_EOF 7278 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7279 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7280 _lt_result=$? 7281 if test -s conftest.err && $GREP force_load conftest.err; then 7282 cat conftest.err >&5 7283 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7284 lt_cv_ld_force_load=yes 7285 else 7286 cat conftest.err >&5 7287 fi 7288 rm -f conftest.err libconftest.a conftest conftest.c 7289 rm -rf conftest.dSYM 7290 7291fi 7292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7293$as_echo "$lt_cv_ld_force_load" >&6; } 7294 case $host_os in 7295 rhapsody* | darwin1.[012]) 7296 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7297 darwin1.*) 7298 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7299 darwin*) # darwin 5.x on 7300 # if running on 10.5 or later, the deployment target defaults 7301 # to the OS version, if on x86, and 10.4, the deployment 7302 # target defaults to 10.4. Don't you love it? 7303 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7304 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7305 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7306 10.[012][,.]*) 7307 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7308 10.*) 7309 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7310 esac 7311 ;; 7312 esac 7313 if test yes = "$lt_cv_apple_cc_single_mod"; then 7314 _lt_dar_single_mod='$single_module' 7315 fi 7316 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7317 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7318 else 7319 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7320 fi 7321 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7322 _lt_dsymutil='~$DSYMUTIL $lib || :' 7323 else 7324 _lt_dsymutil= 7325 fi 7326 ;; 7327 esac 7328 7329# func_munge_path_list VARIABLE PATH 7330# ----------------------------------- 7331# VARIABLE is name of variable containing _space_ separated list of 7332# directories to be munged by the contents of PATH, which is string 7333# having a format: 7334# "DIR[:DIR]:" 7335# string "DIR[ DIR]" will be prepended to VARIABLE 7336# ":DIR[:DIR]" 7337# string "DIR[ DIR]" will be appended to VARIABLE 7338# "DIRP[:DIRP]::[DIRA:]DIRA" 7339# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7340# "DIRA[ DIRA]" will be appended to VARIABLE 7341# "DIR[:DIR]" 7342# VARIABLE will be replaced by "DIR[ DIR]" 7343func_munge_path_list () 7344{ 7345 case x$2 in 7346 x) 7347 ;; 7348 *:) 7349 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7350 ;; 7351 x:*) 7352 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7353 ;; 7354 *::*) 7355 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7356 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7357 ;; 7358 *) 7359 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7360 ;; 7361 esac 7362} 7363 7364ac_ext=c 7365ac_cpp='$CPP $CPPFLAGS' 7366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7368ac_compiler_gnu=$ac_cv_c_compiler_gnu 7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7370$as_echo_n "checking how to run the C preprocessor... " >&6; } 7371# On Suns, sometimes $CPP names a directory. 7372if test -n "$CPP" && test -d "$CPP"; then 7373 CPP= 7374fi 7375if test -z "$CPP"; then 7376 if ${ac_cv_prog_CPP+:} false; then : 7377 $as_echo_n "(cached) " >&6 7378else 7379 # Double quotes because CPP needs to be expanded 7380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7381 do 7382 ac_preproc_ok=false 7383for ac_c_preproc_warn_flag in '' yes 7384do 7385 # Use a header file that comes with gcc, so configuring glibc 7386 # with a fresh cross-compiler works. 7387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7388 # <limits.h> exists even on freestanding compilers. 7389 # On the NeXT, cc -E runs the code through the compiler's parser, 7390 # not just through cpp. "Syntax error" is here to catch this case. 7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7392/* end confdefs.h. */ 7393#ifdef __STDC__ 7394# include <limits.h> 7395#else 7396# include <assert.h> 7397#endif 7398 Syntax error 7399_ACEOF 7400if ac_fn_c_try_cpp "$LINENO"; then : 7401 7402else 7403 # Broken: fails on valid input. 7404continue 7405fi 7406rm -f conftest.err conftest.i conftest.$ac_ext 7407 7408 # OK, works on sane cases. Now check whether nonexistent headers 7409 # can be detected and how. 7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7411/* end confdefs.h. */ 7412#include <ac_nonexistent.h> 7413_ACEOF 7414if ac_fn_c_try_cpp "$LINENO"; then : 7415 # Broken: success on invalid input. 7416continue 7417else 7418 # Passes both tests. 7419ac_preproc_ok=: 7420break 7421fi 7422rm -f conftest.err conftest.i conftest.$ac_ext 7423 7424done 7425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7426rm -f conftest.i conftest.err conftest.$ac_ext 7427if $ac_preproc_ok; then : 7428 break 7429fi 7430 7431 done 7432 ac_cv_prog_CPP=$CPP 7433 7434fi 7435 CPP=$ac_cv_prog_CPP 7436else 7437 ac_cv_prog_CPP=$CPP 7438fi 7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7440$as_echo "$CPP" >&6; } 7441ac_preproc_ok=false 7442for ac_c_preproc_warn_flag in '' yes 7443do 7444 # Use a header file that comes with gcc, so configuring glibc 7445 # with a fresh cross-compiler works. 7446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7447 # <limits.h> exists even on freestanding compilers. 7448 # On the NeXT, cc -E runs the code through the compiler's parser, 7449 # not just through cpp. "Syntax error" is here to catch this case. 7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7451/* end confdefs.h. */ 7452#ifdef __STDC__ 7453# include <limits.h> 7454#else 7455# include <assert.h> 7456#endif 7457 Syntax error 7458_ACEOF 7459if ac_fn_c_try_cpp "$LINENO"; then : 7460 7461else 7462 # Broken: fails on valid input. 7463continue 7464fi 7465rm -f conftest.err conftest.i conftest.$ac_ext 7466 7467 # OK, works on sane cases. Now check whether nonexistent headers 7468 # can be detected and how. 7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7470/* end confdefs.h. */ 7471#include <ac_nonexistent.h> 7472_ACEOF 7473if ac_fn_c_try_cpp "$LINENO"; then : 7474 # Broken: success on invalid input. 7475continue 7476else 7477 # Passes both tests. 7478ac_preproc_ok=: 7479break 7480fi 7481rm -f conftest.err conftest.i conftest.$ac_ext 7482 7483done 7484# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7485rm -f conftest.i conftest.err conftest.$ac_ext 7486if $ac_preproc_ok; then : 7487 7488else 7489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7491as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7492See \`config.log' for more details" "$LINENO" 5; } 7493fi 7494 7495ac_ext=c 7496ac_cpp='$CPP $CPPFLAGS' 7497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7499ac_compiler_gnu=$ac_cv_c_compiler_gnu 7500 7501 7502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7503$as_echo_n "checking for ANSI C header files... " >&6; } 7504if ${ac_cv_header_stdc+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506else 7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509#include <stdlib.h> 7510#include <stdarg.h> 7511#include <string.h> 7512#include <float.h> 7513 7514int 7515main () 7516{ 7517 7518 ; 7519 return 0; 7520} 7521_ACEOF 7522if ac_fn_c_try_compile "$LINENO"; then : 7523 ac_cv_header_stdc=yes 7524else 7525 ac_cv_header_stdc=no 7526fi 7527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7528 7529if test $ac_cv_header_stdc = yes; then 7530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7532/* end confdefs.h. */ 7533#include <string.h> 7534 7535_ACEOF 7536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7537 $EGREP "memchr" >/dev/null 2>&1; then : 7538 7539else 7540 ac_cv_header_stdc=no 7541fi 7542rm -f conftest* 7543 7544fi 7545 7546if test $ac_cv_header_stdc = yes; then 7547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7549/* end confdefs.h. */ 7550#include <stdlib.h> 7551 7552_ACEOF 7553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7554 $EGREP "free" >/dev/null 2>&1; then : 7555 7556else 7557 ac_cv_header_stdc=no 7558fi 7559rm -f conftest* 7560 7561fi 7562 7563if test $ac_cv_header_stdc = yes; then 7564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7565 if test "$cross_compiling" = yes; then : 7566 : 7567else 7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7569/* end confdefs.h. */ 7570#include <ctype.h> 7571#include <stdlib.h> 7572#if ((' ' & 0x0FF) == 0x020) 7573# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7574# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7575#else 7576# define ISLOWER(c) \ 7577 (('a' <= (c) && (c) <= 'i') \ 7578 || ('j' <= (c) && (c) <= 'r') \ 7579 || ('s' <= (c) && (c) <= 'z')) 7580# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7581#endif 7582 7583#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7584int 7585main () 7586{ 7587 int i; 7588 for (i = 0; i < 256; i++) 7589 if (XOR (islower (i), ISLOWER (i)) 7590 || toupper (i) != TOUPPER (i)) 7591 return 2; 7592 return 0; 7593} 7594_ACEOF 7595if ac_fn_c_try_run "$LINENO"; then : 7596 7597else 7598 ac_cv_header_stdc=no 7599fi 7600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7601 conftest.$ac_objext conftest.beam conftest.$ac_ext 7602fi 7603 7604fi 7605fi 7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7607$as_echo "$ac_cv_header_stdc" >&6; } 7608if test $ac_cv_header_stdc = yes; then 7609 7610$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7611 7612fi 7613 7614# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7615for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7616 inttypes.h stdint.h unistd.h 7617do : 7618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7619ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7620" 7621if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7622 cat >>confdefs.h <<_ACEOF 7623#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7624_ACEOF 7625 7626fi 7627 7628done 7629 7630 7631for ac_header in dlfcn.h 7632do : 7633 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7634" 7635if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7636 cat >>confdefs.h <<_ACEOF 7637#define HAVE_DLFCN_H 1 7638_ACEOF 7639 7640fi 7641 7642done 7643 7644 7645 7646 7647 7648# Set options 7649 7650 7651 7652 enable_dlopen=no 7653 7654 7655 enable_win32_dll=no 7656 7657 7658 # Check whether --enable-shared was given. 7659if test "${enable_shared+set}" = set; then : 7660 enableval=$enable_shared; p=${PACKAGE-default} 7661 case $enableval in 7662 yes) enable_shared=yes ;; 7663 no) enable_shared=no ;; 7664 *) 7665 enable_shared=no 7666 # Look at the argument we got. We use all the common list separators. 7667 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7668 for pkg in $enableval; do 7669 IFS=$lt_save_ifs 7670 if test "X$pkg" = "X$p"; then 7671 enable_shared=yes 7672 fi 7673 done 7674 IFS=$lt_save_ifs 7675 ;; 7676 esac 7677else 7678 enable_shared=yes 7679fi 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 # Check whether --enable-static was given. 7690if test "${enable_static+set}" = set; then : 7691 enableval=$enable_static; p=${PACKAGE-default} 7692 case $enableval in 7693 yes) enable_static=yes ;; 7694 no) enable_static=no ;; 7695 *) 7696 enable_static=no 7697 # Look at the argument we got. We use all the common list separators. 7698 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7699 for pkg in $enableval; do 7700 IFS=$lt_save_ifs 7701 if test "X$pkg" = "X$p"; then 7702 enable_static=yes 7703 fi 7704 done 7705 IFS=$lt_save_ifs 7706 ;; 7707 esac 7708else 7709 enable_static=yes 7710fi 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721# Check whether --with-pic was given. 7722if test "${with_pic+set}" = set; then : 7723 withval=$with_pic; lt_p=${PACKAGE-default} 7724 case $withval in 7725 yes|no) pic_mode=$withval ;; 7726 *) 7727 pic_mode=default 7728 # Look at the argument we got. We use all the common list separators. 7729 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7730 for lt_pkg in $withval; do 7731 IFS=$lt_save_ifs 7732 if test "X$lt_pkg" = "X$lt_p"; then 7733 pic_mode=yes 7734 fi 7735 done 7736 IFS=$lt_save_ifs 7737 ;; 7738 esac 7739else 7740 pic_mode=default 7741fi 7742 7743 7744 7745 7746 7747 7748 7749 7750 # Check whether --enable-fast-install was given. 7751if test "${enable_fast_install+set}" = set; then : 7752 enableval=$enable_fast_install; p=${PACKAGE-default} 7753 case $enableval in 7754 yes) enable_fast_install=yes ;; 7755 no) enable_fast_install=no ;; 7756 *) 7757 enable_fast_install=no 7758 # Look at the argument we got. We use all the common list separators. 7759 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7760 for pkg in $enableval; do 7761 IFS=$lt_save_ifs 7762 if test "X$pkg" = "X$p"; then 7763 enable_fast_install=yes 7764 fi 7765 done 7766 IFS=$lt_save_ifs 7767 ;; 7768 esac 7769else 7770 enable_fast_install=yes 7771fi 7772 7773 7774 7775 7776 7777 7778 7779 7780 shared_archive_member_spec= 7781case $host,$enable_shared in 7782power*-*-aix[5-9]*,yes) 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7784$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7785 7786# Check whether --with-aix-soname was given. 7787if test "${with_aix_soname+set}" = set; then : 7788 withval=$with_aix_soname; case $withval in 7789 aix|svr4|both) 7790 ;; 7791 *) 7792 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7793 ;; 7794 esac 7795 lt_cv_with_aix_soname=$with_aix_soname 7796else 7797 if ${lt_cv_with_aix_soname+:} false; then : 7798 $as_echo_n "(cached) " >&6 7799else 7800 lt_cv_with_aix_soname=aix 7801fi 7802 7803 with_aix_soname=$lt_cv_with_aix_soname 7804fi 7805 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7807$as_echo "$with_aix_soname" >&6; } 7808 if test aix != "$with_aix_soname"; then 7809 # For the AIX way of multilib, we name the shared archive member 7810 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7811 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7812 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7813 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7814 if test 64 = "${OBJECT_MODE-32}"; then 7815 shared_archive_member_spec=shr_64 7816 else 7817 shared_archive_member_spec=shr 7818 fi 7819 fi 7820 ;; 7821*) 7822 with_aix_soname=aix 7823 ;; 7824esac 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835# This can be used to rebuild libtool when needed 7836LIBTOOL_DEPS=$ltmain 7837 7838# Always use our own libtool. 7839LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870test -z "$LN_S" && LN_S="ln -s" 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885if test -n "${ZSH_VERSION+set}"; then 7886 setopt NO_GLOB_SUBST 7887fi 7888 7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7890$as_echo_n "checking for objdir... " >&6; } 7891if ${lt_cv_objdir+:} false; then : 7892 $as_echo_n "(cached) " >&6 7893else 7894 rm -f .libs 2>/dev/null 7895mkdir .libs 2>/dev/null 7896if test -d .libs; then 7897 lt_cv_objdir=.libs 7898else 7899 # MS-DOS does not allow filenames that begin with a dot. 7900 lt_cv_objdir=_libs 7901fi 7902rmdir .libs 2>/dev/null 7903fi 7904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7905$as_echo "$lt_cv_objdir" >&6; } 7906objdir=$lt_cv_objdir 7907 7908 7909 7910 7911 7912cat >>confdefs.h <<_ACEOF 7913#define LT_OBJDIR "$lt_cv_objdir/" 7914_ACEOF 7915 7916 7917 7918 7919case $host_os in 7920aix3*) 7921 # AIX sometimes has problems with the GCC collect2 program. For some 7922 # reason, if we set the COLLECT_NAMES environment variable, the problems 7923 # vanish in a puff of smoke. 7924 if test set != "${COLLECT_NAMES+set}"; then 7925 COLLECT_NAMES= 7926 export COLLECT_NAMES 7927 fi 7928 ;; 7929esac 7930 7931# Global variables: 7932ofile=libtool 7933can_build_shared=yes 7934 7935# All known linkers require a '.a' archive for static linking (except MSVC, 7936# which needs '.lib'). 7937libext=a 7938 7939with_gnu_ld=$lt_cv_prog_gnu_ld 7940 7941old_CC=$CC 7942old_CFLAGS=$CFLAGS 7943 7944# Set sane defaults for various variables 7945test -z "$CC" && CC=cc 7946test -z "$LTCC" && LTCC=$CC 7947test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7948test -z "$LD" && LD=ld 7949test -z "$ac_objext" && ac_objext=o 7950 7951func_cc_basename $compiler 7952cc_basename=$func_cc_basename_result 7953 7954 7955# Only perform the check for file, if the check method requires it 7956test -z "$MAGIC_CMD" && MAGIC_CMD=file 7957case $deplibs_check_method in 7958file_magic*) 7959 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7961$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7962if ${lt_cv_path_MAGIC_CMD+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964else 7965 case $MAGIC_CMD in 7966[\\/*] | ?:[\\/]*) 7967 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7968 ;; 7969*) 7970 lt_save_MAGIC_CMD=$MAGIC_CMD 7971 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7972 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7973 for ac_dir in $ac_dummy; do 7974 IFS=$lt_save_ifs 7975 test -z "$ac_dir" && ac_dir=. 7976 if test -f "$ac_dir/${ac_tool_prefix}file"; then 7977 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 7978 if test -n "$file_magic_test_file"; then 7979 case $deplibs_check_method in 7980 "file_magic "*) 7981 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7982 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7983 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7984 $EGREP "$file_magic_regex" > /dev/null; then 7985 : 7986 else 7987 cat <<_LT_EOF 1>&2 7988 7989*** Warning: the command libtool uses to detect shared libraries, 7990*** $file_magic_cmd, produces output that libtool cannot recognize. 7991*** The result is that libtool may fail to recognize shared libraries 7992*** as such. This will affect the creation of libtool libraries that 7993*** depend on shared libraries, but programs linked with such libtool 7994*** libraries will work regardless of this problem. Nevertheless, you 7995*** may want to report the problem to your system manager and/or to 7996*** bug-libtool@gnu.org 7997 7998_LT_EOF 7999 fi ;; 8000 esac 8001 fi 8002 break 8003 fi 8004 done 8005 IFS=$lt_save_ifs 8006 MAGIC_CMD=$lt_save_MAGIC_CMD 8007 ;; 8008esac 8009fi 8010 8011MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8012if test -n "$MAGIC_CMD"; then 8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8014$as_echo "$MAGIC_CMD" >&6; } 8015else 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8017$as_echo "no" >&6; } 8018fi 8019 8020 8021 8022 8023 8024if test -z "$lt_cv_path_MAGIC_CMD"; then 8025 if test -n "$ac_tool_prefix"; then 8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8027$as_echo_n "checking for file... " >&6; } 8028if ${lt_cv_path_MAGIC_CMD+:} false; then : 8029 $as_echo_n "(cached) " >&6 8030else 8031 case $MAGIC_CMD in 8032[\\/*] | ?:[\\/]*) 8033 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8034 ;; 8035*) 8036 lt_save_MAGIC_CMD=$MAGIC_CMD 8037 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8038 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8039 for ac_dir in $ac_dummy; do 8040 IFS=$lt_save_ifs 8041 test -z "$ac_dir" && ac_dir=. 8042 if test -f "$ac_dir/file"; then 8043 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8044 if test -n "$file_magic_test_file"; then 8045 case $deplibs_check_method in 8046 "file_magic "*) 8047 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8048 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8049 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8050 $EGREP "$file_magic_regex" > /dev/null; then 8051 : 8052 else 8053 cat <<_LT_EOF 1>&2 8054 8055*** Warning: the command libtool uses to detect shared libraries, 8056*** $file_magic_cmd, produces output that libtool cannot recognize. 8057*** The result is that libtool may fail to recognize shared libraries 8058*** as such. This will affect the creation of libtool libraries that 8059*** depend on shared libraries, but programs linked with such libtool 8060*** libraries will work regardless of this problem. Nevertheless, you 8061*** may want to report the problem to your system manager and/or to 8062*** bug-libtool@gnu.org 8063 8064_LT_EOF 8065 fi ;; 8066 esac 8067 fi 8068 break 8069 fi 8070 done 8071 IFS=$lt_save_ifs 8072 MAGIC_CMD=$lt_save_MAGIC_CMD 8073 ;; 8074esac 8075fi 8076 8077MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8078if test -n "$MAGIC_CMD"; then 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8080$as_echo "$MAGIC_CMD" >&6; } 8081else 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8083$as_echo "no" >&6; } 8084fi 8085 8086 8087 else 8088 MAGIC_CMD=: 8089 fi 8090fi 8091 8092 fi 8093 ;; 8094esac 8095 8096# Use C for the default configuration in the libtool script 8097 8098lt_save_CC=$CC 8099ac_ext=c 8100ac_cpp='$CPP $CPPFLAGS' 8101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8103ac_compiler_gnu=$ac_cv_c_compiler_gnu 8104 8105 8106# Source file extension for C test sources. 8107ac_ext=c 8108 8109# Object file extension for compiled C test sources. 8110objext=o 8111objext=$objext 8112 8113# Code to be used in simple compile tests 8114lt_simple_compile_test_code="int some_variable = 0;" 8115 8116# Code to be used in simple link tests 8117lt_simple_link_test_code='int main(){return(0);}' 8118 8119 8120 8121 8122 8123 8124 8125# If no C compiler was specified, use CC. 8126LTCC=${LTCC-"$CC"} 8127 8128# If no C compiler flags were specified, use CFLAGS. 8129LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8130 8131# Allow CC to be a program name with arguments. 8132compiler=$CC 8133 8134# Save the default compiler, since it gets overwritten when the other 8135# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8136compiler_DEFAULT=$CC 8137 8138# save warnings/boilerplate of simple test code 8139ac_outfile=conftest.$ac_objext 8140echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8141eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8142_lt_compiler_boilerplate=`cat conftest.err` 8143$RM conftest* 8144 8145ac_outfile=conftest.$ac_objext 8146echo "$lt_simple_link_test_code" >conftest.$ac_ext 8147eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8148_lt_linker_boilerplate=`cat conftest.err` 8149$RM -r conftest* 8150 8151 8152if test -n "$compiler"; then 8153 8154lt_prog_compiler_no_builtin_flag= 8155 8156if test yes = "$GCC"; then 8157 case $cc_basename in 8158 nvcc*) 8159 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8160 *) 8161 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8162 esac 8163 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8165$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8166if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8167 $as_echo_n "(cached) " >&6 8168else 8169 lt_cv_prog_compiler_rtti_exceptions=no 8170 ac_outfile=conftest.$ac_objext 8171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8172 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8173 # Insert the option either (1) after the last *FLAGS variable, or 8174 # (2) before a word containing "conftest.", or (3) at the end. 8175 # Note that $ac_compile itself does not contain backslashes and begins 8176 # with a dollar sign (not a hyphen), so the echo should work correctly. 8177 # The option is referenced via a variable to avoid confusing sed. 8178 lt_compile=`echo "$ac_compile" | $SED \ 8179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8181 -e 's:$: $lt_compiler_flag:'` 8182 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8183 (eval "$lt_compile" 2>conftest.err) 8184 ac_status=$? 8185 cat conftest.err >&5 8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8187 if (exit $ac_status) && test -s "$ac_outfile"; then 8188 # The compiler can only warn and ignore the option if not recognized 8189 # So say no if there are warnings other than the usual output. 8190 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8192 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8193 lt_cv_prog_compiler_rtti_exceptions=yes 8194 fi 8195 fi 8196 $RM conftest* 8197 8198fi 8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8200$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8201 8202if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8203 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8204else 8205 : 8206fi 8207 8208fi 8209 8210 8211 8212 8213 8214 8215 lt_prog_compiler_wl= 8216lt_prog_compiler_pic= 8217lt_prog_compiler_static= 8218 8219 8220 if test yes = "$GCC"; then 8221 lt_prog_compiler_wl='-Wl,' 8222 lt_prog_compiler_static='-static' 8223 8224 case $host_os in 8225 aix*) 8226 # All AIX code is PIC. 8227 if test ia64 = "$host_cpu"; then 8228 # AIX 5 now supports IA64 processor 8229 lt_prog_compiler_static='-Bstatic' 8230 fi 8231 lt_prog_compiler_pic='-fPIC' 8232 ;; 8233 8234 amigaos*) 8235 case $host_cpu in 8236 powerpc) 8237 # see comment about AmigaOS4 .so support 8238 lt_prog_compiler_pic='-fPIC' 8239 ;; 8240 m68k) 8241 # FIXME: we need at least 68020 code to build shared libraries, but 8242 # adding the '-m68020' flag to GCC prevents building anything better, 8243 # like '-m68040'. 8244 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8245 ;; 8246 esac 8247 ;; 8248 8249 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8250 # PIC is the default for these OSes. 8251 ;; 8252 8253 mingw* | cygwin* | pw32* | os2* | cegcc*) 8254 # This hack is so that the source file can tell whether it is being 8255 # built for inclusion in a dll (and should export symbols for example). 8256 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8257 # (--disable-auto-import) libraries 8258 lt_prog_compiler_pic='-DDLL_EXPORT' 8259 case $host_os in 8260 os2*) 8261 lt_prog_compiler_static='$wl-static' 8262 ;; 8263 esac 8264 ;; 8265 8266 darwin* | rhapsody*) 8267 # PIC is the default on this platform 8268 # Common symbols not allowed in MH_DYLIB files 8269 lt_prog_compiler_pic='-fno-common' 8270 ;; 8271 8272 haiku*) 8273 # PIC is the default for Haiku. 8274 # The "-static" flag exists, but is broken. 8275 lt_prog_compiler_static= 8276 ;; 8277 8278 hpux*) 8279 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8280 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8281 # sets the default TLS model and affects inlining. 8282 case $host_cpu in 8283 hppa*64*) 8284 # +Z the default 8285 ;; 8286 *) 8287 lt_prog_compiler_pic='-fPIC' 8288 ;; 8289 esac 8290 ;; 8291 8292 interix[3-9]*) 8293 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8294 # Instead, we relocate shared libraries at runtime. 8295 ;; 8296 8297 msdosdjgpp*) 8298 # Just because we use GCC doesn't mean we suddenly get shared libraries 8299 # on systems that don't support them. 8300 lt_prog_compiler_can_build_shared=no 8301 enable_shared=no 8302 ;; 8303 8304 *nto* | *qnx*) 8305 # QNX uses GNU C++, but need to define -shared option too, otherwise 8306 # it will coredump. 8307 lt_prog_compiler_pic='-fPIC -shared' 8308 ;; 8309 8310 sysv4*MP*) 8311 if test -d /usr/nec; then 8312 lt_prog_compiler_pic=-Kconform_pic 8313 fi 8314 ;; 8315 8316 *) 8317 lt_prog_compiler_pic='-fPIC' 8318 ;; 8319 esac 8320 8321 case $cc_basename in 8322 nvcc*) # Cuda Compiler Driver 2.2 8323 lt_prog_compiler_wl='-Xlinker ' 8324 if test -n "$lt_prog_compiler_pic"; then 8325 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8326 fi 8327 ;; 8328 esac 8329 else 8330 # PORTME Check for flag to pass linker flags through the system compiler. 8331 case $host_os in 8332 aix*) 8333 lt_prog_compiler_wl='-Wl,' 8334 if test ia64 = "$host_cpu"; then 8335 # AIX 5 now supports IA64 processor 8336 lt_prog_compiler_static='-Bstatic' 8337 else 8338 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8339 fi 8340 ;; 8341 8342 darwin* | rhapsody*) 8343 # PIC is the default on this platform 8344 # Common symbols not allowed in MH_DYLIB files 8345 lt_prog_compiler_pic='-fno-common' 8346 case $cc_basename in 8347 nagfor*) 8348 # NAG Fortran compiler 8349 lt_prog_compiler_wl='-Wl,-Wl,,' 8350 lt_prog_compiler_pic='-PIC' 8351 lt_prog_compiler_static='-Bstatic' 8352 ;; 8353 esac 8354 ;; 8355 8356 mingw* | cygwin* | pw32* | os2* | cegcc*) 8357 # This hack is so that the source file can tell whether it is being 8358 # built for inclusion in a dll (and should export symbols for example). 8359 lt_prog_compiler_pic='-DDLL_EXPORT' 8360 case $host_os in 8361 os2*) 8362 lt_prog_compiler_static='$wl-static' 8363 ;; 8364 esac 8365 ;; 8366 8367 hpux9* | hpux10* | hpux11*) 8368 lt_prog_compiler_wl='-Wl,' 8369 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8370 # not for PA HP-UX. 8371 case $host_cpu in 8372 hppa*64*|ia64*) 8373 # +Z the default 8374 ;; 8375 *) 8376 lt_prog_compiler_pic='+Z' 8377 ;; 8378 esac 8379 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8380 lt_prog_compiler_static='$wl-a ${wl}archive' 8381 ;; 8382 8383 irix5* | irix6* | nonstopux*) 8384 lt_prog_compiler_wl='-Wl,' 8385 # PIC (with -KPIC) is the default. 8386 lt_prog_compiler_static='-non_shared' 8387 ;; 8388 8389 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8390 case $cc_basename in 8391 # old Intel for x86_64, which still supported -KPIC. 8392 ecc*) 8393 lt_prog_compiler_wl='-Wl,' 8394 lt_prog_compiler_pic='-KPIC' 8395 lt_prog_compiler_static='-static' 8396 ;; 8397 # icc used to be incompatible with GCC. 8398 # ICC 10 doesn't accept -KPIC any more. 8399 icc* | ifort*) 8400 lt_prog_compiler_wl='-Wl,' 8401 lt_prog_compiler_pic='-fPIC' 8402 lt_prog_compiler_static='-static' 8403 ;; 8404 # Lahey Fortran 8.1. 8405 lf95*) 8406 lt_prog_compiler_wl='-Wl,' 8407 lt_prog_compiler_pic='--shared' 8408 lt_prog_compiler_static='--static' 8409 ;; 8410 nagfor*) 8411 # NAG Fortran compiler 8412 lt_prog_compiler_wl='-Wl,-Wl,,' 8413 lt_prog_compiler_pic='-PIC' 8414 lt_prog_compiler_static='-Bstatic' 8415 ;; 8416 tcc*) 8417 # Fabrice Bellard et al's Tiny C Compiler 8418 lt_prog_compiler_wl='-Wl,' 8419 lt_prog_compiler_pic='-fPIC' 8420 lt_prog_compiler_static='-static' 8421 ;; 8422 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8423 # Portland Group compilers (*not* the Pentium gcc compiler, 8424 # which looks to be a dead project) 8425 lt_prog_compiler_wl='-Wl,' 8426 lt_prog_compiler_pic='-fpic' 8427 lt_prog_compiler_static='-Bstatic' 8428 ;; 8429 ccc*) 8430 lt_prog_compiler_wl='-Wl,' 8431 # All Alpha code is PIC. 8432 lt_prog_compiler_static='-non_shared' 8433 ;; 8434 xl* | bgxl* | bgf* | mpixl*) 8435 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8436 lt_prog_compiler_wl='-Wl,' 8437 lt_prog_compiler_pic='-qpic' 8438 lt_prog_compiler_static='-qstaticlink' 8439 ;; 8440 *) 8441 case `$CC -V 2>&1 | sed 5q` in 8442 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8443 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8444 lt_prog_compiler_pic='-KPIC' 8445 lt_prog_compiler_static='-Bstatic' 8446 lt_prog_compiler_wl='' 8447 ;; 8448 *Sun\ F* | *Sun*Fortran*) 8449 lt_prog_compiler_pic='-KPIC' 8450 lt_prog_compiler_static='-Bstatic' 8451 lt_prog_compiler_wl='-Qoption ld ' 8452 ;; 8453 *Sun\ C*) 8454 # Sun C 5.9 8455 lt_prog_compiler_pic='-KPIC' 8456 lt_prog_compiler_static='-Bstatic' 8457 lt_prog_compiler_wl='-Wl,' 8458 ;; 8459 *Intel*\ [CF]*Compiler*) 8460 lt_prog_compiler_wl='-Wl,' 8461 lt_prog_compiler_pic='-fPIC' 8462 lt_prog_compiler_static='-static' 8463 ;; 8464 *Portland\ Group*) 8465 lt_prog_compiler_wl='-Wl,' 8466 lt_prog_compiler_pic='-fpic' 8467 lt_prog_compiler_static='-Bstatic' 8468 ;; 8469 esac 8470 ;; 8471 esac 8472 ;; 8473 8474 newsos6) 8475 lt_prog_compiler_pic='-KPIC' 8476 lt_prog_compiler_static='-Bstatic' 8477 ;; 8478 8479 *nto* | *qnx*) 8480 # QNX uses GNU C++, but need to define -shared option too, otherwise 8481 # it will coredump. 8482 lt_prog_compiler_pic='-fPIC -shared' 8483 ;; 8484 8485 osf3* | osf4* | osf5*) 8486 lt_prog_compiler_wl='-Wl,' 8487 # All OSF/1 code is PIC. 8488 lt_prog_compiler_static='-non_shared' 8489 ;; 8490 8491 rdos*) 8492 lt_prog_compiler_static='-non_shared' 8493 ;; 8494 8495 solaris*) 8496 lt_prog_compiler_pic='-KPIC' 8497 lt_prog_compiler_static='-Bstatic' 8498 case $cc_basename in 8499 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8500 lt_prog_compiler_wl='-Qoption ld ';; 8501 *) 8502 lt_prog_compiler_wl='-Wl,';; 8503 esac 8504 ;; 8505 8506 sunos4*) 8507 lt_prog_compiler_wl='-Qoption ld ' 8508 lt_prog_compiler_pic='-PIC' 8509 lt_prog_compiler_static='-Bstatic' 8510 ;; 8511 8512 sysv4 | sysv4.2uw2* | sysv4.3*) 8513 lt_prog_compiler_wl='-Wl,' 8514 lt_prog_compiler_pic='-KPIC' 8515 lt_prog_compiler_static='-Bstatic' 8516 ;; 8517 8518 sysv4*MP*) 8519 if test -d /usr/nec; then 8520 lt_prog_compiler_pic='-Kconform_pic' 8521 lt_prog_compiler_static='-Bstatic' 8522 fi 8523 ;; 8524 8525 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8526 lt_prog_compiler_wl='-Wl,' 8527 lt_prog_compiler_pic='-KPIC' 8528 lt_prog_compiler_static='-Bstatic' 8529 ;; 8530 8531 unicos*) 8532 lt_prog_compiler_wl='-Wl,' 8533 lt_prog_compiler_can_build_shared=no 8534 ;; 8535 8536 uts4*) 8537 lt_prog_compiler_pic='-pic' 8538 lt_prog_compiler_static='-Bstatic' 8539 ;; 8540 8541 *) 8542 lt_prog_compiler_can_build_shared=no 8543 ;; 8544 esac 8545 fi 8546 8547case $host_os in 8548 # For platforms that do not support PIC, -DPIC is meaningless: 8549 *djgpp*) 8550 lt_prog_compiler_pic= 8551 ;; 8552 *) 8553 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8554 ;; 8555esac 8556 8557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8558$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8559if ${lt_cv_prog_compiler_pic+:} false; then : 8560 $as_echo_n "(cached) " >&6 8561else 8562 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8563fi 8564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8565$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8566lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8567 8568# 8569# Check to make sure the PIC flag actually works. 8570# 8571if test -n "$lt_prog_compiler_pic"; then 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8573$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8574if ${lt_cv_prog_compiler_pic_works+:} false; then : 8575 $as_echo_n "(cached) " >&6 8576else 8577 lt_cv_prog_compiler_pic_works=no 8578 ac_outfile=conftest.$ac_objext 8579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8580 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8581 # Insert the option either (1) after the last *FLAGS variable, or 8582 # (2) before a word containing "conftest.", or (3) at the end. 8583 # Note that $ac_compile itself does not contain backslashes and begins 8584 # with a dollar sign (not a hyphen), so the echo should work correctly. 8585 # The option is referenced via a variable to avoid confusing sed. 8586 lt_compile=`echo "$ac_compile" | $SED \ 8587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8589 -e 's:$: $lt_compiler_flag:'` 8590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8591 (eval "$lt_compile" 2>conftest.err) 8592 ac_status=$? 8593 cat conftest.err >&5 8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8595 if (exit $ac_status) && test -s "$ac_outfile"; then 8596 # The compiler can only warn and ignore the option if not recognized 8597 # So say no if there are warnings other than the usual output. 8598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8600 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8601 lt_cv_prog_compiler_pic_works=yes 8602 fi 8603 fi 8604 $RM conftest* 8605 8606fi 8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8608$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8609 8610if test yes = "$lt_cv_prog_compiler_pic_works"; then 8611 case $lt_prog_compiler_pic in 8612 "" | " "*) ;; 8613 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8614 esac 8615else 8616 lt_prog_compiler_pic= 8617 lt_prog_compiler_can_build_shared=no 8618fi 8619 8620fi 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632# 8633# Check to make sure the static flag actually works. 8634# 8635wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8637$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8638if ${lt_cv_prog_compiler_static_works+:} false; then : 8639 $as_echo_n "(cached) " >&6 8640else 8641 lt_cv_prog_compiler_static_works=no 8642 save_LDFLAGS=$LDFLAGS 8643 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8644 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8645 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8646 # The linker can only warn and ignore the option if not recognized 8647 # So say no if there are warnings 8648 if test -s conftest.err; then 8649 # Append any errors to the config.log. 8650 cat conftest.err 1>&5 8651 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8653 if diff conftest.exp conftest.er2 >/dev/null; then 8654 lt_cv_prog_compiler_static_works=yes 8655 fi 8656 else 8657 lt_cv_prog_compiler_static_works=yes 8658 fi 8659 fi 8660 $RM -r conftest* 8661 LDFLAGS=$save_LDFLAGS 8662 8663fi 8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8665$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8666 8667if test yes = "$lt_cv_prog_compiler_static_works"; then 8668 : 8669else 8670 lt_prog_compiler_static= 8671fi 8672 8673 8674 8675 8676 8677 8678 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8680$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8681if ${lt_cv_prog_compiler_c_o+:} false; then : 8682 $as_echo_n "(cached) " >&6 8683else 8684 lt_cv_prog_compiler_c_o=no 8685 $RM -r conftest 2>/dev/null 8686 mkdir conftest 8687 cd conftest 8688 mkdir out 8689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8690 8691 lt_compiler_flag="-o out/conftest2.$ac_objext" 8692 # Insert the option either (1) after the last *FLAGS variable, or 8693 # (2) before a word containing "conftest.", or (3) at the end. 8694 # Note that $ac_compile itself does not contain backslashes and begins 8695 # with a dollar sign (not a hyphen), so the echo should work correctly. 8696 lt_compile=`echo "$ac_compile" | $SED \ 8697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8699 -e 's:$: $lt_compiler_flag:'` 8700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8701 (eval "$lt_compile" 2>out/conftest.err) 8702 ac_status=$? 8703 cat out/conftest.err >&5 8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8705 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8706 then 8707 # The compiler can only warn and ignore the option if not recognized 8708 # So say no if there are warnings 8709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8710 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8711 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8712 lt_cv_prog_compiler_c_o=yes 8713 fi 8714 fi 8715 chmod u+w . 2>&5 8716 $RM conftest* 8717 # SGI C++ compiler will create directory out/ii_files/ for 8718 # template instantiation 8719 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8720 $RM out/* && rmdir out 8721 cd .. 8722 $RM -r conftest 8723 $RM conftest* 8724 8725fi 8726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8727$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8728 8729 8730 8731 8732 8733 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8735$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8736if ${lt_cv_prog_compiler_c_o+:} false; then : 8737 $as_echo_n "(cached) " >&6 8738else 8739 lt_cv_prog_compiler_c_o=no 8740 $RM -r conftest 2>/dev/null 8741 mkdir conftest 8742 cd conftest 8743 mkdir out 8744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8745 8746 lt_compiler_flag="-o out/conftest2.$ac_objext" 8747 # Insert the option either (1) after the last *FLAGS variable, or 8748 # (2) before a word containing "conftest.", or (3) at the end. 8749 # Note that $ac_compile itself does not contain backslashes and begins 8750 # with a dollar sign (not a hyphen), so the echo should work correctly. 8751 lt_compile=`echo "$ac_compile" | $SED \ 8752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8754 -e 's:$: $lt_compiler_flag:'` 8755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8756 (eval "$lt_compile" 2>out/conftest.err) 8757 ac_status=$? 8758 cat out/conftest.err >&5 8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8760 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8761 then 8762 # The compiler can only warn and ignore the option if not recognized 8763 # So say no if there are warnings 8764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8767 lt_cv_prog_compiler_c_o=yes 8768 fi 8769 fi 8770 chmod u+w . 2>&5 8771 $RM conftest* 8772 # SGI C++ compiler will create directory out/ii_files/ for 8773 # template instantiation 8774 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8775 $RM out/* && rmdir out 8776 cd .. 8777 $RM -r conftest 8778 $RM conftest* 8779 8780fi 8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8782$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8783 8784 8785 8786 8787hard_links=nottested 8788if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8789 # do not overwrite the value of need_locks provided by the user 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8791$as_echo_n "checking if we can lock with hard links... " >&6; } 8792 hard_links=yes 8793 $RM conftest* 8794 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8795 touch conftest.a 8796 ln conftest.a conftest.b 2>&5 || hard_links=no 8797 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8799$as_echo "$hard_links" >&6; } 8800 if test no = "$hard_links"; then 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8802$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8803 need_locks=warn 8804 fi 8805else 8806 need_locks=no 8807fi 8808 8809 8810 8811 8812 8813 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8815$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8816 8817 runpath_var= 8818 allow_undefined_flag= 8819 always_export_symbols=no 8820 archive_cmds= 8821 archive_expsym_cmds= 8822 compiler_needs_object=no 8823 enable_shared_with_static_runtimes=no 8824 export_dynamic_flag_spec= 8825 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8826 hardcode_automatic=no 8827 hardcode_direct=no 8828 hardcode_direct_absolute=no 8829 hardcode_libdir_flag_spec= 8830 hardcode_libdir_separator= 8831 hardcode_minus_L=no 8832 hardcode_shlibpath_var=unsupported 8833 inherit_rpath=no 8834 link_all_deplibs=unknown 8835 module_cmds= 8836 module_expsym_cmds= 8837 old_archive_from_new_cmds= 8838 old_archive_from_expsyms_cmds= 8839 thread_safe_flag_spec= 8840 whole_archive_flag_spec= 8841 # include_expsyms should be a list of space-separated symbols to be *always* 8842 # included in the symbol list 8843 include_expsyms= 8844 # exclude_expsyms can be an extended regexp of symbols to exclude 8845 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8846 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8847 # as well as any symbol that contains 'd'. 8848 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8849 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8850 # platforms (ab)use it in PIC code, but their linkers get confused if 8851 # the symbol is explicitly referenced. Since portable code cannot 8852 # rely on this symbol name, it's probably fine to never include it in 8853 # preloaded symbol tables. 8854 # Exclude shared library initialization/finalization symbols. 8855 extract_expsyms_cmds= 8856 8857 case $host_os in 8858 cygwin* | mingw* | pw32* | cegcc*) 8859 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8860 # When not using gcc, we currently assume that we are using 8861 # Microsoft Visual C++. 8862 if test yes != "$GCC"; then 8863 with_gnu_ld=no 8864 fi 8865 ;; 8866 interix*) 8867 # we just hope/assume this is gcc and not c89 (= MSVC++) 8868 with_gnu_ld=yes 8869 ;; 8870 openbsd* | bitrig*) 8871 with_gnu_ld=no 8872 ;; 8873 esac 8874 8875 ld_shlibs=yes 8876 8877 # On some targets, GNU ld is compatible enough with the native linker 8878 # that we're better off using the native interface for both. 8879 lt_use_gnu_ld_interface=no 8880 if test yes = "$with_gnu_ld"; then 8881 case $host_os in 8882 aix*) 8883 # The AIX port of GNU ld has always aspired to compatibility 8884 # with the native linker. However, as the warning in the GNU ld 8885 # block says, versions before 2.19.5* couldn't really create working 8886 # shared libraries, regardless of the interface used. 8887 case `$LD -v 2>&1` in 8888 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8889 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8890 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8891 *) 8892 lt_use_gnu_ld_interface=yes 8893 ;; 8894 esac 8895 ;; 8896 *) 8897 lt_use_gnu_ld_interface=yes 8898 ;; 8899 esac 8900 fi 8901 8902 if test yes = "$lt_use_gnu_ld_interface"; then 8903 # If archive_cmds runs LD, not CC, wlarc should be empty 8904 wlarc='$wl' 8905 8906 # Set some defaults for GNU ld with shared library support. These 8907 # are reset later if shared libraries are not supported. Putting them 8908 # here allows them to be overridden if necessary. 8909 runpath_var=LD_RUN_PATH 8910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8911 export_dynamic_flag_spec='$wl--export-dynamic' 8912 # ancient GNU ld didn't support --whole-archive et. al. 8913 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8914 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8915 else 8916 whole_archive_flag_spec= 8917 fi 8918 supports_anon_versioning=no 8919 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8920 *GNU\ gold*) supports_anon_versioning=yes ;; 8921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8924 *\ 2.11.*) ;; # other 2.11 versions 8925 *) supports_anon_versioning=yes ;; 8926 esac 8927 8928 # See if GNU ld supports shared libraries. 8929 case $host_os in 8930 aix[3-9]*) 8931 # On AIX/PPC, the GNU linker is very broken 8932 if test ia64 != "$host_cpu"; then 8933 ld_shlibs=no 8934 cat <<_LT_EOF 1>&2 8935 8936*** Warning: the GNU linker, at least up to release 2.19, is reported 8937*** to be unable to reliably create shared libraries on AIX. 8938*** Therefore, libtool is disabling shared libraries support. If you 8939*** really care for shared libraries, you may want to install binutils 8940*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8941*** You will then need to restart the configuration process. 8942 8943_LT_EOF 8944 fi 8945 ;; 8946 8947 amigaos*) 8948 case $host_cpu in 8949 powerpc) 8950 # see comment about AmigaOS4 .so support 8951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8952 archive_expsym_cmds='' 8953 ;; 8954 m68k) 8955 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)' 8956 hardcode_libdir_flag_spec='-L$libdir' 8957 hardcode_minus_L=yes 8958 ;; 8959 esac 8960 ;; 8961 8962 beos*) 8963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8964 allow_undefined_flag=unsupported 8965 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8966 # support --undefined. This deserves some investigation. FIXME 8967 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8968 else 8969 ld_shlibs=no 8970 fi 8971 ;; 8972 8973 cygwin* | mingw* | pw32* | cegcc*) 8974 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8975 # as there is no search path for DLLs. 8976 hardcode_libdir_flag_spec='-L$libdir' 8977 export_dynamic_flag_spec='$wl--export-all-symbols' 8978 allow_undefined_flag=unsupported 8979 always_export_symbols=no 8980 enable_shared_with_static_runtimes=yes 8981 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' 8982 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8983 8984 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8986 # If the export-symbols file already is a .def file, use it as 8987 # is; otherwise, prepend EXPORTS... 8988 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 8989 cp $export_symbols $output_objdir/$soname.def; 8990 else 8991 echo EXPORTS > $output_objdir/$soname.def; 8992 cat $export_symbols >> $output_objdir/$soname.def; 8993 fi~ 8994 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8995 else 8996 ld_shlibs=no 8997 fi 8998 ;; 8999 9000 haiku*) 9001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9002 link_all_deplibs=yes 9003 ;; 9004 9005 os2*) 9006 hardcode_libdir_flag_spec='-L$libdir' 9007 hardcode_minus_L=yes 9008 allow_undefined_flag=unsupported 9009 shrext_cmds=.dll 9010 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9011 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9012 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9013 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9014 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9015 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9016 emximp -o $lib $output_objdir/$libname.def' 9017 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9018 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9019 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9020 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9021 prefix_cmds="$SED"~ 9022 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9023 prefix_cmds="$prefix_cmds -e 1d"; 9024 fi~ 9025 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9026 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9027 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9028 emximp -o $lib $output_objdir/$libname.def' 9029 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9030 enable_shared_with_static_runtimes=yes 9031 ;; 9032 9033 interix[3-9]*) 9034 hardcode_direct=no 9035 hardcode_shlibpath_var=no 9036 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9037 export_dynamic_flag_spec='$wl-E' 9038 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9039 # Instead, shared libraries are loaded at an image base (0x10000000 by 9040 # default) and relocated if they conflict, which is a slow very memory 9041 # consuming and fragmenting process. To avoid this, we pick a random, 9042 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9043 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9044 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9045 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' 9046 ;; 9047 9048 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9049 tmp_diet=no 9050 if test linux-dietlibc = "$host_os"; then 9051 case $cc_basename in 9052 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9053 esac 9054 fi 9055 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9056 && test no = "$tmp_diet" 9057 then 9058 tmp_addflag=' $pic_flag' 9059 tmp_sharedflag='-shared' 9060 case $cc_basename,$host_cpu in 9061 pgcc*) # Portland Group C compiler 9062 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' 9063 tmp_addflag=' $pic_flag' 9064 ;; 9065 pgf77* | pgf90* | pgf95* | pgfortran*) 9066 # Portland Group f77 and f90 compilers 9067 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' 9068 tmp_addflag=' $pic_flag -Mnomain' ;; 9069 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9070 tmp_addflag=' -i_dynamic' ;; 9071 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9072 tmp_addflag=' -i_dynamic -nofor_main' ;; 9073 ifc* | ifort*) # Intel Fortran compiler 9074 tmp_addflag=' -nofor_main' ;; 9075 lf95*) # Lahey Fortran 8.1 9076 whole_archive_flag_spec= 9077 tmp_sharedflag='--shared' ;; 9078 nagfor*) # NAGFOR 5.3 9079 tmp_sharedflag='-Wl,-shared' ;; 9080 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9081 tmp_sharedflag='-qmkshrobj' 9082 tmp_addflag= ;; 9083 nvcc*) # Cuda Compiler Driver 2.2 9084 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' 9085 compiler_needs_object=yes 9086 ;; 9087 esac 9088 case `$CC -V 2>&1 | sed 5q` in 9089 *Sun\ C*) # Sun C 5.9 9090 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' 9091 compiler_needs_object=yes 9092 tmp_sharedflag='-G' ;; 9093 *Sun\ F*) # Sun Fortran 8.3 9094 tmp_sharedflag='-G' ;; 9095 esac 9096 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9097 9098 if test yes = "$supports_anon_versioning"; then 9099 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9100 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9101 echo "local: *; };" >> $output_objdir/$libname.ver~ 9102 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9103 fi 9104 9105 case $cc_basename in 9106 tcc*) 9107 export_dynamic_flag_spec='-rdynamic' 9108 ;; 9109 xlf* | bgf* | bgxlf* | mpixlf*) 9110 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9111 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9112 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9113 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9114 if test yes = "$supports_anon_versioning"; then 9115 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9117 echo "local: *; };" >> $output_objdir/$libname.ver~ 9118 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9119 fi 9120 ;; 9121 esac 9122 else 9123 ld_shlibs=no 9124 fi 9125 ;; 9126 9127 netbsd*) 9128 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9129 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9130 wlarc= 9131 else 9132 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9133 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9134 fi 9135 ;; 9136 9137 solaris*) 9138 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9139 ld_shlibs=no 9140 cat <<_LT_EOF 1>&2 9141 9142*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9143*** create shared libraries on Solaris systems. Therefore, libtool 9144*** is disabling shared libraries support. We urge you to upgrade GNU 9145*** binutils to release 2.9.1 or newer. Another option is to modify 9146*** your PATH or compiler configuration so that the native linker is 9147*** used, and then restart. 9148 9149_LT_EOF 9150 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9151 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9152 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9153 else 9154 ld_shlibs=no 9155 fi 9156 ;; 9157 9158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9159 case `$LD -v 2>&1` in 9160 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9161 ld_shlibs=no 9162 cat <<_LT_EOF 1>&2 9163 9164*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9165*** reliably create shared libraries on SCO systems. Therefore, libtool 9166*** is disabling shared libraries support. We urge you to upgrade GNU 9167*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9168*** your PATH or compiler configuration so that the native linker is 9169*** used, and then restart. 9170 9171_LT_EOF 9172 ;; 9173 *) 9174 # For security reasons, it is highly recommended that you always 9175 # use absolute paths for naming shared libraries, and exclude the 9176 # DT_RUNPATH tag from executables and libraries. But doing so 9177 # requires that you compile everything twice, which is a pain. 9178 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9179 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9181 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9182 else 9183 ld_shlibs=no 9184 fi 9185 ;; 9186 esac 9187 ;; 9188 9189 sunos4*) 9190 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9191 wlarc= 9192 hardcode_direct=yes 9193 hardcode_shlibpath_var=no 9194 ;; 9195 9196 *) 9197 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9198 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9199 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9200 else 9201 ld_shlibs=no 9202 fi 9203 ;; 9204 esac 9205 9206 if test no = "$ld_shlibs"; then 9207 runpath_var= 9208 hardcode_libdir_flag_spec= 9209 export_dynamic_flag_spec= 9210 whole_archive_flag_spec= 9211 fi 9212 else 9213 # PORTME fill in a description of your system's linker (not GNU ld) 9214 case $host_os in 9215 aix3*) 9216 allow_undefined_flag=unsupported 9217 always_export_symbols=yes 9218 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' 9219 # Note: this linker hardcodes the directories in LIBPATH if there 9220 # are no directories specified by -L. 9221 hardcode_minus_L=yes 9222 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9223 # Neither direct hardcoding nor static linking is supported with a 9224 # broken collect2. 9225 hardcode_direct=unsupported 9226 fi 9227 ;; 9228 9229 aix[4-9]*) 9230 if test ia64 = "$host_cpu"; then 9231 # On IA64, the linker does run time linking by default, so we don't 9232 # have to do anything special. 9233 aix_use_runtimelinking=no 9234 exp_sym_flag='-Bexport' 9235 no_entry_flag= 9236 else 9237 # If we're using GNU nm, then we don't want the "-C" option. 9238 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9239 # Without the "-l" option, or with the "-B" option, AIX nm treats 9240 # weak defined symbols like other global defined symbols, whereas 9241 # GNU nm marks them as "W". 9242 # While the 'weak' keyword is ignored in the Export File, we need 9243 # it in the Import File for the 'aix-soname' feature, so we have 9244 # to replace the "-B" option with "-P" for AIX nm. 9245 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9246 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' 9247 else 9248 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 == "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' 9249 fi 9250 aix_use_runtimelinking=no 9251 9252 # Test if we are trying to use run time linking or normal 9253 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9254 # have runtime linking enabled, and use it for executables. 9255 # For shared libraries, we enable/disable runtime linking 9256 # depending on the kind of the shared library created - 9257 # when "with_aix_soname,aix_use_runtimelinking" is: 9258 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9259 # "aix,yes" lib.so shared, rtl:yes, for executables 9260 # lib.a static archive 9261 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9262 # lib.a(lib.so.V) shared, rtl:no, for executables 9263 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9264 # lib.a(lib.so.V) shared, rtl:no 9265 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9266 # lib.a static archive 9267 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9268 for ld_flag in $LDFLAGS; do 9269 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9270 aix_use_runtimelinking=yes 9271 break 9272 fi 9273 done 9274 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9275 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9276 # so we don't have lib.a shared libs to link our executables. 9277 # We have to force runtime linking in this case. 9278 aix_use_runtimelinking=yes 9279 LDFLAGS="$LDFLAGS -Wl,-brtl" 9280 fi 9281 ;; 9282 esac 9283 9284 exp_sym_flag='-bexport' 9285 no_entry_flag='-bnoentry' 9286 fi 9287 9288 # When large executables or shared objects are built, AIX ld can 9289 # have problems creating the table of contents. If linking a library 9290 # or program results in "error TOC overflow" add -mminimal-toc to 9291 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9292 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9293 9294 archive_cmds='' 9295 hardcode_direct=yes 9296 hardcode_direct_absolute=yes 9297 hardcode_libdir_separator=':' 9298 link_all_deplibs=yes 9299 file_list_spec='$wl-f,' 9300 case $with_aix_soname,$aix_use_runtimelinking in 9301 aix,*) ;; # traditional, no import file 9302 svr4,* | *,yes) # use import file 9303 # The Import File defines what to hardcode. 9304 hardcode_direct=no 9305 hardcode_direct_absolute=no 9306 ;; 9307 esac 9308 9309 if test yes = "$GCC"; then 9310 case $host_os in aix4.[012]|aix4.[012].*) 9311 # We only want to do this on AIX 4.2 and lower, the check 9312 # below for broken collect2 doesn't work under 4.3+ 9313 collect2name=`$CC -print-prog-name=collect2` 9314 if test -f "$collect2name" && 9315 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9316 then 9317 # We have reworked collect2 9318 : 9319 else 9320 # We have old collect2 9321 hardcode_direct=unsupported 9322 # It fails to find uninstalled libraries when the uninstalled 9323 # path is not listed in the libpath. Setting hardcode_minus_L 9324 # to unsupported forces relinking 9325 hardcode_minus_L=yes 9326 hardcode_libdir_flag_spec='-L$libdir' 9327 hardcode_libdir_separator= 9328 fi 9329 ;; 9330 esac 9331 shared_flag='-shared' 9332 if test yes = "$aix_use_runtimelinking"; then 9333 shared_flag="$shared_flag "'$wl-G' 9334 fi 9335 # Need to ensure runtime linking is disabled for the traditional 9336 # shared library, or the linker may eventually find shared libraries 9337 # /with/ Import File - we do not want to mix them. 9338 shared_flag_aix='-shared' 9339 shared_flag_svr4='-shared $wl-G' 9340 else 9341 # not using gcc 9342 if test ia64 = "$host_cpu"; then 9343 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9344 # chokes on -Wl,-G. The following line is correct: 9345 shared_flag='-G' 9346 else 9347 if test yes = "$aix_use_runtimelinking"; then 9348 shared_flag='$wl-G' 9349 else 9350 shared_flag='$wl-bM:SRE' 9351 fi 9352 shared_flag_aix='$wl-bM:SRE' 9353 shared_flag_svr4='$wl-G' 9354 fi 9355 fi 9356 9357 export_dynamic_flag_spec='$wl-bexpall' 9358 # It seems that -bexpall does not export symbols beginning with 9359 # underscore (_), so it is better to generate a list of symbols to export. 9360 always_export_symbols=yes 9361 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9362 # Warning - without using the other runtime loading flags (-brtl), 9363 # -berok will link without error, but may produce a broken library. 9364 allow_undefined_flag='-berok' 9365 # Determine the default libpath from the value encoded in an 9366 # empty executable. 9367 if test set = "${lt_cv_aix_libpath+set}"; then 9368 aix_libpath=$lt_cv_aix_libpath 9369else 9370 if ${lt_cv_aix_libpath_+:} false; then : 9371 $as_echo_n "(cached) " >&6 9372else 9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9374/* end confdefs.h. */ 9375 9376int 9377main () 9378{ 9379 9380 ; 9381 return 0; 9382} 9383_ACEOF 9384if ac_fn_c_try_link "$LINENO"; then : 9385 9386 lt_aix_libpath_sed=' 9387 /Import File Strings/,/^$/ { 9388 /^0/ { 9389 s/^0 *\([^ ]*\) *$/\1/ 9390 p 9391 } 9392 }' 9393 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9394 # Check for a 64-bit object if we didn't find anything. 9395 if test -z "$lt_cv_aix_libpath_"; then 9396 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9397 fi 9398fi 9399rm -f core conftest.err conftest.$ac_objext \ 9400 conftest$ac_exeext conftest.$ac_ext 9401 if test -z "$lt_cv_aix_libpath_"; then 9402 lt_cv_aix_libpath_=/usr/lib:/lib 9403 fi 9404 9405fi 9406 9407 aix_libpath=$lt_cv_aix_libpath_ 9408fi 9409 9410 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9411 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 9412 else 9413 if test ia64 = "$host_cpu"; then 9414 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9415 allow_undefined_flag="-z nodefs" 9416 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" 9417 else 9418 # Determine the default libpath from the value encoded in an 9419 # empty executable. 9420 if test set = "${lt_cv_aix_libpath+set}"; then 9421 aix_libpath=$lt_cv_aix_libpath 9422else 9423 if ${lt_cv_aix_libpath_+:} false; then : 9424 $as_echo_n "(cached) " >&6 9425else 9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9427/* end confdefs.h. */ 9428 9429int 9430main () 9431{ 9432 9433 ; 9434 return 0; 9435} 9436_ACEOF 9437if ac_fn_c_try_link "$LINENO"; then : 9438 9439 lt_aix_libpath_sed=' 9440 /Import File Strings/,/^$/ { 9441 /^0/ { 9442 s/^0 *\([^ ]*\) *$/\1/ 9443 p 9444 } 9445 }' 9446 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9447 # Check for a 64-bit object if we didn't find anything. 9448 if test -z "$lt_cv_aix_libpath_"; then 9449 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9450 fi 9451fi 9452rm -f core conftest.err conftest.$ac_objext \ 9453 conftest$ac_exeext conftest.$ac_ext 9454 if test -z "$lt_cv_aix_libpath_"; then 9455 lt_cv_aix_libpath_=/usr/lib:/lib 9456 fi 9457 9458fi 9459 9460 aix_libpath=$lt_cv_aix_libpath_ 9461fi 9462 9463 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9464 # Warning - without using the other run time loading flags, 9465 # -berok will link without error, but may produce a broken library. 9466 no_undefined_flag=' $wl-bernotok' 9467 allow_undefined_flag=' $wl-berok' 9468 if test yes = "$with_gnu_ld"; then 9469 # We only use this code for GNU lds that support --whole-archive. 9470 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9471 else 9472 # Exported symbols can be pulled into shared objects from archives 9473 whole_archive_flag_spec='$convenience' 9474 fi 9475 archive_cmds_need_lc=yes 9476 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9477 # -brtl affects multiple linker settings, -berok does not and is overridden later 9478 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9479 if test svr4 != "$with_aix_soname"; then 9480 # This is similar to how AIX traditionally builds its shared libraries. 9481 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' 9482 fi 9483 if test aix != "$with_aix_soname"; then 9484 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' 9485 else 9486 # used by -dlpreopen to get the symbols 9487 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9488 fi 9489 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9490 fi 9491 fi 9492 ;; 9493 9494 amigaos*) 9495 case $host_cpu in 9496 powerpc) 9497 # see comment about AmigaOS4 .so support 9498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9499 archive_expsym_cmds='' 9500 ;; 9501 m68k) 9502 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)' 9503 hardcode_libdir_flag_spec='-L$libdir' 9504 hardcode_minus_L=yes 9505 ;; 9506 esac 9507 ;; 9508 9509 bsdi[45]*) 9510 export_dynamic_flag_spec=-rdynamic 9511 ;; 9512 9513 cygwin* | mingw* | pw32* | cegcc*) 9514 # When not using gcc, we currently assume that we are using 9515 # Microsoft Visual C++. 9516 # hardcode_libdir_flag_spec is actually meaningless, as there is 9517 # no search path for DLLs. 9518 case $cc_basename in 9519 cl*) 9520 # Native MSVC 9521 hardcode_libdir_flag_spec=' ' 9522 allow_undefined_flag=unsupported 9523 always_export_symbols=yes 9524 file_list_spec='@' 9525 # Tell ltmain to make .lib files, not .a files. 9526 libext=lib 9527 # Tell ltmain to make .dll files, not .so files. 9528 shrext_cmds=.dll 9529 # FIXME: Setting linknames here is a bad hack. 9530 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9531 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9532 cp "$export_symbols" "$output_objdir/$soname.def"; 9533 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9534 else 9535 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9536 fi~ 9537 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9538 linknames=' 9539 # The linker will not automatically build a static lib if we build a DLL. 9540 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9541 enable_shared_with_static_runtimes=yes 9542 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9543 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9544 # Don't use ranlib 9545 old_postinstall_cmds='chmod 644 $oldlib' 9546 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9547 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9548 case $lt_outputfile in 9549 *.exe|*.EXE) ;; 9550 *) 9551 lt_outputfile=$lt_outputfile.exe 9552 lt_tool_outputfile=$lt_tool_outputfile.exe 9553 ;; 9554 esac~ 9555 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9556 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9557 $RM "$lt_outputfile.manifest"; 9558 fi' 9559 ;; 9560 *) 9561 # Assume MSVC wrapper 9562 hardcode_libdir_flag_spec=' ' 9563 allow_undefined_flag=unsupported 9564 # Tell ltmain to make .lib files, not .a files. 9565 libext=lib 9566 # Tell ltmain to make .dll files, not .so files. 9567 shrext_cmds=.dll 9568 # FIXME: Setting linknames here is a bad hack. 9569 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9570 # The linker will automatically build a .lib file if we build a DLL. 9571 old_archive_from_new_cmds='true' 9572 # FIXME: Should let the user specify the lib program. 9573 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9574 enable_shared_with_static_runtimes=yes 9575 ;; 9576 esac 9577 ;; 9578 9579 darwin* | rhapsody*) 9580 9581 9582 archive_cmds_need_lc=no 9583 hardcode_direct=no 9584 hardcode_automatic=yes 9585 hardcode_shlibpath_var=unsupported 9586 if test yes = "$lt_cv_ld_force_load"; then 9587 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\"`' 9588 9589 else 9590 whole_archive_flag_spec='' 9591 fi 9592 link_all_deplibs=yes 9593 allow_undefined_flag=$_lt_dar_allow_undefined 9594 case $cc_basename in 9595 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9596 *) _lt_dar_can_shared=$GCC ;; 9597 esac 9598 if test yes = "$_lt_dar_can_shared"; then 9599 output_verbose_link_cmd=func_echo_all 9600 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9601 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9602 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" 9603 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" 9604 9605 else 9606 ld_shlibs=no 9607 fi 9608 9609 ;; 9610 9611 dgux*) 9612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9613 hardcode_libdir_flag_spec='-L$libdir' 9614 hardcode_shlibpath_var=no 9615 ;; 9616 9617 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9618 # support. Future versions do this automatically, but an explicit c++rt0.o 9619 # does not break anything, and helps significantly (at the cost of a little 9620 # extra space). 9621 freebsd2.2*) 9622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9623 hardcode_libdir_flag_spec='-R$libdir' 9624 hardcode_direct=yes 9625 hardcode_shlibpath_var=no 9626 ;; 9627 9628 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9629 freebsd2.*) 9630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9631 hardcode_direct=yes 9632 hardcode_minus_L=yes 9633 hardcode_shlibpath_var=no 9634 ;; 9635 9636 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9637 freebsd* | dragonfly*) 9638 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9639 hardcode_libdir_flag_spec='-R$libdir' 9640 hardcode_direct=yes 9641 hardcode_shlibpath_var=no 9642 ;; 9643 9644 hpux9*) 9645 if test yes = "$GCC"; then 9646 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' 9647 else 9648 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' 9649 fi 9650 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9651 hardcode_libdir_separator=: 9652 hardcode_direct=yes 9653 9654 # hardcode_minus_L: Not really in the search PATH, 9655 # but as the default location of the library. 9656 hardcode_minus_L=yes 9657 export_dynamic_flag_spec='$wl-E' 9658 ;; 9659 9660 hpux10*) 9661 if test yes,no = "$GCC,$with_gnu_ld"; then 9662 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9663 else 9664 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9665 fi 9666 if test no = "$with_gnu_ld"; then 9667 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9668 hardcode_libdir_separator=: 9669 hardcode_direct=yes 9670 hardcode_direct_absolute=yes 9671 export_dynamic_flag_spec='$wl-E' 9672 # hardcode_minus_L: Not really in the search PATH, 9673 # but as the default location of the library. 9674 hardcode_minus_L=yes 9675 fi 9676 ;; 9677 9678 hpux11*) 9679 if test yes,no = "$GCC,$with_gnu_ld"; then 9680 case $host_cpu in 9681 hppa*64*) 9682 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9683 ;; 9684 ia64*) 9685 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9686 ;; 9687 *) 9688 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9689 ;; 9690 esac 9691 else 9692 case $host_cpu in 9693 hppa*64*) 9694 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9695 ;; 9696 ia64*) 9697 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9698 ;; 9699 *) 9700 9701 # Older versions of the 11.00 compiler do not understand -b yet 9702 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9704$as_echo_n "checking if $CC understands -b... " >&6; } 9705if ${lt_cv_prog_compiler__b+:} false; then : 9706 $as_echo_n "(cached) " >&6 9707else 9708 lt_cv_prog_compiler__b=no 9709 save_LDFLAGS=$LDFLAGS 9710 LDFLAGS="$LDFLAGS -b" 9711 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9713 # The linker can only warn and ignore the option if not recognized 9714 # So say no if there are warnings 9715 if test -s conftest.err; then 9716 # Append any errors to the config.log. 9717 cat conftest.err 1>&5 9718 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9720 if diff conftest.exp conftest.er2 >/dev/null; then 9721 lt_cv_prog_compiler__b=yes 9722 fi 9723 else 9724 lt_cv_prog_compiler__b=yes 9725 fi 9726 fi 9727 $RM -r conftest* 9728 LDFLAGS=$save_LDFLAGS 9729 9730fi 9731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9732$as_echo "$lt_cv_prog_compiler__b" >&6; } 9733 9734if test yes = "$lt_cv_prog_compiler__b"; then 9735 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9736else 9737 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9738fi 9739 9740 ;; 9741 esac 9742 fi 9743 if test no = "$with_gnu_ld"; then 9744 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9745 hardcode_libdir_separator=: 9746 9747 case $host_cpu in 9748 hppa*64*|ia64*) 9749 hardcode_direct=no 9750 hardcode_shlibpath_var=no 9751 ;; 9752 *) 9753 hardcode_direct=yes 9754 hardcode_direct_absolute=yes 9755 export_dynamic_flag_spec='$wl-E' 9756 9757 # hardcode_minus_L: Not really in the search PATH, 9758 # but as the default location of the library. 9759 hardcode_minus_L=yes 9760 ;; 9761 esac 9762 fi 9763 ;; 9764 9765 irix5* | irix6* | nonstopux*) 9766 if test yes = "$GCC"; then 9767 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' 9768 # Try to use the -exported_symbol ld option, if it does not 9769 # work, assume that -exports_file does not work either and 9770 # implicitly export all symbols. 9771 # This should be the same for all languages, so no per-tag cache variable. 9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9773$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9774if ${lt_cv_irix_exported_symbol+:} false; then : 9775 $as_echo_n "(cached) " >&6 9776else 9777 save_LDFLAGS=$LDFLAGS 9778 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9780/* end confdefs.h. */ 9781int foo (void) { return 0; } 9782_ACEOF 9783if ac_fn_c_try_link "$LINENO"; then : 9784 lt_cv_irix_exported_symbol=yes 9785else 9786 lt_cv_irix_exported_symbol=no 9787fi 9788rm -f core conftest.err conftest.$ac_objext \ 9789 conftest$ac_exeext conftest.$ac_ext 9790 LDFLAGS=$save_LDFLAGS 9791fi 9792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9793$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9794 if test yes = "$lt_cv_irix_exported_symbol"; then 9795 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' 9796 fi 9797 else 9798 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' 9799 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' 9800 fi 9801 archive_cmds_need_lc='no' 9802 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9803 hardcode_libdir_separator=: 9804 inherit_rpath=yes 9805 link_all_deplibs=yes 9806 ;; 9807 9808 linux*) 9809 case $cc_basename in 9810 tcc*) 9811 # Fabrice Bellard et al's Tiny C Compiler 9812 ld_shlibs=yes 9813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9814 ;; 9815 esac 9816 ;; 9817 9818 netbsd*) 9819 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9821 else 9822 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9823 fi 9824 hardcode_libdir_flag_spec='-R$libdir' 9825 hardcode_direct=yes 9826 hardcode_shlibpath_var=no 9827 ;; 9828 9829 newsos6) 9830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9831 hardcode_direct=yes 9832 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9833 hardcode_libdir_separator=: 9834 hardcode_shlibpath_var=no 9835 ;; 9836 9837 *nto* | *qnx*) 9838 ;; 9839 9840 openbsd* | bitrig*) 9841 if test -f /usr/libexec/ld.so; then 9842 hardcode_direct=yes 9843 hardcode_shlibpath_var=no 9844 hardcode_direct_absolute=yes 9845 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9846 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9847 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9848 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9849 export_dynamic_flag_spec='$wl-E' 9850 else 9851 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9852 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9853 fi 9854 else 9855 ld_shlibs=no 9856 fi 9857 ;; 9858 9859 os2*) 9860 hardcode_libdir_flag_spec='-L$libdir' 9861 hardcode_minus_L=yes 9862 allow_undefined_flag=unsupported 9863 shrext_cmds=.dll 9864 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9865 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9866 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9867 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9868 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9869 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9870 emximp -o $lib $output_objdir/$libname.def' 9871 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9872 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9873 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9874 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9875 prefix_cmds="$SED"~ 9876 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9877 prefix_cmds="$prefix_cmds -e 1d"; 9878 fi~ 9879 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9880 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9881 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9882 emximp -o $lib $output_objdir/$libname.def' 9883 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9884 enable_shared_with_static_runtimes=yes 9885 ;; 9886 9887 osf3*) 9888 if test yes = "$GCC"; then 9889 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9890 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' 9891 else 9892 allow_undefined_flag=' -expect_unresolved \*' 9893 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' 9894 fi 9895 archive_cmds_need_lc='no' 9896 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9897 hardcode_libdir_separator=: 9898 ;; 9899 9900 osf4* | osf5*) # as osf3* with the addition of -msym flag 9901 if test yes = "$GCC"; then 9902 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9903 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' 9904 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9905 else 9906 allow_undefined_flag=' -expect_unresolved \*' 9907 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' 9908 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~ 9909 $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' 9910 9911 # Both c and cxx compiler support -rpath directly 9912 hardcode_libdir_flag_spec='-rpath $libdir' 9913 fi 9914 archive_cmds_need_lc='no' 9915 hardcode_libdir_separator=: 9916 ;; 9917 9918 solaris*) 9919 no_undefined_flag=' -z defs' 9920 if test yes = "$GCC"; then 9921 wlarc='$wl' 9922 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9923 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9924 $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' 9925 else 9926 case `$CC -V 2>&1` in 9927 *"Compilers 5.0"*) 9928 wlarc='' 9929 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9930 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9931 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9932 ;; 9933 *) 9934 wlarc='$wl' 9935 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9936 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9937 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9938 ;; 9939 esac 9940 fi 9941 hardcode_libdir_flag_spec='-R$libdir' 9942 hardcode_shlibpath_var=no 9943 case $host_os in 9944 solaris2.[0-5] | solaris2.[0-5].*) ;; 9945 *) 9946 # The compiler driver will combine and reorder linker options, 9947 # but understands '-z linker_flag'. GCC discards it without '$wl', 9948 # but is careful enough not to reorder. 9949 # Supported since Solaris 2.6 (maybe 2.5.1?) 9950 if test yes = "$GCC"; then 9951 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9952 else 9953 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9954 fi 9955 ;; 9956 esac 9957 link_all_deplibs=yes 9958 ;; 9959 9960 sunos4*) 9961 if test sequent = "$host_vendor"; then 9962 # Use $CC to link under sequent, because it throws in some extra .o 9963 # files that make .init and .fini sections work. 9964 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9965 else 9966 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9967 fi 9968 hardcode_libdir_flag_spec='-L$libdir' 9969 hardcode_direct=yes 9970 hardcode_minus_L=yes 9971 hardcode_shlibpath_var=no 9972 ;; 9973 9974 sysv4) 9975 case $host_vendor in 9976 sni) 9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9978 hardcode_direct=yes # is this really true??? 9979 ;; 9980 siemens) 9981 ## LD is ld it makes a PLAMLIB 9982 ## CC just makes a GrossModule. 9983 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9984 reload_cmds='$CC -r -o $output$reload_objs' 9985 hardcode_direct=no 9986 ;; 9987 motorola) 9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9989 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9990 ;; 9991 esac 9992 runpath_var='LD_RUN_PATH' 9993 hardcode_shlibpath_var=no 9994 ;; 9995 9996 sysv4.3*) 9997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9998 hardcode_shlibpath_var=no 9999 export_dynamic_flag_spec='-Bexport' 10000 ;; 10001 10002 sysv4*MP*) 10003 if test -d /usr/nec; then 10004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10005 hardcode_shlibpath_var=no 10006 runpath_var=LD_RUN_PATH 10007 hardcode_runpath_var=yes 10008 ld_shlibs=yes 10009 fi 10010 ;; 10011 10012 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10013 no_undefined_flag='$wl-z,text' 10014 archive_cmds_need_lc=no 10015 hardcode_shlibpath_var=no 10016 runpath_var='LD_RUN_PATH' 10017 10018 if test yes = "$GCC"; then 10019 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10020 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10021 else 10022 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10023 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10024 fi 10025 ;; 10026 10027 sysv5* | sco3.2v5* | sco5v6*) 10028 # Note: We CANNOT use -z defs as we might desire, because we do not 10029 # link with -lc, and that would cause any symbols used from libc to 10030 # always be unresolved, which means just about no library would 10031 # ever link correctly. If we're not using GNU ld we use -z text 10032 # though, which does catch some bad symbols but isn't as heavy-handed 10033 # as -z defs. 10034 no_undefined_flag='$wl-z,text' 10035 allow_undefined_flag='$wl-z,nodefs' 10036 archive_cmds_need_lc=no 10037 hardcode_shlibpath_var=no 10038 hardcode_libdir_flag_spec='$wl-R,$libdir' 10039 hardcode_libdir_separator=':' 10040 link_all_deplibs=yes 10041 export_dynamic_flag_spec='$wl-Bexport' 10042 runpath_var='LD_RUN_PATH' 10043 10044 if test yes = "$GCC"; then 10045 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10046 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10047 else 10048 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10049 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10050 fi 10051 ;; 10052 10053 uts4*) 10054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10055 hardcode_libdir_flag_spec='-L$libdir' 10056 hardcode_shlibpath_var=no 10057 ;; 10058 10059 *) 10060 ld_shlibs=no 10061 ;; 10062 esac 10063 10064 if test sni = "$host_vendor"; then 10065 case $host in 10066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10067 export_dynamic_flag_spec='$wl-Blargedynsym' 10068 ;; 10069 esac 10070 fi 10071 fi 10072 10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10074$as_echo "$ld_shlibs" >&6; } 10075test no = "$ld_shlibs" && can_build_shared=no 10076 10077with_gnu_ld=$with_gnu_ld 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093# 10094# Do we need to explicitly link libc? 10095# 10096case "x$archive_cmds_need_lc" in 10097x|xyes) 10098 # Assume -lc should be added 10099 archive_cmds_need_lc=yes 10100 10101 if test yes,yes = "$GCC,$enable_shared"; then 10102 case $archive_cmds in 10103 *'~'*) 10104 # FIXME: we may have to deal with multi-command sequences. 10105 ;; 10106 '$CC '*) 10107 # Test whether the compiler implicitly links with -lc since on some 10108 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10109 # to ld, don't add -lc before -lgcc. 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10111$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10112if ${lt_cv_archive_cmds_need_lc+:} false; then : 10113 $as_echo_n "(cached) " >&6 10114else 10115 $RM conftest* 10116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10117 10118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10119 (eval $ac_compile) 2>&5 10120 ac_status=$? 10121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10122 test $ac_status = 0; } 2>conftest.err; then 10123 soname=conftest 10124 lib=conftest 10125 libobjs=conftest.$ac_objext 10126 deplibs= 10127 wl=$lt_prog_compiler_wl 10128 pic_flag=$lt_prog_compiler_pic 10129 compiler_flags=-v 10130 linker_flags=-v 10131 verstring= 10132 output_objdir=. 10133 libname=conftest 10134 lt_save_allow_undefined_flag=$allow_undefined_flag 10135 allow_undefined_flag= 10136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10137 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10138 ac_status=$? 10139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10140 test $ac_status = 0; } 10141 then 10142 lt_cv_archive_cmds_need_lc=no 10143 else 10144 lt_cv_archive_cmds_need_lc=yes 10145 fi 10146 allow_undefined_flag=$lt_save_allow_undefined_flag 10147 else 10148 cat conftest.err 1>&5 10149 fi 10150 $RM conftest* 10151 10152fi 10153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10154$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10155 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10156 ;; 10157 esac 10158 fi 10159 ;; 10160esac 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10314$as_echo_n "checking dynamic linker characteristics... " >&6; } 10315 10316if test yes = "$GCC"; then 10317 case $host_os in 10318 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10319 *) lt_awk_arg='/^libraries:/' ;; 10320 esac 10321 case $host_os in 10322 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10323 *) lt_sed_strip_eq='s|=/|/|g' ;; 10324 esac 10325 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10326 case $lt_search_path_spec in 10327 *\;*) 10328 # if the path contains ";" then we assume it to be the separator 10329 # otherwise default to the standard path separator (i.e. ":") - it is 10330 # assumed that no part of a normal pathname contains ";" but that should 10331 # okay in the real world where ";" in dirpaths is itself problematic. 10332 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10333 ;; 10334 *) 10335 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10336 ;; 10337 esac 10338 # Ok, now we have the path, separated by spaces, we can step through it 10339 # and add multilib dir if necessary... 10340 lt_tmp_lt_search_path_spec= 10341 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10342 # ...but if some path component already ends with the multilib dir we assume 10343 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10344 case "$lt_multi_os_dir; $lt_search_path_spec " in 10345 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10346 lt_multi_os_dir= 10347 ;; 10348 esac 10349 for lt_sys_path in $lt_search_path_spec; do 10350 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10351 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10352 elif test -n "$lt_multi_os_dir"; then 10353 test -d "$lt_sys_path" && \ 10354 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10355 fi 10356 done 10357 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10358BEGIN {RS = " "; FS = "/|\n";} { 10359 lt_foo = ""; 10360 lt_count = 0; 10361 for (lt_i = NF; lt_i > 0; lt_i--) { 10362 if ($lt_i != "" && $lt_i != ".") { 10363 if ($lt_i == "..") { 10364 lt_count++; 10365 } else { 10366 if (lt_count == 0) { 10367 lt_foo = "/" $lt_i lt_foo; 10368 } else { 10369 lt_count--; 10370 } 10371 } 10372 } 10373 } 10374 if (lt_foo != "") { lt_freq[lt_foo]++; } 10375 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10376}'` 10377 # AWK program above erroneously prepends '/' to C:/dos/paths 10378 # for these hosts. 10379 case $host_os in 10380 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10381 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10382 esac 10383 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10384else 10385 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10386fi 10387library_names_spec= 10388libname_spec='lib$name' 10389soname_spec= 10390shrext_cmds=.so 10391postinstall_cmds= 10392postuninstall_cmds= 10393finish_cmds= 10394finish_eval= 10395shlibpath_var= 10396shlibpath_overrides_runpath=unknown 10397version_type=none 10398dynamic_linker="$host_os ld.so" 10399sys_lib_dlsearch_path_spec="/lib /usr/lib" 10400need_lib_prefix=unknown 10401hardcode_into_libs=no 10402 10403# when you set need_version to no, make sure it does not cause -set_version 10404# flags to be left without arguments 10405need_version=unknown 10406 10407 10408 10409case $host_os in 10410aix3*) 10411 version_type=linux # correct to gnu/linux during the next big refactor 10412 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10413 shlibpath_var=LIBPATH 10414 10415 # AIX 3 has no versioning support, so we append a major version to the name. 10416 soname_spec='$libname$release$shared_ext$major' 10417 ;; 10418 10419aix[4-9]*) 10420 version_type=linux # correct to gnu/linux during the next big refactor 10421 need_lib_prefix=no 10422 need_version=no 10423 hardcode_into_libs=yes 10424 if test ia64 = "$host_cpu"; then 10425 # AIX 5 supports IA64 10426 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10427 shlibpath_var=LD_LIBRARY_PATH 10428 else 10429 # With GCC up to 2.95.x, collect2 would create an import file 10430 # for dependence libraries. The import file would start with 10431 # the line '#! .'. This would cause the generated library to 10432 # depend on '.', always an invalid library. This was fixed in 10433 # development snapshots of GCC prior to 3.0. 10434 case $host_os in 10435 aix4 | aix4.[01] | aix4.[01].*) 10436 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10437 echo ' yes ' 10438 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10439 : 10440 else 10441 can_build_shared=no 10442 fi 10443 ;; 10444 esac 10445 # Using Import Files as archive members, it is possible to support 10446 # filename-based versioning of shared library archives on AIX. While 10447 # this would work for both with and without runtime linking, it will 10448 # prevent static linking of such archives. So we do filename-based 10449 # shared library versioning with .so extension only, which is used 10450 # when both runtime linking and shared linking is enabled. 10451 # Unfortunately, runtime linking may impact performance, so we do 10452 # not want this to be the default eventually. Also, we use the 10453 # versioned .so libs for executables only if there is the -brtl 10454 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10455 # To allow for filename-based versioning support, we need to create 10456 # libNAME.so.V as an archive file, containing: 10457 # *) an Import File, referring to the versioned filename of the 10458 # archive as well as the shared archive member, telling the 10459 # bitwidth (32 or 64) of that shared object, and providing the 10460 # list of exported symbols of that shared object, eventually 10461 # decorated with the 'weak' keyword 10462 # *) the shared object with the F_LOADONLY flag set, to really avoid 10463 # it being seen by the linker. 10464 # At run time we better use the real file rather than another symlink, 10465 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10466 10467 case $with_aix_soname,$aix_use_runtimelinking in 10468 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10469 # soname into executable. Probably we can add versioning support to 10470 # collect2, so additional links can be useful in future. 10471 aix,yes) # traditional libtool 10472 dynamic_linker='AIX unversionable lib.so' 10473 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10474 # instead of lib<name>.a to let people know that these are not 10475 # typical AIX shared libraries. 10476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10477 ;; 10478 aix,no) # traditional AIX only 10479 dynamic_linker='AIX lib.a(lib.so.V)' 10480 # We preserve .a as extension for shared libraries through AIX4.2 10481 # and later when we are not doing run time linking. 10482 library_names_spec='$libname$release.a $libname.a' 10483 soname_spec='$libname$release$shared_ext$major' 10484 ;; 10485 svr4,*) # full svr4 only 10486 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10487 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10488 # We do not specify a path in Import Files, so LIBPATH fires. 10489 shlibpath_overrides_runpath=yes 10490 ;; 10491 *,yes) # both, prefer svr4 10492 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10493 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10494 # unpreferred sharedlib libNAME.a needs extra handling 10495 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"' 10496 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"' 10497 # We do not specify a path in Import Files, so LIBPATH fires. 10498 shlibpath_overrides_runpath=yes 10499 ;; 10500 *,no) # both, prefer aix 10501 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10502 library_names_spec='$libname$release.a $libname.a' 10503 soname_spec='$libname$release$shared_ext$major' 10504 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10505 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)' 10506 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"' 10507 ;; 10508 esac 10509 shlibpath_var=LIBPATH 10510 fi 10511 ;; 10512 10513amigaos*) 10514 case $host_cpu in 10515 powerpc) 10516 # Since July 2007 AmigaOS4 officially supports .so libraries. 10517 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10519 ;; 10520 m68k) 10521 library_names_spec='$libname.ixlibrary $libname.a' 10522 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10523 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' 10524 ;; 10525 esac 10526 ;; 10527 10528beos*) 10529 library_names_spec='$libname$shared_ext' 10530 dynamic_linker="$host_os ld.so" 10531 shlibpath_var=LIBRARY_PATH 10532 ;; 10533 10534bsdi[45]*) 10535 version_type=linux # correct to gnu/linux during the next big refactor 10536 need_version=no 10537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10538 soname_spec='$libname$release$shared_ext$major' 10539 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10540 shlibpath_var=LD_LIBRARY_PATH 10541 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10542 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10543 # the default ld.so.conf also contains /usr/contrib/lib and 10544 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10545 # libtool to hard-code these into programs 10546 ;; 10547 10548cygwin* | mingw* | pw32* | cegcc*) 10549 version_type=windows 10550 shrext_cmds=.dll 10551 need_version=no 10552 need_lib_prefix=no 10553 10554 case $GCC,$cc_basename in 10555 yes,*) 10556 # gcc 10557 library_names_spec='$libname.dll.a' 10558 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10559 postinstall_cmds='base_file=`basename \$file`~ 10560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10561 dldir=$destdir/`dirname \$dlpath`~ 10562 test -d \$dldir || mkdir -p \$dldir~ 10563 $install_prog $dir/$dlname \$dldir/$dlname~ 10564 chmod a+x \$dldir/$dlname~ 10565 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10566 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10567 fi' 10568 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10569 dlpath=$dir/\$dldll~ 10570 $RM \$dlpath' 10571 shlibpath_overrides_runpath=yes 10572 10573 case $host_os in 10574 cygwin*) 10575 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10576 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10577 10578 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10579 ;; 10580 mingw* | cegcc*) 10581 # MinGW DLLs use traditional 'lib' prefix 10582 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10583 ;; 10584 pw32*) 10585 # pw32 DLLs use 'pw' prefix rather than 'lib' 10586 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10587 ;; 10588 esac 10589 dynamic_linker='Win32 ld.exe' 10590 ;; 10591 10592 *,cl*) 10593 # Native MSVC 10594 libname_spec='$name' 10595 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10596 library_names_spec='$libname.dll.lib' 10597 10598 case $build_os in 10599 mingw*) 10600 sys_lib_search_path_spec= 10601 lt_save_ifs=$IFS 10602 IFS=';' 10603 for lt_path in $LIB 10604 do 10605 IFS=$lt_save_ifs 10606 # Let DOS variable expansion print the short 8.3 style file name. 10607 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10608 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10609 done 10610 IFS=$lt_save_ifs 10611 # Convert to MSYS style. 10612 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10613 ;; 10614 cygwin*) 10615 # Convert to unix form, then to dos form, then back to unix form 10616 # but this time dos style (no spaces!) so that the unix form looks 10617 # like /cygdrive/c/PROGRA~1:/cygdr... 10618 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10619 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10620 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10621 ;; 10622 *) 10623 sys_lib_search_path_spec=$LIB 10624 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10625 # It is most probably a Windows format PATH. 10626 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10627 else 10628 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10629 fi 10630 # FIXME: find the short name or the path components, as spaces are 10631 # common. (e.g. "Program Files" -> "PROGRA~1") 10632 ;; 10633 esac 10634 10635 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10636 postinstall_cmds='base_file=`basename \$file`~ 10637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10638 dldir=$destdir/`dirname \$dlpath`~ 10639 test -d \$dldir || mkdir -p \$dldir~ 10640 $install_prog $dir/$dlname \$dldir/$dlname' 10641 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10642 dlpath=$dir/\$dldll~ 10643 $RM \$dlpath' 10644 shlibpath_overrides_runpath=yes 10645 dynamic_linker='Win32 link.exe' 10646 ;; 10647 10648 *) 10649 # Assume MSVC wrapper 10650 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10651 dynamic_linker='Win32 ld.exe' 10652 ;; 10653 esac 10654 # FIXME: first we should search . and the directory the executable is in 10655 shlibpath_var=PATH 10656 ;; 10657 10658darwin* | rhapsody*) 10659 dynamic_linker="$host_os dyld" 10660 version_type=darwin 10661 need_lib_prefix=no 10662 need_version=no 10663 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10664 soname_spec='$libname$release$major$shared_ext' 10665 shlibpath_overrides_runpath=yes 10666 shlibpath_var=DYLD_LIBRARY_PATH 10667 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10668 10669 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10670 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10671 ;; 10672 10673dgux*) 10674 version_type=linux # correct to gnu/linux during the next big refactor 10675 need_lib_prefix=no 10676 need_version=no 10677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10678 soname_spec='$libname$release$shared_ext$major' 10679 shlibpath_var=LD_LIBRARY_PATH 10680 ;; 10681 10682freebsd* | dragonfly*) 10683 # DragonFly does not have aout. When/if they implement a new 10684 # versioning mechanism, adjust this. 10685 if test -x /usr/bin/objformat; then 10686 objformat=`/usr/bin/objformat` 10687 else 10688 case $host_os in 10689 freebsd[23].*) objformat=aout ;; 10690 *) objformat=elf ;; 10691 esac 10692 fi 10693 version_type=freebsd-$objformat 10694 case $version_type in 10695 freebsd-elf*) 10696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10697 soname_spec='$libname$release$shared_ext$major' 10698 need_version=no 10699 need_lib_prefix=no 10700 ;; 10701 freebsd-*) 10702 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10703 need_version=yes 10704 ;; 10705 esac 10706 shlibpath_var=LD_LIBRARY_PATH 10707 case $host_os in 10708 freebsd2.*) 10709 shlibpath_overrides_runpath=yes 10710 ;; 10711 freebsd3.[01]* | freebsdelf3.[01]*) 10712 shlibpath_overrides_runpath=yes 10713 hardcode_into_libs=yes 10714 ;; 10715 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10716 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10717 shlibpath_overrides_runpath=no 10718 hardcode_into_libs=yes 10719 ;; 10720 *) # from 4.6 on, and DragonFly 10721 shlibpath_overrides_runpath=yes 10722 hardcode_into_libs=yes 10723 ;; 10724 esac 10725 ;; 10726 10727haiku*) 10728 version_type=linux # correct to gnu/linux during the next big refactor 10729 need_lib_prefix=no 10730 need_version=no 10731 dynamic_linker="$host_os runtime_loader" 10732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10733 soname_spec='$libname$release$shared_ext$major' 10734 shlibpath_var=LIBRARY_PATH 10735 shlibpath_overrides_runpath=no 10736 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10737 hardcode_into_libs=yes 10738 ;; 10739 10740hpux9* | hpux10* | hpux11*) 10741 # Give a soname corresponding to the major version so that dld.sl refuses to 10742 # link against other versions. 10743 version_type=sunos 10744 need_lib_prefix=no 10745 need_version=no 10746 case $host_cpu in 10747 ia64*) 10748 shrext_cmds='.so' 10749 hardcode_into_libs=yes 10750 dynamic_linker="$host_os dld.so" 10751 shlibpath_var=LD_LIBRARY_PATH 10752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10754 soname_spec='$libname$release$shared_ext$major' 10755 if test 32 = "$HPUX_IA64_MODE"; then 10756 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10757 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10758 else 10759 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10760 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10761 fi 10762 ;; 10763 hppa*64*) 10764 shrext_cmds='.sl' 10765 hardcode_into_libs=yes 10766 dynamic_linker="$host_os dld.sl" 10767 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10770 soname_spec='$libname$release$shared_ext$major' 10771 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10773 ;; 10774 *) 10775 shrext_cmds='.sl' 10776 dynamic_linker="$host_os dld.sl" 10777 shlibpath_var=SHLIB_PATH 10778 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10780 soname_spec='$libname$release$shared_ext$major' 10781 ;; 10782 esac 10783 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10784 postinstall_cmds='chmod 555 $lib' 10785 # or fails outright, so override atomically: 10786 install_override_mode=555 10787 ;; 10788 10789interix[3-9]*) 10790 version_type=linux # correct to gnu/linux during the next big refactor 10791 need_lib_prefix=no 10792 need_version=no 10793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10794 soname_spec='$libname$release$shared_ext$major' 10795 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10796 shlibpath_var=LD_LIBRARY_PATH 10797 shlibpath_overrides_runpath=no 10798 hardcode_into_libs=yes 10799 ;; 10800 10801irix5* | irix6* | nonstopux*) 10802 case $host_os in 10803 nonstopux*) version_type=nonstopux ;; 10804 *) 10805 if test yes = "$lt_cv_prog_gnu_ld"; then 10806 version_type=linux # correct to gnu/linux during the next big refactor 10807 else 10808 version_type=irix 10809 fi ;; 10810 esac 10811 need_lib_prefix=no 10812 need_version=no 10813 soname_spec='$libname$release$shared_ext$major' 10814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10815 case $host_os in 10816 irix5* | nonstopux*) 10817 libsuff= shlibsuff= 10818 ;; 10819 *) 10820 case $LD in # libtool.m4 will add one of these switches to LD 10821 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10822 libsuff= shlibsuff= libmagic=32-bit;; 10823 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10824 libsuff=32 shlibsuff=N32 libmagic=N32;; 10825 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10826 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10827 *) libsuff= shlibsuff= libmagic=never-match;; 10828 esac 10829 ;; 10830 esac 10831 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10832 shlibpath_overrides_runpath=no 10833 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10834 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10835 hardcode_into_libs=yes 10836 ;; 10837 10838# No shared lib support for Linux oldld, aout, or coff. 10839linux*oldld* | linux*aout* | linux*coff*) 10840 dynamic_linker=no 10841 ;; 10842 10843linux*android*) 10844 version_type=none # Android doesn't support versioned libraries. 10845 need_lib_prefix=no 10846 need_version=no 10847 library_names_spec='$libname$release$shared_ext' 10848 soname_spec='$libname$release$shared_ext' 10849 finish_cmds= 10850 shlibpath_var=LD_LIBRARY_PATH 10851 shlibpath_overrides_runpath=yes 10852 10853 # This implies no fast_install, which is unacceptable. 10854 # Some rework will be needed to allow for fast_install 10855 # before this can be enabled. 10856 hardcode_into_libs=yes 10857 10858 dynamic_linker='Android linker' 10859 # Don't embed -rpath directories since the linker doesn't support them. 10860 hardcode_libdir_flag_spec='-L$libdir' 10861 ;; 10862 10863# This must be glibc/ELF. 10864linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10865 version_type=linux # correct to gnu/linux during the next big refactor 10866 need_lib_prefix=no 10867 need_version=no 10868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10869 soname_spec='$libname$release$shared_ext$major' 10870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10871 shlibpath_var=LD_LIBRARY_PATH 10872 shlibpath_overrides_runpath=no 10873 10874 # Some binutils ld are patched to set DT_RUNPATH 10875 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10876 $as_echo_n "(cached) " >&6 10877else 10878 lt_cv_shlibpath_overrides_runpath=no 10879 save_LDFLAGS=$LDFLAGS 10880 save_libdir=$libdir 10881 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10882 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10884/* end confdefs.h. */ 10885 10886int 10887main () 10888{ 10889 10890 ; 10891 return 0; 10892} 10893_ACEOF 10894if ac_fn_c_try_link "$LINENO"; then : 10895 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10896 lt_cv_shlibpath_overrides_runpath=yes 10897fi 10898fi 10899rm -f core conftest.err conftest.$ac_objext \ 10900 conftest$ac_exeext conftest.$ac_ext 10901 LDFLAGS=$save_LDFLAGS 10902 libdir=$save_libdir 10903 10904fi 10905 10906 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10907 10908 # This implies no fast_install, which is unacceptable. 10909 # Some rework will be needed to allow for fast_install 10910 # before this can be enabled. 10911 hardcode_into_libs=yes 10912 10913 # Ideally, we could use ldconfig to report *all* directores which are 10914 # searched for libraries, however this is still not possible. Aside from not 10915 # being certain /sbin/ldconfig is available, command 10916 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10917 # even though it is searched at run-time. Try to do the best guess by 10918 # appending ld.so.conf contents (and includes) to the search path. 10919 if test -f /etc/ld.so.conf; then 10920 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' ' '` 10921 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10922 fi 10923 10924 # We used to test for /lib/ld.so.1 and disable shared libraries on 10925 # powerpc, because MkLinux only supported shared libraries with the 10926 # GNU dynamic linker. Since this was broken with cross compilers, 10927 # most powerpc-linux boxes support dynamic linking these days and 10928 # people can always --disable-shared, the test was removed, and we 10929 # assume the GNU/Linux dynamic linker is in use. 10930 dynamic_linker='GNU/Linux ld.so' 10931 ;; 10932 10933netbsd*) 10934 version_type=sunos 10935 need_lib_prefix=no 10936 need_version=no 10937 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10938 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10940 dynamic_linker='NetBSD (a.out) ld.so' 10941 else 10942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10943 soname_spec='$libname$release$shared_ext$major' 10944 dynamic_linker='NetBSD ld.elf_so' 10945 fi 10946 shlibpath_var=LD_LIBRARY_PATH 10947 shlibpath_overrides_runpath=yes 10948 hardcode_into_libs=yes 10949 ;; 10950 10951newsos6) 10952 version_type=linux # correct to gnu/linux during the next big refactor 10953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10954 shlibpath_var=LD_LIBRARY_PATH 10955 shlibpath_overrides_runpath=yes 10956 ;; 10957 10958*nto* | *qnx*) 10959 version_type=qnx 10960 need_lib_prefix=no 10961 need_version=no 10962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10963 soname_spec='$libname$release$shared_ext$major' 10964 shlibpath_var=LD_LIBRARY_PATH 10965 shlibpath_overrides_runpath=no 10966 hardcode_into_libs=yes 10967 dynamic_linker='ldqnx.so' 10968 ;; 10969 10970openbsd* | bitrig*) 10971 version_type=sunos 10972 sys_lib_dlsearch_path_spec=/usr/lib 10973 need_lib_prefix=no 10974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10975 need_version=no 10976 else 10977 need_version=yes 10978 fi 10979 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10981 shlibpath_var=LD_LIBRARY_PATH 10982 shlibpath_overrides_runpath=yes 10983 ;; 10984 10985os2*) 10986 libname_spec='$name' 10987 version_type=windows 10988 shrext_cmds=.dll 10989 need_version=no 10990 need_lib_prefix=no 10991 # OS/2 can only load a DLL with a base name of 8 characters or less. 10992 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 10993 v=$($ECHO $release$versuffix | tr -d .-); 10994 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 10995 $ECHO $n$v`$shared_ext' 10996 library_names_spec='${libname}_dll.$libext' 10997 dynamic_linker='OS/2 ld.exe' 10998 shlibpath_var=BEGINLIBPATH 10999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11001 postinstall_cmds='base_file=`basename \$file`~ 11002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11003 dldir=$destdir/`dirname \$dlpath`~ 11004 test -d \$dldir || mkdir -p \$dldir~ 11005 $install_prog $dir/$dlname \$dldir/$dlname~ 11006 chmod a+x \$dldir/$dlname~ 11007 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11008 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11009 fi' 11010 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11011 dlpath=$dir/\$dldll~ 11012 $RM \$dlpath' 11013 ;; 11014 11015osf3* | osf4* | osf5*) 11016 version_type=osf 11017 need_lib_prefix=no 11018 need_version=no 11019 soname_spec='$libname$release$shared_ext$major' 11020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11021 shlibpath_var=LD_LIBRARY_PATH 11022 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11024 ;; 11025 11026rdos*) 11027 dynamic_linker=no 11028 ;; 11029 11030solaris*) 11031 version_type=linux # correct to gnu/linux during the next big refactor 11032 need_lib_prefix=no 11033 need_version=no 11034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11035 soname_spec='$libname$release$shared_ext$major' 11036 shlibpath_var=LD_LIBRARY_PATH 11037 shlibpath_overrides_runpath=yes 11038 hardcode_into_libs=yes 11039 # ldd complains unless libraries are executable 11040 postinstall_cmds='chmod +x $lib' 11041 ;; 11042 11043sunos4*) 11044 version_type=sunos 11045 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11046 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11047 shlibpath_var=LD_LIBRARY_PATH 11048 shlibpath_overrides_runpath=yes 11049 if test yes = "$with_gnu_ld"; then 11050 need_lib_prefix=no 11051 fi 11052 need_version=yes 11053 ;; 11054 11055sysv4 | sysv4.3*) 11056 version_type=linux # correct to gnu/linux during the next big refactor 11057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11058 soname_spec='$libname$release$shared_ext$major' 11059 shlibpath_var=LD_LIBRARY_PATH 11060 case $host_vendor in 11061 sni) 11062 shlibpath_overrides_runpath=no 11063 need_lib_prefix=no 11064 runpath_var=LD_RUN_PATH 11065 ;; 11066 siemens) 11067 need_lib_prefix=no 11068 ;; 11069 motorola) 11070 need_lib_prefix=no 11071 need_version=no 11072 shlibpath_overrides_runpath=no 11073 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11074 ;; 11075 esac 11076 ;; 11077 11078sysv4*MP*) 11079 if test -d /usr/nec; then 11080 version_type=linux # correct to gnu/linux during the next big refactor 11081 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11082 soname_spec='$libname$shared_ext.$major' 11083 shlibpath_var=LD_LIBRARY_PATH 11084 fi 11085 ;; 11086 11087sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11088 version_type=sco 11089 need_lib_prefix=no 11090 need_version=no 11091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11092 soname_spec='$libname$release$shared_ext$major' 11093 shlibpath_var=LD_LIBRARY_PATH 11094 shlibpath_overrides_runpath=yes 11095 hardcode_into_libs=yes 11096 if test yes = "$with_gnu_ld"; then 11097 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11098 else 11099 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11100 case $host_os in 11101 sco3.2v5*) 11102 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11103 ;; 11104 esac 11105 fi 11106 sys_lib_dlsearch_path_spec='/usr/lib' 11107 ;; 11108 11109tpf*) 11110 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11111 version_type=linux # correct to gnu/linux during the next big refactor 11112 need_lib_prefix=no 11113 need_version=no 11114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11115 shlibpath_var=LD_LIBRARY_PATH 11116 shlibpath_overrides_runpath=no 11117 hardcode_into_libs=yes 11118 ;; 11119 11120uts4*) 11121 version_type=linux # correct to gnu/linux during the next big refactor 11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11123 soname_spec='$libname$release$shared_ext$major' 11124 shlibpath_var=LD_LIBRARY_PATH 11125 ;; 11126 11127*) 11128 dynamic_linker=no 11129 ;; 11130esac 11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11132$as_echo "$dynamic_linker" >&6; } 11133test no = "$dynamic_linker" && can_build_shared=no 11134 11135variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11136if test yes = "$GCC"; then 11137 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11138fi 11139 11140if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11141 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11142fi 11143 11144if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11145 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11146fi 11147 11148# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11149configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11150 11151# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11152func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11153 11154# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11155configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11254$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11255hardcode_action= 11256if test -n "$hardcode_libdir_flag_spec" || 11257 test -n "$runpath_var" || 11258 test yes = "$hardcode_automatic"; then 11259 11260 # We can hardcode non-existent directories. 11261 if test no != "$hardcode_direct" && 11262 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11263 # have to relink, otherwise we might link with an installed library 11264 # when we should be linking with a yet-to-be-installed one 11265 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11266 test no != "$hardcode_minus_L"; then 11267 # Linking always hardcodes the temporary library directory. 11268 hardcode_action=relink 11269 else 11270 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11271 hardcode_action=immediate 11272 fi 11273else 11274 # We cannot hardcode anything, or else we can only hardcode existing 11275 # directories. 11276 hardcode_action=unsupported 11277fi 11278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11279$as_echo "$hardcode_action" >&6; } 11280 11281if test relink = "$hardcode_action" || 11282 test yes = "$inherit_rpath"; then 11283 # Fast installation is not supported 11284 enable_fast_install=no 11285elif test yes = "$shlibpath_overrides_runpath" || 11286 test no = "$enable_shared"; then 11287 # Fast installation is not necessary 11288 enable_fast_install=needless 11289fi 11290 11291 11292 11293 11294 11295 11296 if test yes != "$enable_dlopen"; then 11297 enable_dlopen=unknown 11298 enable_dlopen_self=unknown 11299 enable_dlopen_self_static=unknown 11300else 11301 lt_cv_dlopen=no 11302 lt_cv_dlopen_libs= 11303 11304 case $host_os in 11305 beos*) 11306 lt_cv_dlopen=load_add_on 11307 lt_cv_dlopen_libs= 11308 lt_cv_dlopen_self=yes 11309 ;; 11310 11311 mingw* | pw32* | cegcc*) 11312 lt_cv_dlopen=LoadLibrary 11313 lt_cv_dlopen_libs= 11314 ;; 11315 11316 cygwin*) 11317 lt_cv_dlopen=dlopen 11318 lt_cv_dlopen_libs= 11319 ;; 11320 11321 darwin*) 11322 # if libdl is installed we need to link against it 11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11324$as_echo_n "checking for dlopen in -ldl... " >&6; } 11325if ${ac_cv_lib_dl_dlopen+:} false; then : 11326 $as_echo_n "(cached) " >&6 11327else 11328 ac_check_lib_save_LIBS=$LIBS 11329LIBS="-ldl $LIBS" 11330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11331/* end confdefs.h. */ 11332 11333/* Override any GCC internal prototype to avoid an error. 11334 Use char because int might match the return type of a GCC 11335 builtin and then its argument prototype would still apply. */ 11336#ifdef __cplusplus 11337extern "C" 11338#endif 11339char dlopen (); 11340int 11341main () 11342{ 11343return dlopen (); 11344 ; 11345 return 0; 11346} 11347_ACEOF 11348if ac_fn_c_try_link "$LINENO"; then : 11349 ac_cv_lib_dl_dlopen=yes 11350else 11351 ac_cv_lib_dl_dlopen=no 11352fi 11353rm -f core conftest.err conftest.$ac_objext \ 11354 conftest$ac_exeext conftest.$ac_ext 11355LIBS=$ac_check_lib_save_LIBS 11356fi 11357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11358$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11359if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11360 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11361else 11362 11363 lt_cv_dlopen=dyld 11364 lt_cv_dlopen_libs= 11365 lt_cv_dlopen_self=yes 11366 11367fi 11368 11369 ;; 11370 11371 tpf*) 11372 # Don't try to run any link tests for TPF. We know it's impossible 11373 # because TPF is a cross-compiler, and we know how we open DSOs. 11374 lt_cv_dlopen=dlopen 11375 lt_cv_dlopen_libs= 11376 lt_cv_dlopen_self=no 11377 ;; 11378 11379 *) 11380 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11381if test "x$ac_cv_func_shl_load" = xyes; then : 11382 lt_cv_dlopen=shl_load 11383else 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11385$as_echo_n "checking for shl_load in -ldld... " >&6; } 11386if ${ac_cv_lib_dld_shl_load+:} false; then : 11387 $as_echo_n "(cached) " >&6 11388else 11389 ac_check_lib_save_LIBS=$LIBS 11390LIBS="-ldld $LIBS" 11391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11392/* end confdefs.h. */ 11393 11394/* Override any GCC internal prototype to avoid an error. 11395 Use char because int might match the return type of a GCC 11396 builtin and then its argument prototype would still apply. */ 11397#ifdef __cplusplus 11398extern "C" 11399#endif 11400char shl_load (); 11401int 11402main () 11403{ 11404return shl_load (); 11405 ; 11406 return 0; 11407} 11408_ACEOF 11409if ac_fn_c_try_link "$LINENO"; then : 11410 ac_cv_lib_dld_shl_load=yes 11411else 11412 ac_cv_lib_dld_shl_load=no 11413fi 11414rm -f core conftest.err conftest.$ac_objext \ 11415 conftest$ac_exeext conftest.$ac_ext 11416LIBS=$ac_check_lib_save_LIBS 11417fi 11418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11419$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11420if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11421 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11422else 11423 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11424if test "x$ac_cv_func_dlopen" = xyes; then : 11425 lt_cv_dlopen=dlopen 11426else 11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11428$as_echo_n "checking for dlopen in -ldl... " >&6; } 11429if ${ac_cv_lib_dl_dlopen+:} false; then : 11430 $as_echo_n "(cached) " >&6 11431else 11432 ac_check_lib_save_LIBS=$LIBS 11433LIBS="-ldl $LIBS" 11434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11435/* end confdefs.h. */ 11436 11437/* Override any GCC internal prototype to avoid an error. 11438 Use char because int might match the return type of a GCC 11439 builtin and then its argument prototype would still apply. */ 11440#ifdef __cplusplus 11441extern "C" 11442#endif 11443char dlopen (); 11444int 11445main () 11446{ 11447return dlopen (); 11448 ; 11449 return 0; 11450} 11451_ACEOF 11452if ac_fn_c_try_link "$LINENO"; then : 11453 ac_cv_lib_dl_dlopen=yes 11454else 11455 ac_cv_lib_dl_dlopen=no 11456fi 11457rm -f core conftest.err conftest.$ac_objext \ 11458 conftest$ac_exeext conftest.$ac_ext 11459LIBS=$ac_check_lib_save_LIBS 11460fi 11461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11462$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11463if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11464 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11465else 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11467$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11468if ${ac_cv_lib_svld_dlopen+:} false; then : 11469 $as_echo_n "(cached) " >&6 11470else 11471 ac_check_lib_save_LIBS=$LIBS 11472LIBS="-lsvld $LIBS" 11473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11474/* end confdefs.h. */ 11475 11476/* Override any GCC internal prototype to avoid an error. 11477 Use char because int might match the return type of a GCC 11478 builtin and then its argument prototype would still apply. */ 11479#ifdef __cplusplus 11480extern "C" 11481#endif 11482char dlopen (); 11483int 11484main () 11485{ 11486return dlopen (); 11487 ; 11488 return 0; 11489} 11490_ACEOF 11491if ac_fn_c_try_link "$LINENO"; then : 11492 ac_cv_lib_svld_dlopen=yes 11493else 11494 ac_cv_lib_svld_dlopen=no 11495fi 11496rm -f core conftest.err conftest.$ac_objext \ 11497 conftest$ac_exeext conftest.$ac_ext 11498LIBS=$ac_check_lib_save_LIBS 11499fi 11500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11501$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11502if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11503 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11504else 11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11506$as_echo_n "checking for dld_link in -ldld... " >&6; } 11507if ${ac_cv_lib_dld_dld_link+:} false; then : 11508 $as_echo_n "(cached) " >&6 11509else 11510 ac_check_lib_save_LIBS=$LIBS 11511LIBS="-ldld $LIBS" 11512cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11513/* end confdefs.h. */ 11514 11515/* Override any GCC internal prototype to avoid an error. 11516 Use char because int might match the return type of a GCC 11517 builtin and then its argument prototype would still apply. */ 11518#ifdef __cplusplus 11519extern "C" 11520#endif 11521char dld_link (); 11522int 11523main () 11524{ 11525return dld_link (); 11526 ; 11527 return 0; 11528} 11529_ACEOF 11530if ac_fn_c_try_link "$LINENO"; then : 11531 ac_cv_lib_dld_dld_link=yes 11532else 11533 ac_cv_lib_dld_dld_link=no 11534fi 11535rm -f core conftest.err conftest.$ac_objext \ 11536 conftest$ac_exeext conftest.$ac_ext 11537LIBS=$ac_check_lib_save_LIBS 11538fi 11539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11540$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11541if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11542 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11543fi 11544 11545 11546fi 11547 11548 11549fi 11550 11551 11552fi 11553 11554 11555fi 11556 11557 11558fi 11559 11560 ;; 11561 esac 11562 11563 if test no = "$lt_cv_dlopen"; then 11564 enable_dlopen=no 11565 else 11566 enable_dlopen=yes 11567 fi 11568 11569 case $lt_cv_dlopen in 11570 dlopen) 11571 save_CPPFLAGS=$CPPFLAGS 11572 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11573 11574 save_LDFLAGS=$LDFLAGS 11575 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11576 11577 save_LIBS=$LIBS 11578 LIBS="$lt_cv_dlopen_libs $LIBS" 11579 11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11581$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11582if ${lt_cv_dlopen_self+:} false; then : 11583 $as_echo_n "(cached) " >&6 11584else 11585 if test yes = "$cross_compiling"; then : 11586 lt_cv_dlopen_self=cross 11587else 11588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11589 lt_status=$lt_dlunknown 11590 cat > conftest.$ac_ext <<_LT_EOF 11591#line $LINENO "configure" 11592#include "confdefs.h" 11593 11594#if HAVE_DLFCN_H 11595#include <dlfcn.h> 11596#endif 11597 11598#include <stdio.h> 11599 11600#ifdef RTLD_GLOBAL 11601# define LT_DLGLOBAL RTLD_GLOBAL 11602#else 11603# ifdef DL_GLOBAL 11604# define LT_DLGLOBAL DL_GLOBAL 11605# else 11606# define LT_DLGLOBAL 0 11607# endif 11608#endif 11609 11610/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11611 find out it does not work in some platform. */ 11612#ifndef LT_DLLAZY_OR_NOW 11613# ifdef RTLD_LAZY 11614# define LT_DLLAZY_OR_NOW RTLD_LAZY 11615# else 11616# ifdef DL_LAZY 11617# define LT_DLLAZY_OR_NOW DL_LAZY 11618# else 11619# ifdef RTLD_NOW 11620# define LT_DLLAZY_OR_NOW RTLD_NOW 11621# else 11622# ifdef DL_NOW 11623# define LT_DLLAZY_OR_NOW DL_NOW 11624# else 11625# define LT_DLLAZY_OR_NOW 0 11626# endif 11627# endif 11628# endif 11629# endif 11630#endif 11631 11632/* When -fvisibility=hidden is used, assume the code has been annotated 11633 correspondingly for the symbols needed. */ 11634#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11635int fnord () __attribute__((visibility("default"))); 11636#endif 11637 11638int fnord () { return 42; } 11639int main () 11640{ 11641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11642 int status = $lt_dlunknown; 11643 11644 if (self) 11645 { 11646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11647 else 11648 { 11649 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11650 else puts (dlerror ()); 11651 } 11652 /* dlclose (self); */ 11653 } 11654 else 11655 puts (dlerror ()); 11656 11657 return status; 11658} 11659_LT_EOF 11660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11661 (eval $ac_link) 2>&5 11662 ac_status=$? 11663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11664 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11665 (./conftest; exit; ) >&5 2>/dev/null 11666 lt_status=$? 11667 case x$lt_status in 11668 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11669 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11670 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11671 esac 11672 else : 11673 # compilation failed 11674 lt_cv_dlopen_self=no 11675 fi 11676fi 11677rm -fr conftest* 11678 11679 11680fi 11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11682$as_echo "$lt_cv_dlopen_self" >&6; } 11683 11684 if test yes = "$lt_cv_dlopen_self"; then 11685 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11687$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11688if ${lt_cv_dlopen_self_static+:} false; then : 11689 $as_echo_n "(cached) " >&6 11690else 11691 if test yes = "$cross_compiling"; then : 11692 lt_cv_dlopen_self_static=cross 11693else 11694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11695 lt_status=$lt_dlunknown 11696 cat > conftest.$ac_ext <<_LT_EOF 11697#line $LINENO "configure" 11698#include "confdefs.h" 11699 11700#if HAVE_DLFCN_H 11701#include <dlfcn.h> 11702#endif 11703 11704#include <stdio.h> 11705 11706#ifdef RTLD_GLOBAL 11707# define LT_DLGLOBAL RTLD_GLOBAL 11708#else 11709# ifdef DL_GLOBAL 11710# define LT_DLGLOBAL DL_GLOBAL 11711# else 11712# define LT_DLGLOBAL 0 11713# endif 11714#endif 11715 11716/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11717 find out it does not work in some platform. */ 11718#ifndef LT_DLLAZY_OR_NOW 11719# ifdef RTLD_LAZY 11720# define LT_DLLAZY_OR_NOW RTLD_LAZY 11721# else 11722# ifdef DL_LAZY 11723# define LT_DLLAZY_OR_NOW DL_LAZY 11724# else 11725# ifdef RTLD_NOW 11726# define LT_DLLAZY_OR_NOW RTLD_NOW 11727# else 11728# ifdef DL_NOW 11729# define LT_DLLAZY_OR_NOW DL_NOW 11730# else 11731# define LT_DLLAZY_OR_NOW 0 11732# endif 11733# endif 11734# endif 11735# endif 11736#endif 11737 11738/* When -fvisibility=hidden is used, assume the code has been annotated 11739 correspondingly for the symbols needed. */ 11740#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11741int fnord () __attribute__((visibility("default"))); 11742#endif 11743 11744int fnord () { return 42; } 11745int main () 11746{ 11747 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11748 int status = $lt_dlunknown; 11749 11750 if (self) 11751 { 11752 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11753 else 11754 { 11755 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11756 else puts (dlerror ()); 11757 } 11758 /* dlclose (self); */ 11759 } 11760 else 11761 puts (dlerror ()); 11762 11763 return status; 11764} 11765_LT_EOF 11766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11767 (eval $ac_link) 2>&5 11768 ac_status=$? 11769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11770 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11771 (./conftest; exit; ) >&5 2>/dev/null 11772 lt_status=$? 11773 case x$lt_status in 11774 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11775 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11776 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11777 esac 11778 else : 11779 # compilation failed 11780 lt_cv_dlopen_self_static=no 11781 fi 11782fi 11783rm -fr conftest* 11784 11785 11786fi 11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11788$as_echo "$lt_cv_dlopen_self_static" >&6; } 11789 fi 11790 11791 CPPFLAGS=$save_CPPFLAGS 11792 LDFLAGS=$save_LDFLAGS 11793 LIBS=$save_LIBS 11794 ;; 11795 esac 11796 11797 case $lt_cv_dlopen_self in 11798 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11799 *) enable_dlopen_self=unknown ;; 11800 esac 11801 11802 case $lt_cv_dlopen_self_static in 11803 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11804 *) enable_dlopen_self_static=unknown ;; 11805 esac 11806fi 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824striplib= 11825old_striplib= 11826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11827$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11828if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11829 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11830 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11832$as_echo "yes" >&6; } 11833else 11834# FIXME - insert some real tests, host_os isn't really good enough 11835 case $host_os in 11836 darwin*) 11837 if test -n "$STRIP"; then 11838 striplib="$STRIP -x" 11839 old_striplib="$STRIP -S" 11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11841$as_echo "yes" >&6; } 11842 else 11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11844$as_echo "no" >&6; } 11845 fi 11846 ;; 11847 *) 11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11849$as_echo "no" >&6; } 11850 ;; 11851 esac 11852fi 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 # Report what library types will actually be built 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11867$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11869$as_echo "$can_build_shared" >&6; } 11870 11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11872$as_echo_n "checking whether to build shared libraries... " >&6; } 11873 test no = "$can_build_shared" && enable_shared=no 11874 11875 # On AIX, shared libraries and static libraries use the same namespace, and 11876 # are all built from PIC. 11877 case $host_os in 11878 aix3*) 11879 test yes = "$enable_shared" && enable_static=no 11880 if test -n "$RANLIB"; then 11881 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11882 postinstall_cmds='$RANLIB $lib' 11883 fi 11884 ;; 11885 11886 aix[4-9]*) 11887 if test ia64 != "$host_cpu"; then 11888 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11889 yes,aix,yes) ;; # shared object as lib.so file only 11890 yes,svr4,*) ;; # shared object as lib.so archive member only 11891 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11892 esac 11893 fi 11894 ;; 11895 esac 11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11897$as_echo "$enable_shared" >&6; } 11898 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11900$as_echo_n "checking whether to build static libraries... " >&6; } 11901 # Make sure either enable_shared or enable_static is yes. 11902 test yes = "$enable_shared" || enable_static=yes 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11904$as_echo "$enable_static" >&6; } 11905 11906 11907 11908 11909fi 11910ac_ext=c 11911ac_cpp='$CPP $CPPFLAGS' 11912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11914ac_compiler_gnu=$ac_cv_c_compiler_gnu 11915 11916CC=$lt_save_CC 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 ac_config_commands="$ac_config_commands libtool" 11933 11934 11935 11936 11937# Only expand once: 11938 11939 11940 11941# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11954$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11955if ${ac_cv_prog_cc_c99+:} false; then : 11956 $as_echo_n "(cached) " >&6 11957else 11958 ac_cv_prog_cc_c99=no 11959ac_save_CC=$CC 11960cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11961/* end confdefs.h. */ 11962#include <stdarg.h> 11963#include <stdbool.h> 11964#include <stdlib.h> 11965#include <wchar.h> 11966#include <stdio.h> 11967 11968// Check varargs macros. These examples are taken from C99 6.10.3.5. 11969#define debug(...) fprintf (stderr, __VA_ARGS__) 11970#define showlist(...) puts (#__VA_ARGS__) 11971#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11972static void 11973test_varargs_macros (void) 11974{ 11975 int x = 1234; 11976 int y = 5678; 11977 debug ("Flag"); 11978 debug ("X = %d\n", x); 11979 showlist (The first, second, and third items.); 11980 report (x>y, "x is %d but y is %d", x, y); 11981} 11982 11983// Check long long types. 11984#define BIG64 18446744073709551615ull 11985#define BIG32 4294967295ul 11986#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11987#if !BIG_OK 11988 your preprocessor is broken; 11989#endif 11990#if BIG_OK 11991#else 11992 your preprocessor is broken; 11993#endif 11994static long long int bignum = -9223372036854775807LL; 11995static unsigned long long int ubignum = BIG64; 11996 11997struct incomplete_array 11998{ 11999 int datasize; 12000 double data[]; 12001}; 12002 12003struct named_init { 12004 int number; 12005 const wchar_t *name; 12006 double average; 12007}; 12008 12009typedef const char *ccp; 12010 12011static inline int 12012test_restrict (ccp restrict text) 12013{ 12014 // See if C++-style comments work. 12015 // Iterate through items via the restricted pointer. 12016 // Also check for declarations in for loops. 12017 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12018 continue; 12019 return 0; 12020} 12021 12022// Check varargs and va_copy. 12023static void 12024test_varargs (const char *format, ...) 12025{ 12026 va_list args; 12027 va_start (args, format); 12028 va_list args_copy; 12029 va_copy (args_copy, args); 12030 12031 const char *str; 12032 int number; 12033 float fnumber; 12034 12035 while (*format) 12036 { 12037 switch (*format++) 12038 { 12039 case 's': // string 12040 str = va_arg (args_copy, const char *); 12041 break; 12042 case 'd': // int 12043 number = va_arg (args_copy, int); 12044 break; 12045 case 'f': // float 12046 fnumber = va_arg (args_copy, double); 12047 break; 12048 default: 12049 break; 12050 } 12051 } 12052 va_end (args_copy); 12053 va_end (args); 12054} 12055 12056int 12057main () 12058{ 12059 12060 // Check bool. 12061 _Bool success = false; 12062 12063 // Check restrict. 12064 if (test_restrict ("String literal") == 0) 12065 success = true; 12066 char *restrict newvar = "Another string"; 12067 12068 // Check varargs. 12069 test_varargs ("s, d' f .", "string", 65, 34.234); 12070 test_varargs_macros (); 12071 12072 // Check flexible array members. 12073 struct incomplete_array *ia = 12074 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12075 ia->datasize = 10; 12076 for (int i = 0; i < ia->datasize; ++i) 12077 ia->data[i] = i * 1.234; 12078 12079 // Check named initializers. 12080 struct named_init ni = { 12081 .number = 34, 12082 .name = L"Test wide string", 12083 .average = 543.34343, 12084 }; 12085 12086 ni.number = 58; 12087 12088 int dynamic_array[ni.number]; 12089 dynamic_array[ni.number - 1] = 543; 12090 12091 // work around unused variable warnings 12092 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12093 || dynamic_array[ni.number - 1] != 543); 12094 12095 ; 12096 return 0; 12097} 12098_ACEOF 12099for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12100do 12101 CC="$ac_save_CC $ac_arg" 12102 if ac_fn_c_try_compile "$LINENO"; then : 12103 ac_cv_prog_cc_c99=$ac_arg 12104fi 12105rm -f core conftest.err conftest.$ac_objext 12106 test "x$ac_cv_prog_cc_c99" != "xno" && break 12107done 12108rm -f conftest.$ac_ext 12109CC=$ac_save_CC 12110 12111fi 12112# AC_CACHE_VAL 12113case "x$ac_cv_prog_cc_c99" in 12114 x) 12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12116$as_echo "none needed" >&6; } ;; 12117 xno) 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12119$as_echo "unsupported" >&6; } ;; 12120 *) 12121 CC="$CC $ac_cv_prog_cc_c99" 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12123$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12124esac 12125if test "x$ac_cv_prog_cc_c99" != xno; then : 12126 12127fi 12128 12129 12130 12131 12132 12133 12134ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12135if test "x$ac_cv_have_decl___clang__" = xyes; then : 12136 CLANGCC="yes" 12137else 12138 CLANGCC="no" 12139fi 12140 12141ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12142if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12143 INTELCC="yes" 12144else 12145 INTELCC="no" 12146fi 12147 12148ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12149if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12150 SUNCC="yes" 12151else 12152 SUNCC="no" 12153fi 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12164 if test -n "$ac_tool_prefix"; then 12165 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12166set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12168$as_echo_n "checking for $ac_word... " >&6; } 12169if ${ac_cv_path_PKG_CONFIG+:} false; then : 12170 $as_echo_n "(cached) " >&6 12171else 12172 case $PKG_CONFIG in 12173 [\\/]* | ?:[\\/]*) 12174 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12175 ;; 12176 *) 12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12178for as_dir in $PATH 12179do 12180 IFS=$as_save_IFS 12181 test -z "$as_dir" && as_dir=. 12182 for ac_exec_ext in '' $ac_executable_extensions; do 12183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12184 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12186 break 2 12187 fi 12188done 12189 done 12190IFS=$as_save_IFS 12191 12192 ;; 12193esac 12194fi 12195PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12196if test -n "$PKG_CONFIG"; then 12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12198$as_echo "$PKG_CONFIG" >&6; } 12199else 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12201$as_echo "no" >&6; } 12202fi 12203 12204 12205fi 12206if test -z "$ac_cv_path_PKG_CONFIG"; then 12207 ac_pt_PKG_CONFIG=$PKG_CONFIG 12208 # Extract the first word of "pkg-config", so it can be a program name with args. 12209set dummy pkg-config; ac_word=$2 12210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12211$as_echo_n "checking for $ac_word... " >&6; } 12212if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12213 $as_echo_n "(cached) " >&6 12214else 12215 case $ac_pt_PKG_CONFIG in 12216 [\\/]* | ?:[\\/]*) 12217 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12218 ;; 12219 *) 12220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12221for as_dir in $PATH 12222do 12223 IFS=$as_save_IFS 12224 test -z "$as_dir" && as_dir=. 12225 for ac_exec_ext in '' $ac_executable_extensions; do 12226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12227 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12229 break 2 12230 fi 12231done 12232 done 12233IFS=$as_save_IFS 12234 12235 ;; 12236esac 12237fi 12238ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12239if test -n "$ac_pt_PKG_CONFIG"; then 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12241$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12242else 12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12244$as_echo "no" >&6; } 12245fi 12246 12247 if test "x$ac_pt_PKG_CONFIG" = x; then 12248 PKG_CONFIG="" 12249 else 12250 case $cross_compiling:$ac_tool_warned in 12251yes:) 12252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12254ac_tool_warned=yes ;; 12255esac 12256 PKG_CONFIG=$ac_pt_PKG_CONFIG 12257 fi 12258else 12259 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12260fi 12261 12262fi 12263if test -n "$PKG_CONFIG"; then 12264 _pkg_min_version=0.9.0 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12266$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12267 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12269$as_echo "yes" >&6; } 12270 else 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12272$as_echo "no" >&6; } 12273 PKG_CONFIG="" 12274 fi 12275fi 12276 12277 12278 12279 12280 12281# Check whether --enable-selective-werror was given. 12282if test "${enable_selective_werror+set}" = set; then : 12283 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12284else 12285 SELECTIVE_WERROR=yes 12286fi 12287 12288 12289 12290 12291 12292# -v is too short to test reliably with XORG_TESTSET_CFLAG 12293if test "x$SUNCC" = "xyes"; then 12294 BASE_CFLAGS="-v" 12295else 12296 BASE_CFLAGS="" 12297fi 12298 12299# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313xorg_testset_save_CFLAGS="$CFLAGS" 12314 12315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12320 $as_echo_n "(cached) " >&6 12321else 12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12323/* end confdefs.h. */ 12324int i; 12325_ACEOF 12326if ac_fn_c_try_compile "$LINENO"; then : 12327 xorg_cv_cc_flag_unknown_warning_option=yes 12328else 12329 xorg_cv_cc_flag_unknown_warning_option=no 12330fi 12331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12332fi 12333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12336 CFLAGS="$xorg_testset_save_CFLAGS" 12337fi 12338 12339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12342 fi 12343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12347 $as_echo_n "(cached) " >&6 12348else 12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12350/* end confdefs.h. */ 12351int i; 12352_ACEOF 12353if ac_fn_c_try_compile "$LINENO"; then : 12354 xorg_cv_cc_flag_unused_command_line_argument=yes 12355else 12356 xorg_cv_cc_flag_unused_command_line_argument=no 12357fi 12358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12359fi 12360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12363 CFLAGS="$xorg_testset_save_CFLAGS" 12364fi 12365 12366found="no" 12367 12368 if test $found = "no" ; then 12369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12371 fi 12372 12373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12375 fi 12376 12377 CFLAGS="$CFLAGS -Wall" 12378 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12380$as_echo_n "checking if $CC supports -Wall... " >&6; } 12381 cacheid=xorg_cv_cc_flag__Wall 12382 if eval \${$cacheid+:} false; then : 12383 $as_echo_n "(cached) " >&6 12384else 12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12386/* end confdefs.h. */ 12387int i; 12388int 12389main () 12390{ 12391 12392 ; 12393 return 0; 12394} 12395_ACEOF 12396if ac_fn_c_try_link "$LINENO"; then : 12397 eval $cacheid=yes 12398else 12399 eval $cacheid=no 12400fi 12401rm -f core conftest.err conftest.$ac_objext \ 12402 conftest$ac_exeext conftest.$ac_ext 12403fi 12404 12405 12406 CFLAGS="$xorg_testset_save_CFLAGS" 12407 12408 eval supported=\$$cacheid 12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12410$as_echo "$supported" >&6; } 12411 if test "$supported" = "yes" ; then 12412 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12413 found="yes" 12414 fi 12415 fi 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431xorg_testset_save_CFLAGS="$CFLAGS" 12432 12433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12436$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12437if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12438 $as_echo_n "(cached) " >&6 12439else 12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12441/* end confdefs.h. */ 12442int i; 12443_ACEOF 12444if ac_fn_c_try_compile "$LINENO"; then : 12445 xorg_cv_cc_flag_unknown_warning_option=yes 12446else 12447 xorg_cv_cc_flag_unknown_warning_option=no 12448fi 12449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12450fi 12451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12452$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12454 CFLAGS="$xorg_testset_save_CFLAGS" 12455fi 12456 12457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12460 fi 12461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12463$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12464if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12465 $as_echo_n "(cached) " >&6 12466else 12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12468/* end confdefs.h. */ 12469int i; 12470_ACEOF 12471if ac_fn_c_try_compile "$LINENO"; then : 12472 xorg_cv_cc_flag_unused_command_line_argument=yes 12473else 12474 xorg_cv_cc_flag_unused_command_line_argument=no 12475fi 12476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12477fi 12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12479$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12481 CFLAGS="$xorg_testset_save_CFLAGS" 12482fi 12483 12484found="no" 12485 12486 if test $found = "no" ; then 12487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12489 fi 12490 12491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12493 fi 12494 12495 CFLAGS="$CFLAGS -Wpointer-arith" 12496 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12498$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12499 cacheid=xorg_cv_cc_flag__Wpointer_arith 12500 if eval \${$cacheid+:} false; then : 12501 $as_echo_n "(cached) " >&6 12502else 12503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12504/* end confdefs.h. */ 12505int i; 12506int 12507main () 12508{ 12509 12510 ; 12511 return 0; 12512} 12513_ACEOF 12514if ac_fn_c_try_link "$LINENO"; then : 12515 eval $cacheid=yes 12516else 12517 eval $cacheid=no 12518fi 12519rm -f core conftest.err conftest.$ac_objext \ 12520 conftest$ac_exeext conftest.$ac_ext 12521fi 12522 12523 12524 CFLAGS="$xorg_testset_save_CFLAGS" 12525 12526 eval supported=\$$cacheid 12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12528$as_echo "$supported" >&6; } 12529 if test "$supported" = "yes" ; then 12530 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12531 found="yes" 12532 fi 12533 fi 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549xorg_testset_save_CFLAGS="$CFLAGS" 12550 12551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12556 $as_echo_n "(cached) " >&6 12557else 12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12559/* end confdefs.h. */ 12560int i; 12561_ACEOF 12562if ac_fn_c_try_compile "$LINENO"; then : 12563 xorg_cv_cc_flag_unknown_warning_option=yes 12564else 12565 xorg_cv_cc_flag_unknown_warning_option=no 12566fi 12567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12568fi 12569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12572 CFLAGS="$xorg_testset_save_CFLAGS" 12573fi 12574 12575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12578 fi 12579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12583 $as_echo_n "(cached) " >&6 12584else 12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12586/* end confdefs.h. */ 12587int i; 12588_ACEOF 12589if ac_fn_c_try_compile "$LINENO"; then : 12590 xorg_cv_cc_flag_unused_command_line_argument=yes 12591else 12592 xorg_cv_cc_flag_unused_command_line_argument=no 12593fi 12594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12595fi 12596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12599 CFLAGS="$xorg_testset_save_CFLAGS" 12600fi 12601 12602found="no" 12603 12604 if test $found = "no" ; then 12605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12607 fi 12608 12609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12611 fi 12612 12613 CFLAGS="$CFLAGS -Wmissing-declarations" 12614 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12616$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12617 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12618 if eval \${$cacheid+:} false; then : 12619 $as_echo_n "(cached) " >&6 12620else 12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12622/* end confdefs.h. */ 12623int i; 12624int 12625main () 12626{ 12627 12628 ; 12629 return 0; 12630} 12631_ACEOF 12632if ac_fn_c_try_link "$LINENO"; then : 12633 eval $cacheid=yes 12634else 12635 eval $cacheid=no 12636fi 12637rm -f core conftest.err conftest.$ac_objext \ 12638 conftest$ac_exeext conftest.$ac_ext 12639fi 12640 12641 12642 CFLAGS="$xorg_testset_save_CFLAGS" 12643 12644 eval supported=\$$cacheid 12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12646$as_echo "$supported" >&6; } 12647 if test "$supported" = "yes" ; then 12648 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12649 found="yes" 12650 fi 12651 fi 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667xorg_testset_save_CFLAGS="$CFLAGS" 12668 12669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12674 $as_echo_n "(cached) " >&6 12675else 12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12677/* end confdefs.h. */ 12678int i; 12679_ACEOF 12680if ac_fn_c_try_compile "$LINENO"; then : 12681 xorg_cv_cc_flag_unknown_warning_option=yes 12682else 12683 xorg_cv_cc_flag_unknown_warning_option=no 12684fi 12685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12686fi 12687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12690 CFLAGS="$xorg_testset_save_CFLAGS" 12691fi 12692 12693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12696 fi 12697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12701 $as_echo_n "(cached) " >&6 12702else 12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12704/* end confdefs.h. */ 12705int i; 12706_ACEOF 12707if ac_fn_c_try_compile "$LINENO"; then : 12708 xorg_cv_cc_flag_unused_command_line_argument=yes 12709else 12710 xorg_cv_cc_flag_unused_command_line_argument=no 12711fi 12712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12713fi 12714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12717 CFLAGS="$xorg_testset_save_CFLAGS" 12718fi 12719 12720found="no" 12721 12722 if test $found = "no" ; then 12723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12725 fi 12726 12727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12729 fi 12730 12731 CFLAGS="$CFLAGS -Wformat=2" 12732 12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12734$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12735 cacheid=xorg_cv_cc_flag__Wformat_2 12736 if eval \${$cacheid+:} false; then : 12737 $as_echo_n "(cached) " >&6 12738else 12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12740/* end confdefs.h. */ 12741int i; 12742int 12743main () 12744{ 12745 12746 ; 12747 return 0; 12748} 12749_ACEOF 12750if ac_fn_c_try_link "$LINENO"; then : 12751 eval $cacheid=yes 12752else 12753 eval $cacheid=no 12754fi 12755rm -f core conftest.err conftest.$ac_objext \ 12756 conftest$ac_exeext conftest.$ac_ext 12757fi 12758 12759 12760 CFLAGS="$xorg_testset_save_CFLAGS" 12761 12762 eval supported=\$$cacheid 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12764$as_echo "$supported" >&6; } 12765 if test "$supported" = "yes" ; then 12766 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12767 found="yes" 12768 fi 12769 fi 12770 12771 if test $found = "no" ; then 12772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12774 fi 12775 12776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12778 fi 12779 12780 CFLAGS="$CFLAGS -Wformat" 12781 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12783$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12784 cacheid=xorg_cv_cc_flag__Wformat 12785 if eval \${$cacheid+:} false; then : 12786 $as_echo_n "(cached) " >&6 12787else 12788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12789/* end confdefs.h. */ 12790int i; 12791int 12792main () 12793{ 12794 12795 ; 12796 return 0; 12797} 12798_ACEOF 12799if ac_fn_c_try_link "$LINENO"; then : 12800 eval $cacheid=yes 12801else 12802 eval $cacheid=no 12803fi 12804rm -f core conftest.err conftest.$ac_objext \ 12805 conftest$ac_exeext conftest.$ac_ext 12806fi 12807 12808 12809 CFLAGS="$xorg_testset_save_CFLAGS" 12810 12811 eval supported=\$$cacheid 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12813$as_echo "$supported" >&6; } 12814 if test "$supported" = "yes" ; then 12815 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12816 found="yes" 12817 fi 12818 fi 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836xorg_testset_save_CFLAGS="$CFLAGS" 12837 12838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12841$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12842if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12843 $as_echo_n "(cached) " >&6 12844else 12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12846/* end confdefs.h. */ 12847int i; 12848_ACEOF 12849if ac_fn_c_try_compile "$LINENO"; then : 12850 xorg_cv_cc_flag_unknown_warning_option=yes 12851else 12852 xorg_cv_cc_flag_unknown_warning_option=no 12853fi 12854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12855fi 12856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12857$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12859 CFLAGS="$xorg_testset_save_CFLAGS" 12860fi 12861 12862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12865 fi 12866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12868$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12869if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12870 $as_echo_n "(cached) " >&6 12871else 12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12873/* end confdefs.h. */ 12874int i; 12875_ACEOF 12876if ac_fn_c_try_compile "$LINENO"; then : 12877 xorg_cv_cc_flag_unused_command_line_argument=yes 12878else 12879 xorg_cv_cc_flag_unused_command_line_argument=no 12880fi 12881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12882fi 12883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12884$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12886 CFLAGS="$xorg_testset_save_CFLAGS" 12887fi 12888 12889found="no" 12890 12891 if test $found = "no" ; then 12892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12894 fi 12895 12896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12898 fi 12899 12900 CFLAGS="$CFLAGS -Wstrict-prototypes" 12901 12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12903$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12904 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12905 if eval \${$cacheid+:} false; then : 12906 $as_echo_n "(cached) " >&6 12907else 12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12909/* end confdefs.h. */ 12910int i; 12911int 12912main () 12913{ 12914 12915 ; 12916 return 0; 12917} 12918_ACEOF 12919if ac_fn_c_try_link "$LINENO"; then : 12920 eval $cacheid=yes 12921else 12922 eval $cacheid=no 12923fi 12924rm -f core conftest.err conftest.$ac_objext \ 12925 conftest$ac_exeext conftest.$ac_ext 12926fi 12927 12928 12929 CFLAGS="$xorg_testset_save_CFLAGS" 12930 12931 eval supported=\$$cacheid 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12933$as_echo "$supported" >&6; } 12934 if test "$supported" = "yes" ; then 12935 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12936 found="yes" 12937 fi 12938 fi 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954xorg_testset_save_CFLAGS="$CFLAGS" 12955 12956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12959$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12960if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12961 $as_echo_n "(cached) " >&6 12962else 12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12964/* end confdefs.h. */ 12965int i; 12966_ACEOF 12967if ac_fn_c_try_compile "$LINENO"; then : 12968 xorg_cv_cc_flag_unknown_warning_option=yes 12969else 12970 xorg_cv_cc_flag_unknown_warning_option=no 12971fi 12972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12973fi 12974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12975$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12977 CFLAGS="$xorg_testset_save_CFLAGS" 12978fi 12979 12980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12983 fi 12984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12986$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12987if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12988 $as_echo_n "(cached) " >&6 12989else 12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12991/* end confdefs.h. */ 12992int i; 12993_ACEOF 12994if ac_fn_c_try_compile "$LINENO"; then : 12995 xorg_cv_cc_flag_unused_command_line_argument=yes 12996else 12997 xorg_cv_cc_flag_unused_command_line_argument=no 12998fi 12999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13000fi 13001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13002$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13004 CFLAGS="$xorg_testset_save_CFLAGS" 13005fi 13006 13007found="no" 13008 13009 if test $found = "no" ; then 13010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13012 fi 13013 13014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13016 fi 13017 13018 CFLAGS="$CFLAGS -Wmissing-prototypes" 13019 13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13021$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13022 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13023 if eval \${$cacheid+:} false; then : 13024 $as_echo_n "(cached) " >&6 13025else 13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13027/* end confdefs.h. */ 13028int i; 13029int 13030main () 13031{ 13032 13033 ; 13034 return 0; 13035} 13036_ACEOF 13037if ac_fn_c_try_link "$LINENO"; then : 13038 eval $cacheid=yes 13039else 13040 eval $cacheid=no 13041fi 13042rm -f core conftest.err conftest.$ac_objext \ 13043 conftest$ac_exeext conftest.$ac_ext 13044fi 13045 13046 13047 CFLAGS="$xorg_testset_save_CFLAGS" 13048 13049 eval supported=\$$cacheid 13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13051$as_echo "$supported" >&6; } 13052 if test "$supported" = "yes" ; then 13053 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13054 found="yes" 13055 fi 13056 fi 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072xorg_testset_save_CFLAGS="$CFLAGS" 13073 13074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13077$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13078if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13079 $as_echo_n "(cached) " >&6 13080else 13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13082/* end confdefs.h. */ 13083int i; 13084_ACEOF 13085if ac_fn_c_try_compile "$LINENO"; then : 13086 xorg_cv_cc_flag_unknown_warning_option=yes 13087else 13088 xorg_cv_cc_flag_unknown_warning_option=no 13089fi 13090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13091fi 13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13093$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13095 CFLAGS="$xorg_testset_save_CFLAGS" 13096fi 13097 13098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13101 fi 13102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13104$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13105if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13106 $as_echo_n "(cached) " >&6 13107else 13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13109/* end confdefs.h. */ 13110int i; 13111_ACEOF 13112if ac_fn_c_try_compile "$LINENO"; then : 13113 xorg_cv_cc_flag_unused_command_line_argument=yes 13114else 13115 xorg_cv_cc_flag_unused_command_line_argument=no 13116fi 13117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13118fi 13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13120$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13122 CFLAGS="$xorg_testset_save_CFLAGS" 13123fi 13124 13125found="no" 13126 13127 if test $found = "no" ; then 13128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13130 fi 13131 13132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13134 fi 13135 13136 CFLAGS="$CFLAGS -Wnested-externs" 13137 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13139$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13140 cacheid=xorg_cv_cc_flag__Wnested_externs 13141 if eval \${$cacheid+:} false; then : 13142 $as_echo_n "(cached) " >&6 13143else 13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13145/* end confdefs.h. */ 13146int i; 13147int 13148main () 13149{ 13150 13151 ; 13152 return 0; 13153} 13154_ACEOF 13155if ac_fn_c_try_link "$LINENO"; then : 13156 eval $cacheid=yes 13157else 13158 eval $cacheid=no 13159fi 13160rm -f core conftest.err conftest.$ac_objext \ 13161 conftest$ac_exeext conftest.$ac_ext 13162fi 13163 13164 13165 CFLAGS="$xorg_testset_save_CFLAGS" 13166 13167 eval supported=\$$cacheid 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13169$as_echo "$supported" >&6; } 13170 if test "$supported" = "yes" ; then 13171 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13172 found="yes" 13173 fi 13174 fi 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190xorg_testset_save_CFLAGS="$CFLAGS" 13191 13192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13195$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13196if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13197 $as_echo_n "(cached) " >&6 13198else 13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13200/* end confdefs.h. */ 13201int i; 13202_ACEOF 13203if ac_fn_c_try_compile "$LINENO"; then : 13204 xorg_cv_cc_flag_unknown_warning_option=yes 13205else 13206 xorg_cv_cc_flag_unknown_warning_option=no 13207fi 13208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13209fi 13210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13211$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13213 CFLAGS="$xorg_testset_save_CFLAGS" 13214fi 13215 13216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13219 fi 13220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13222$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13223if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13224 $as_echo_n "(cached) " >&6 13225else 13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13227/* end confdefs.h. */ 13228int i; 13229_ACEOF 13230if ac_fn_c_try_compile "$LINENO"; then : 13231 xorg_cv_cc_flag_unused_command_line_argument=yes 13232else 13233 xorg_cv_cc_flag_unused_command_line_argument=no 13234fi 13235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13236fi 13237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13238$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13240 CFLAGS="$xorg_testset_save_CFLAGS" 13241fi 13242 13243found="no" 13244 13245 if test $found = "no" ; then 13246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13248 fi 13249 13250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13252 fi 13253 13254 CFLAGS="$CFLAGS -Wbad-function-cast" 13255 13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13257$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13258 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13259 if eval \${$cacheid+:} false; then : 13260 $as_echo_n "(cached) " >&6 13261else 13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13263/* end confdefs.h. */ 13264int i; 13265int 13266main () 13267{ 13268 13269 ; 13270 return 0; 13271} 13272_ACEOF 13273if ac_fn_c_try_link "$LINENO"; then : 13274 eval $cacheid=yes 13275else 13276 eval $cacheid=no 13277fi 13278rm -f core conftest.err conftest.$ac_objext \ 13279 conftest$ac_exeext conftest.$ac_ext 13280fi 13281 13282 13283 CFLAGS="$xorg_testset_save_CFLAGS" 13284 13285 eval supported=\$$cacheid 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13287$as_echo "$supported" >&6; } 13288 if test "$supported" = "yes" ; then 13289 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13290 found="yes" 13291 fi 13292 fi 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308xorg_testset_save_CFLAGS="$CFLAGS" 13309 13310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13313$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13314if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13315 $as_echo_n "(cached) " >&6 13316else 13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13318/* end confdefs.h. */ 13319int i; 13320_ACEOF 13321if ac_fn_c_try_compile "$LINENO"; then : 13322 xorg_cv_cc_flag_unknown_warning_option=yes 13323else 13324 xorg_cv_cc_flag_unknown_warning_option=no 13325fi 13326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13327fi 13328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13329$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13331 CFLAGS="$xorg_testset_save_CFLAGS" 13332fi 13333 13334if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13337 fi 13338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13340$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13341if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13342 $as_echo_n "(cached) " >&6 13343else 13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13345/* end confdefs.h. */ 13346int i; 13347_ACEOF 13348if ac_fn_c_try_compile "$LINENO"; then : 13349 xorg_cv_cc_flag_unused_command_line_argument=yes 13350else 13351 xorg_cv_cc_flag_unused_command_line_argument=no 13352fi 13353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13354fi 13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13356$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13358 CFLAGS="$xorg_testset_save_CFLAGS" 13359fi 13360 13361found="no" 13362 13363 if test $found = "no" ; then 13364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13366 fi 13367 13368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13370 fi 13371 13372 CFLAGS="$CFLAGS -Wold-style-definition" 13373 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13375$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13376 cacheid=xorg_cv_cc_flag__Wold_style_definition 13377 if eval \${$cacheid+:} false; then : 13378 $as_echo_n "(cached) " >&6 13379else 13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13381/* end confdefs.h. */ 13382int i; 13383int 13384main () 13385{ 13386 13387 ; 13388 return 0; 13389} 13390_ACEOF 13391if ac_fn_c_try_link "$LINENO"; then : 13392 eval $cacheid=yes 13393else 13394 eval $cacheid=no 13395fi 13396rm -f core conftest.err conftest.$ac_objext \ 13397 conftest$ac_exeext conftest.$ac_ext 13398fi 13399 13400 13401 CFLAGS="$xorg_testset_save_CFLAGS" 13402 13403 eval supported=\$$cacheid 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13405$as_echo "$supported" >&6; } 13406 if test "$supported" = "yes" ; then 13407 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13408 found="yes" 13409 fi 13410 fi 13411 13412 if test $found = "no" ; then 13413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13415 fi 13416 13417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13419 fi 13420 13421 CFLAGS="$CFLAGS -fd" 13422 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13424$as_echo_n "checking if $CC supports -fd... " >&6; } 13425 cacheid=xorg_cv_cc_flag__fd 13426 if eval \${$cacheid+:} false; then : 13427 $as_echo_n "(cached) " >&6 13428else 13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13430/* end confdefs.h. */ 13431int i; 13432int 13433main () 13434{ 13435 13436 ; 13437 return 0; 13438} 13439_ACEOF 13440if ac_fn_c_try_link "$LINENO"; then : 13441 eval $cacheid=yes 13442else 13443 eval $cacheid=no 13444fi 13445rm -f core conftest.err conftest.$ac_objext \ 13446 conftest$ac_exeext conftest.$ac_ext 13447fi 13448 13449 13450 CFLAGS="$xorg_testset_save_CFLAGS" 13451 13452 eval supported=\$$cacheid 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13454$as_echo "$supported" >&6; } 13455 if test "$supported" = "yes" ; then 13456 BASE_CFLAGS="$BASE_CFLAGS -fd" 13457 found="yes" 13458 fi 13459 fi 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475xorg_testset_save_CFLAGS="$CFLAGS" 13476 13477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13480$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13481if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13482 $as_echo_n "(cached) " >&6 13483else 13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13485/* end confdefs.h. */ 13486int i; 13487_ACEOF 13488if ac_fn_c_try_compile "$LINENO"; then : 13489 xorg_cv_cc_flag_unknown_warning_option=yes 13490else 13491 xorg_cv_cc_flag_unknown_warning_option=no 13492fi 13493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13494fi 13495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13496$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13498 CFLAGS="$xorg_testset_save_CFLAGS" 13499fi 13500 13501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13504 fi 13505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13507$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13508if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13509 $as_echo_n "(cached) " >&6 13510else 13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13512/* end confdefs.h. */ 13513int i; 13514_ACEOF 13515if ac_fn_c_try_compile "$LINENO"; then : 13516 xorg_cv_cc_flag_unused_command_line_argument=yes 13517else 13518 xorg_cv_cc_flag_unused_command_line_argument=no 13519fi 13520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13521fi 13522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13523$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13525 CFLAGS="$xorg_testset_save_CFLAGS" 13526fi 13527 13528found="no" 13529 13530 if test $found = "no" ; then 13531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13533 fi 13534 13535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13537 fi 13538 13539 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13540 13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13542$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13543 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13544 if eval \${$cacheid+:} false; then : 13545 $as_echo_n "(cached) " >&6 13546else 13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13548/* end confdefs.h. */ 13549int i; 13550int 13551main () 13552{ 13553 13554 ; 13555 return 0; 13556} 13557_ACEOF 13558if ac_fn_c_try_link "$LINENO"; then : 13559 eval $cacheid=yes 13560else 13561 eval $cacheid=no 13562fi 13563rm -f core conftest.err conftest.$ac_objext \ 13564 conftest$ac_exeext conftest.$ac_ext 13565fi 13566 13567 13568 CFLAGS="$xorg_testset_save_CFLAGS" 13569 13570 eval supported=\$$cacheid 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13572$as_echo "$supported" >&6; } 13573 if test "$supported" = "yes" ; then 13574 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13575 found="yes" 13576 fi 13577 fi 13578 13579 13580 13581 13582 13583# This chunk adds additional warnings that could catch undesired effects. 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597xorg_testset_save_CFLAGS="$CFLAGS" 13598 13599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13604 $as_echo_n "(cached) " >&6 13605else 13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13607/* end confdefs.h. */ 13608int i; 13609_ACEOF 13610if ac_fn_c_try_compile "$LINENO"; then : 13611 xorg_cv_cc_flag_unknown_warning_option=yes 13612else 13613 xorg_cv_cc_flag_unknown_warning_option=no 13614fi 13615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13616fi 13617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13620 CFLAGS="$xorg_testset_save_CFLAGS" 13621fi 13622 13623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13626 fi 13627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13631 $as_echo_n "(cached) " >&6 13632else 13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13634/* end confdefs.h. */ 13635int i; 13636_ACEOF 13637if ac_fn_c_try_compile "$LINENO"; then : 13638 xorg_cv_cc_flag_unused_command_line_argument=yes 13639else 13640 xorg_cv_cc_flag_unused_command_line_argument=no 13641fi 13642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13643fi 13644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13647 CFLAGS="$xorg_testset_save_CFLAGS" 13648fi 13649 13650found="no" 13651 13652 if test $found = "no" ; then 13653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13655 fi 13656 13657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13659 fi 13660 13661 CFLAGS="$CFLAGS -Wunused" 13662 13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13664$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13665 cacheid=xorg_cv_cc_flag__Wunused 13666 if eval \${$cacheid+:} false; then : 13667 $as_echo_n "(cached) " >&6 13668else 13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13670/* end confdefs.h. */ 13671int i; 13672int 13673main () 13674{ 13675 13676 ; 13677 return 0; 13678} 13679_ACEOF 13680if ac_fn_c_try_link "$LINENO"; then : 13681 eval $cacheid=yes 13682else 13683 eval $cacheid=no 13684fi 13685rm -f core conftest.err conftest.$ac_objext \ 13686 conftest$ac_exeext conftest.$ac_ext 13687fi 13688 13689 13690 CFLAGS="$xorg_testset_save_CFLAGS" 13691 13692 eval supported=\$$cacheid 13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13694$as_echo "$supported" >&6; } 13695 if test "$supported" = "yes" ; then 13696 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13697 found="yes" 13698 fi 13699 fi 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715xorg_testset_save_CFLAGS="$CFLAGS" 13716 13717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13722 $as_echo_n "(cached) " >&6 13723else 13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13725/* end confdefs.h. */ 13726int i; 13727_ACEOF 13728if ac_fn_c_try_compile "$LINENO"; then : 13729 xorg_cv_cc_flag_unknown_warning_option=yes 13730else 13731 xorg_cv_cc_flag_unknown_warning_option=no 13732fi 13733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13734fi 13735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13738 CFLAGS="$xorg_testset_save_CFLAGS" 13739fi 13740 13741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13744 fi 13745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13749 $as_echo_n "(cached) " >&6 13750else 13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13752/* end confdefs.h. */ 13753int i; 13754_ACEOF 13755if ac_fn_c_try_compile "$LINENO"; then : 13756 xorg_cv_cc_flag_unused_command_line_argument=yes 13757else 13758 xorg_cv_cc_flag_unused_command_line_argument=no 13759fi 13760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13761fi 13762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13765 CFLAGS="$xorg_testset_save_CFLAGS" 13766fi 13767 13768found="no" 13769 13770 if test $found = "no" ; then 13771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13773 fi 13774 13775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13777 fi 13778 13779 CFLAGS="$CFLAGS -Wuninitialized" 13780 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13782$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13783 cacheid=xorg_cv_cc_flag__Wuninitialized 13784 if eval \${$cacheid+:} false; then : 13785 $as_echo_n "(cached) " >&6 13786else 13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13788/* end confdefs.h. */ 13789int i; 13790int 13791main () 13792{ 13793 13794 ; 13795 return 0; 13796} 13797_ACEOF 13798if ac_fn_c_try_link "$LINENO"; then : 13799 eval $cacheid=yes 13800else 13801 eval $cacheid=no 13802fi 13803rm -f core conftest.err conftest.$ac_objext \ 13804 conftest$ac_exeext conftest.$ac_ext 13805fi 13806 13807 13808 CFLAGS="$xorg_testset_save_CFLAGS" 13809 13810 eval supported=\$$cacheid 13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13812$as_echo "$supported" >&6; } 13813 if test "$supported" = "yes" ; then 13814 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13815 found="yes" 13816 fi 13817 fi 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833xorg_testset_save_CFLAGS="$CFLAGS" 13834 13835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13838$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13839if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13840 $as_echo_n "(cached) " >&6 13841else 13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13843/* end confdefs.h. */ 13844int i; 13845_ACEOF 13846if ac_fn_c_try_compile "$LINENO"; then : 13847 xorg_cv_cc_flag_unknown_warning_option=yes 13848else 13849 xorg_cv_cc_flag_unknown_warning_option=no 13850fi 13851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13852fi 13853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13854$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13856 CFLAGS="$xorg_testset_save_CFLAGS" 13857fi 13858 13859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13862 fi 13863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13865$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13866if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13867 $as_echo_n "(cached) " >&6 13868else 13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13870/* end confdefs.h. */ 13871int i; 13872_ACEOF 13873if ac_fn_c_try_compile "$LINENO"; then : 13874 xorg_cv_cc_flag_unused_command_line_argument=yes 13875else 13876 xorg_cv_cc_flag_unused_command_line_argument=no 13877fi 13878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13879fi 13880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13881$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13883 CFLAGS="$xorg_testset_save_CFLAGS" 13884fi 13885 13886found="no" 13887 13888 if test $found = "no" ; then 13889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13891 fi 13892 13893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13895 fi 13896 13897 CFLAGS="$CFLAGS -Wshadow" 13898 13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13900$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13901 cacheid=xorg_cv_cc_flag__Wshadow 13902 if eval \${$cacheid+:} false; then : 13903 $as_echo_n "(cached) " >&6 13904else 13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13906/* end confdefs.h. */ 13907int i; 13908int 13909main () 13910{ 13911 13912 ; 13913 return 0; 13914} 13915_ACEOF 13916if ac_fn_c_try_link "$LINENO"; then : 13917 eval $cacheid=yes 13918else 13919 eval $cacheid=no 13920fi 13921rm -f core conftest.err conftest.$ac_objext \ 13922 conftest$ac_exeext conftest.$ac_ext 13923fi 13924 13925 13926 CFLAGS="$xorg_testset_save_CFLAGS" 13927 13928 eval supported=\$$cacheid 13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13930$as_echo "$supported" >&6; } 13931 if test "$supported" = "yes" ; then 13932 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13933 found="yes" 13934 fi 13935 fi 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951xorg_testset_save_CFLAGS="$CFLAGS" 13952 13953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13956$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13957if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13958 $as_echo_n "(cached) " >&6 13959else 13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13961/* end confdefs.h. */ 13962int i; 13963_ACEOF 13964if ac_fn_c_try_compile "$LINENO"; then : 13965 xorg_cv_cc_flag_unknown_warning_option=yes 13966else 13967 xorg_cv_cc_flag_unknown_warning_option=no 13968fi 13969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13970fi 13971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13972$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13974 CFLAGS="$xorg_testset_save_CFLAGS" 13975fi 13976 13977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13980 fi 13981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13983$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13984if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13985 $as_echo_n "(cached) " >&6 13986else 13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13988/* end confdefs.h. */ 13989int i; 13990_ACEOF 13991if ac_fn_c_try_compile "$LINENO"; then : 13992 xorg_cv_cc_flag_unused_command_line_argument=yes 13993else 13994 xorg_cv_cc_flag_unused_command_line_argument=no 13995fi 13996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13997fi 13998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13999$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14001 CFLAGS="$xorg_testset_save_CFLAGS" 14002fi 14003 14004found="no" 14005 14006 if test $found = "no" ; then 14007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14009 fi 14010 14011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14013 fi 14014 14015 CFLAGS="$CFLAGS -Wmissing-noreturn" 14016 14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14018$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14019 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14020 if eval \${$cacheid+:} false; then : 14021 $as_echo_n "(cached) " >&6 14022else 14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14024/* end confdefs.h. */ 14025int i; 14026int 14027main () 14028{ 14029 14030 ; 14031 return 0; 14032} 14033_ACEOF 14034if ac_fn_c_try_link "$LINENO"; then : 14035 eval $cacheid=yes 14036else 14037 eval $cacheid=no 14038fi 14039rm -f core conftest.err conftest.$ac_objext \ 14040 conftest$ac_exeext conftest.$ac_ext 14041fi 14042 14043 14044 CFLAGS="$xorg_testset_save_CFLAGS" 14045 14046 eval supported=\$$cacheid 14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14048$as_echo "$supported" >&6; } 14049 if test "$supported" = "yes" ; then 14050 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14051 found="yes" 14052 fi 14053 fi 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069xorg_testset_save_CFLAGS="$CFLAGS" 14070 14071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14074$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14075if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14076 $as_echo_n "(cached) " >&6 14077else 14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14079/* end confdefs.h. */ 14080int i; 14081_ACEOF 14082if ac_fn_c_try_compile "$LINENO"; then : 14083 xorg_cv_cc_flag_unknown_warning_option=yes 14084else 14085 xorg_cv_cc_flag_unknown_warning_option=no 14086fi 14087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14088fi 14089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14090$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14092 CFLAGS="$xorg_testset_save_CFLAGS" 14093fi 14094 14095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14098 fi 14099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14102if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14103 $as_echo_n "(cached) " >&6 14104else 14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14106/* end confdefs.h. */ 14107int i; 14108_ACEOF 14109if ac_fn_c_try_compile "$LINENO"; then : 14110 xorg_cv_cc_flag_unused_command_line_argument=yes 14111else 14112 xorg_cv_cc_flag_unused_command_line_argument=no 14113fi 14114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14115fi 14116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14117$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14119 CFLAGS="$xorg_testset_save_CFLAGS" 14120fi 14121 14122found="no" 14123 14124 if test $found = "no" ; then 14125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14127 fi 14128 14129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14131 fi 14132 14133 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14134 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14136$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14137 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14138 if eval \${$cacheid+:} false; then : 14139 $as_echo_n "(cached) " >&6 14140else 14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14142/* end confdefs.h. */ 14143int i; 14144int 14145main () 14146{ 14147 14148 ; 14149 return 0; 14150} 14151_ACEOF 14152if ac_fn_c_try_link "$LINENO"; then : 14153 eval $cacheid=yes 14154else 14155 eval $cacheid=no 14156fi 14157rm -f core conftest.err conftest.$ac_objext \ 14158 conftest$ac_exeext conftest.$ac_ext 14159fi 14160 14161 14162 CFLAGS="$xorg_testset_save_CFLAGS" 14163 14164 eval supported=\$$cacheid 14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14166$as_echo "$supported" >&6; } 14167 if test "$supported" = "yes" ; then 14168 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14169 found="yes" 14170 fi 14171 fi 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187xorg_testset_save_CFLAGS="$CFLAGS" 14188 14189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14194 $as_echo_n "(cached) " >&6 14195else 14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14197/* end confdefs.h. */ 14198int i; 14199_ACEOF 14200if ac_fn_c_try_compile "$LINENO"; then : 14201 xorg_cv_cc_flag_unknown_warning_option=yes 14202else 14203 xorg_cv_cc_flag_unknown_warning_option=no 14204fi 14205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14206fi 14207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14210 CFLAGS="$xorg_testset_save_CFLAGS" 14211fi 14212 14213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14216 fi 14217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14221 $as_echo_n "(cached) " >&6 14222else 14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14224/* end confdefs.h. */ 14225int i; 14226_ACEOF 14227if ac_fn_c_try_compile "$LINENO"; then : 14228 xorg_cv_cc_flag_unused_command_line_argument=yes 14229else 14230 xorg_cv_cc_flag_unused_command_line_argument=no 14231fi 14232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14233fi 14234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14237 CFLAGS="$xorg_testset_save_CFLAGS" 14238fi 14239 14240found="no" 14241 14242 if test $found = "no" ; then 14243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14245 fi 14246 14247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14249 fi 14250 14251 CFLAGS="$CFLAGS -Wredundant-decls" 14252 14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14254$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14255 cacheid=xorg_cv_cc_flag__Wredundant_decls 14256 if eval \${$cacheid+:} false; then : 14257 $as_echo_n "(cached) " >&6 14258else 14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14260/* end confdefs.h. */ 14261int i; 14262int 14263main () 14264{ 14265 14266 ; 14267 return 0; 14268} 14269_ACEOF 14270if ac_fn_c_try_link "$LINENO"; then : 14271 eval $cacheid=yes 14272else 14273 eval $cacheid=no 14274fi 14275rm -f core conftest.err conftest.$ac_objext \ 14276 conftest$ac_exeext conftest.$ac_ext 14277fi 14278 14279 14280 CFLAGS="$xorg_testset_save_CFLAGS" 14281 14282 eval supported=\$$cacheid 14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14284$as_echo "$supported" >&6; } 14285 if test "$supported" = "yes" ; then 14286 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14287 found="yes" 14288 fi 14289 fi 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305xorg_testset_save_CFLAGS="$CFLAGS" 14306 14307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14312 $as_echo_n "(cached) " >&6 14313else 14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14315/* end confdefs.h. */ 14316int i; 14317_ACEOF 14318if ac_fn_c_try_compile "$LINENO"; then : 14319 xorg_cv_cc_flag_unknown_warning_option=yes 14320else 14321 xorg_cv_cc_flag_unknown_warning_option=no 14322fi 14323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14324fi 14325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14328 CFLAGS="$xorg_testset_save_CFLAGS" 14329fi 14330 14331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14334 fi 14335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14339 $as_echo_n "(cached) " >&6 14340else 14341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14342/* end confdefs.h. */ 14343int i; 14344_ACEOF 14345if ac_fn_c_try_compile "$LINENO"; then : 14346 xorg_cv_cc_flag_unused_command_line_argument=yes 14347else 14348 xorg_cv_cc_flag_unused_command_line_argument=no 14349fi 14350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14351fi 14352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14355 CFLAGS="$xorg_testset_save_CFLAGS" 14356fi 14357 14358found="no" 14359 14360 if test $found = "no" ; then 14361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14363 fi 14364 14365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14367 fi 14368 14369 CFLAGS="$CFLAGS -Wlogical-op" 14370 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14372$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14373 cacheid=xorg_cv_cc_flag__Wlogical_op 14374 if eval \${$cacheid+:} false; then : 14375 $as_echo_n "(cached) " >&6 14376else 14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14378/* end confdefs.h. */ 14379int i; 14380int 14381main () 14382{ 14383 14384 ; 14385 return 0; 14386} 14387_ACEOF 14388if ac_fn_c_try_link "$LINENO"; then : 14389 eval $cacheid=yes 14390else 14391 eval $cacheid=no 14392fi 14393rm -f core conftest.err conftest.$ac_objext \ 14394 conftest$ac_exeext conftest.$ac_ext 14395fi 14396 14397 14398 CFLAGS="$xorg_testset_save_CFLAGS" 14399 14400 eval supported=\$$cacheid 14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14402$as_echo "$supported" >&6; } 14403 if test "$supported" = "yes" ; then 14404 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14405 found="yes" 14406 fi 14407 fi 14408 14409 14410 14411# These are currently disabled because they are noisy. They will be enabled 14412# in the future once the codebase is sufficiently modernized to silence 14413# them. For now, I don't want them to drown out the other warnings. 14414# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14415# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14416# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14417 14418# Turn some warnings into errors, so we don't accidently get successful builds 14419# when there are problems that should be fixed. 14420 14421if test "x$SELECTIVE_WERROR" = "xyes" ; then 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435xorg_testset_save_CFLAGS="$CFLAGS" 14436 14437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14440$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14441if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14442 $as_echo_n "(cached) " >&6 14443else 14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14445/* end confdefs.h. */ 14446int i; 14447_ACEOF 14448if ac_fn_c_try_compile "$LINENO"; then : 14449 xorg_cv_cc_flag_unknown_warning_option=yes 14450else 14451 xorg_cv_cc_flag_unknown_warning_option=no 14452fi 14453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14454fi 14455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14456$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14458 CFLAGS="$xorg_testset_save_CFLAGS" 14459fi 14460 14461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14464 fi 14465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14467$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14468if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14469 $as_echo_n "(cached) " >&6 14470else 14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14472/* end confdefs.h. */ 14473int i; 14474_ACEOF 14475if ac_fn_c_try_compile "$LINENO"; then : 14476 xorg_cv_cc_flag_unused_command_line_argument=yes 14477else 14478 xorg_cv_cc_flag_unused_command_line_argument=no 14479fi 14480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14481fi 14482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14483$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14485 CFLAGS="$xorg_testset_save_CFLAGS" 14486fi 14487 14488found="no" 14489 14490 if test $found = "no" ; then 14491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14493 fi 14494 14495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14497 fi 14498 14499 CFLAGS="$CFLAGS -Werror=implicit" 14500 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14502$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14503 cacheid=xorg_cv_cc_flag__Werror_implicit 14504 if eval \${$cacheid+:} false; then : 14505 $as_echo_n "(cached) " >&6 14506else 14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14508/* end confdefs.h. */ 14509int i; 14510int 14511main () 14512{ 14513 14514 ; 14515 return 0; 14516} 14517_ACEOF 14518if ac_fn_c_try_link "$LINENO"; then : 14519 eval $cacheid=yes 14520else 14521 eval $cacheid=no 14522fi 14523rm -f core conftest.err conftest.$ac_objext \ 14524 conftest$ac_exeext conftest.$ac_ext 14525fi 14526 14527 14528 CFLAGS="$xorg_testset_save_CFLAGS" 14529 14530 eval supported=\$$cacheid 14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14532$as_echo "$supported" >&6; } 14533 if test "$supported" = "yes" ; then 14534 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14535 found="yes" 14536 fi 14537 fi 14538 14539 if test $found = "no" ; then 14540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14542 fi 14543 14544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14546 fi 14547 14548 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14549 14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14551$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14552 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14553 if eval \${$cacheid+:} false; then : 14554 $as_echo_n "(cached) " >&6 14555else 14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14557/* end confdefs.h. */ 14558int i; 14559int 14560main () 14561{ 14562 14563 ; 14564 return 0; 14565} 14566_ACEOF 14567if ac_fn_c_try_link "$LINENO"; then : 14568 eval $cacheid=yes 14569else 14570 eval $cacheid=no 14571fi 14572rm -f core conftest.err conftest.$ac_objext \ 14573 conftest$ac_exeext conftest.$ac_ext 14574fi 14575 14576 14577 CFLAGS="$xorg_testset_save_CFLAGS" 14578 14579 eval supported=\$$cacheid 14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14581$as_echo "$supported" >&6; } 14582 if test "$supported" = "yes" ; then 14583 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14584 found="yes" 14585 fi 14586 fi 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602xorg_testset_save_CFLAGS="$CFLAGS" 14603 14604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14609 $as_echo_n "(cached) " >&6 14610else 14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14612/* end confdefs.h. */ 14613int i; 14614_ACEOF 14615if ac_fn_c_try_compile "$LINENO"; then : 14616 xorg_cv_cc_flag_unknown_warning_option=yes 14617else 14618 xorg_cv_cc_flag_unknown_warning_option=no 14619fi 14620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14621fi 14622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14625 CFLAGS="$xorg_testset_save_CFLAGS" 14626fi 14627 14628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14631 fi 14632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14636 $as_echo_n "(cached) " >&6 14637else 14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14639/* end confdefs.h. */ 14640int i; 14641_ACEOF 14642if ac_fn_c_try_compile "$LINENO"; then : 14643 xorg_cv_cc_flag_unused_command_line_argument=yes 14644else 14645 xorg_cv_cc_flag_unused_command_line_argument=no 14646fi 14647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14648fi 14649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14652 CFLAGS="$xorg_testset_save_CFLAGS" 14653fi 14654 14655found="no" 14656 14657 if test $found = "no" ; then 14658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14660 fi 14661 14662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14664 fi 14665 14666 CFLAGS="$CFLAGS -Werror=nonnull" 14667 14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14669$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14670 cacheid=xorg_cv_cc_flag__Werror_nonnull 14671 if eval \${$cacheid+:} false; then : 14672 $as_echo_n "(cached) " >&6 14673else 14674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14675/* end confdefs.h. */ 14676int i; 14677int 14678main () 14679{ 14680 14681 ; 14682 return 0; 14683} 14684_ACEOF 14685if ac_fn_c_try_link "$LINENO"; then : 14686 eval $cacheid=yes 14687else 14688 eval $cacheid=no 14689fi 14690rm -f core conftest.err conftest.$ac_objext \ 14691 conftest$ac_exeext conftest.$ac_ext 14692fi 14693 14694 14695 CFLAGS="$xorg_testset_save_CFLAGS" 14696 14697 eval supported=\$$cacheid 14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14699$as_echo "$supported" >&6; } 14700 if test "$supported" = "yes" ; then 14701 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14702 found="yes" 14703 fi 14704 fi 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720xorg_testset_save_CFLAGS="$CFLAGS" 14721 14722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14727 $as_echo_n "(cached) " >&6 14728else 14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14730/* end confdefs.h. */ 14731int i; 14732_ACEOF 14733if ac_fn_c_try_compile "$LINENO"; then : 14734 xorg_cv_cc_flag_unknown_warning_option=yes 14735else 14736 xorg_cv_cc_flag_unknown_warning_option=no 14737fi 14738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14739fi 14740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14743 CFLAGS="$xorg_testset_save_CFLAGS" 14744fi 14745 14746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14749 fi 14750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14754 $as_echo_n "(cached) " >&6 14755else 14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14757/* end confdefs.h. */ 14758int i; 14759_ACEOF 14760if ac_fn_c_try_compile "$LINENO"; then : 14761 xorg_cv_cc_flag_unused_command_line_argument=yes 14762else 14763 xorg_cv_cc_flag_unused_command_line_argument=no 14764fi 14765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14766fi 14767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14770 CFLAGS="$xorg_testset_save_CFLAGS" 14771fi 14772 14773found="no" 14774 14775 if test $found = "no" ; then 14776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14778 fi 14779 14780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14782 fi 14783 14784 CFLAGS="$CFLAGS -Werror=init-self" 14785 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14787$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14788 cacheid=xorg_cv_cc_flag__Werror_init_self 14789 if eval \${$cacheid+:} false; then : 14790 $as_echo_n "(cached) " >&6 14791else 14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14793/* end confdefs.h. */ 14794int i; 14795int 14796main () 14797{ 14798 14799 ; 14800 return 0; 14801} 14802_ACEOF 14803if ac_fn_c_try_link "$LINENO"; then : 14804 eval $cacheid=yes 14805else 14806 eval $cacheid=no 14807fi 14808rm -f core conftest.err conftest.$ac_objext \ 14809 conftest$ac_exeext conftest.$ac_ext 14810fi 14811 14812 14813 CFLAGS="$xorg_testset_save_CFLAGS" 14814 14815 eval supported=\$$cacheid 14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14817$as_echo "$supported" >&6; } 14818 if test "$supported" = "yes" ; then 14819 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14820 found="yes" 14821 fi 14822 fi 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838xorg_testset_save_CFLAGS="$CFLAGS" 14839 14840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14845 $as_echo_n "(cached) " >&6 14846else 14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14848/* end confdefs.h. */ 14849int i; 14850_ACEOF 14851if ac_fn_c_try_compile "$LINENO"; then : 14852 xorg_cv_cc_flag_unknown_warning_option=yes 14853else 14854 xorg_cv_cc_flag_unknown_warning_option=no 14855fi 14856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14857fi 14858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14861 CFLAGS="$xorg_testset_save_CFLAGS" 14862fi 14863 14864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14867 fi 14868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14872 $as_echo_n "(cached) " >&6 14873else 14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14875/* end confdefs.h. */ 14876int i; 14877_ACEOF 14878if ac_fn_c_try_compile "$LINENO"; then : 14879 xorg_cv_cc_flag_unused_command_line_argument=yes 14880else 14881 xorg_cv_cc_flag_unused_command_line_argument=no 14882fi 14883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14884fi 14885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14888 CFLAGS="$xorg_testset_save_CFLAGS" 14889fi 14890 14891found="no" 14892 14893 if test $found = "no" ; then 14894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14896 fi 14897 14898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14900 fi 14901 14902 CFLAGS="$CFLAGS -Werror=main" 14903 14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14905$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14906 cacheid=xorg_cv_cc_flag__Werror_main 14907 if eval \${$cacheid+:} false; then : 14908 $as_echo_n "(cached) " >&6 14909else 14910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14911/* end confdefs.h. */ 14912int i; 14913int 14914main () 14915{ 14916 14917 ; 14918 return 0; 14919} 14920_ACEOF 14921if ac_fn_c_try_link "$LINENO"; then : 14922 eval $cacheid=yes 14923else 14924 eval $cacheid=no 14925fi 14926rm -f core conftest.err conftest.$ac_objext \ 14927 conftest$ac_exeext conftest.$ac_ext 14928fi 14929 14930 14931 CFLAGS="$xorg_testset_save_CFLAGS" 14932 14933 eval supported=\$$cacheid 14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14935$as_echo "$supported" >&6; } 14936 if test "$supported" = "yes" ; then 14937 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14938 found="yes" 14939 fi 14940 fi 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956xorg_testset_save_CFLAGS="$CFLAGS" 14957 14958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14963 $as_echo_n "(cached) " >&6 14964else 14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14966/* end confdefs.h. */ 14967int i; 14968_ACEOF 14969if ac_fn_c_try_compile "$LINENO"; then : 14970 xorg_cv_cc_flag_unknown_warning_option=yes 14971else 14972 xorg_cv_cc_flag_unknown_warning_option=no 14973fi 14974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14975fi 14976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14979 CFLAGS="$xorg_testset_save_CFLAGS" 14980fi 14981 14982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14985 fi 14986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14990 $as_echo_n "(cached) " >&6 14991else 14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14993/* end confdefs.h. */ 14994int i; 14995_ACEOF 14996if ac_fn_c_try_compile "$LINENO"; then : 14997 xorg_cv_cc_flag_unused_command_line_argument=yes 14998else 14999 xorg_cv_cc_flag_unused_command_line_argument=no 15000fi 15001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15002fi 15003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15006 CFLAGS="$xorg_testset_save_CFLAGS" 15007fi 15008 15009found="no" 15010 15011 if test $found = "no" ; then 15012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15014 fi 15015 15016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15018 fi 15019 15020 CFLAGS="$CFLAGS -Werror=missing-braces" 15021 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15023$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15024 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15025 if eval \${$cacheid+:} false; then : 15026 $as_echo_n "(cached) " >&6 15027else 15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15029/* end confdefs.h. */ 15030int i; 15031int 15032main () 15033{ 15034 15035 ; 15036 return 0; 15037} 15038_ACEOF 15039if ac_fn_c_try_link "$LINENO"; then : 15040 eval $cacheid=yes 15041else 15042 eval $cacheid=no 15043fi 15044rm -f core conftest.err conftest.$ac_objext \ 15045 conftest$ac_exeext conftest.$ac_ext 15046fi 15047 15048 15049 CFLAGS="$xorg_testset_save_CFLAGS" 15050 15051 eval supported=\$$cacheid 15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15053$as_echo "$supported" >&6; } 15054 if test "$supported" = "yes" ; then 15055 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15056 found="yes" 15057 fi 15058 fi 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074xorg_testset_save_CFLAGS="$CFLAGS" 15075 15076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15080if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15081 $as_echo_n "(cached) " >&6 15082else 15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15084/* end confdefs.h. */ 15085int i; 15086_ACEOF 15087if ac_fn_c_try_compile "$LINENO"; then : 15088 xorg_cv_cc_flag_unknown_warning_option=yes 15089else 15090 xorg_cv_cc_flag_unknown_warning_option=no 15091fi 15092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15093fi 15094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15095$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15097 CFLAGS="$xorg_testset_save_CFLAGS" 15098fi 15099 15100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15103 fi 15104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15106$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15107if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15108 $as_echo_n "(cached) " >&6 15109else 15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15111/* end confdefs.h. */ 15112int i; 15113_ACEOF 15114if ac_fn_c_try_compile "$LINENO"; then : 15115 xorg_cv_cc_flag_unused_command_line_argument=yes 15116else 15117 xorg_cv_cc_flag_unused_command_line_argument=no 15118fi 15119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15120fi 15121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15122$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15124 CFLAGS="$xorg_testset_save_CFLAGS" 15125fi 15126 15127found="no" 15128 15129 if test $found = "no" ; then 15130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15132 fi 15133 15134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15136 fi 15137 15138 CFLAGS="$CFLAGS -Werror=sequence-point" 15139 15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15141$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15142 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15143 if eval \${$cacheid+:} false; then : 15144 $as_echo_n "(cached) " >&6 15145else 15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15147/* end confdefs.h. */ 15148int i; 15149int 15150main () 15151{ 15152 15153 ; 15154 return 0; 15155} 15156_ACEOF 15157if ac_fn_c_try_link "$LINENO"; then : 15158 eval $cacheid=yes 15159else 15160 eval $cacheid=no 15161fi 15162rm -f core conftest.err conftest.$ac_objext \ 15163 conftest$ac_exeext conftest.$ac_ext 15164fi 15165 15166 15167 CFLAGS="$xorg_testset_save_CFLAGS" 15168 15169 eval supported=\$$cacheid 15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15171$as_echo "$supported" >&6; } 15172 if test "$supported" = "yes" ; then 15173 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15174 found="yes" 15175 fi 15176 fi 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192xorg_testset_save_CFLAGS="$CFLAGS" 15193 15194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15199 $as_echo_n "(cached) " >&6 15200else 15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15202/* end confdefs.h. */ 15203int i; 15204_ACEOF 15205if ac_fn_c_try_compile "$LINENO"; then : 15206 xorg_cv_cc_flag_unknown_warning_option=yes 15207else 15208 xorg_cv_cc_flag_unknown_warning_option=no 15209fi 15210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15211fi 15212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15215 CFLAGS="$xorg_testset_save_CFLAGS" 15216fi 15217 15218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15221 fi 15222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15226 $as_echo_n "(cached) " >&6 15227else 15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15229/* end confdefs.h. */ 15230int i; 15231_ACEOF 15232if ac_fn_c_try_compile "$LINENO"; then : 15233 xorg_cv_cc_flag_unused_command_line_argument=yes 15234else 15235 xorg_cv_cc_flag_unused_command_line_argument=no 15236fi 15237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15238fi 15239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15242 CFLAGS="$xorg_testset_save_CFLAGS" 15243fi 15244 15245found="no" 15246 15247 if test $found = "no" ; then 15248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15250 fi 15251 15252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15254 fi 15255 15256 CFLAGS="$CFLAGS -Werror=return-type" 15257 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15259$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15260 cacheid=xorg_cv_cc_flag__Werror_return_type 15261 if eval \${$cacheid+:} false; then : 15262 $as_echo_n "(cached) " >&6 15263else 15264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15265/* end confdefs.h. */ 15266int i; 15267int 15268main () 15269{ 15270 15271 ; 15272 return 0; 15273} 15274_ACEOF 15275if ac_fn_c_try_link "$LINENO"; then : 15276 eval $cacheid=yes 15277else 15278 eval $cacheid=no 15279fi 15280rm -f core conftest.err conftest.$ac_objext \ 15281 conftest$ac_exeext conftest.$ac_ext 15282fi 15283 15284 15285 CFLAGS="$xorg_testset_save_CFLAGS" 15286 15287 eval supported=\$$cacheid 15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15289$as_echo "$supported" >&6; } 15290 if test "$supported" = "yes" ; then 15291 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15292 found="yes" 15293 fi 15294 fi 15295 15296 if test $found = "no" ; then 15297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15299 fi 15300 15301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15303 fi 15304 15305 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15306 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15308$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15309 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15310 if eval \${$cacheid+:} false; then : 15311 $as_echo_n "(cached) " >&6 15312else 15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15314/* end confdefs.h. */ 15315int i; 15316int 15317main () 15318{ 15319 15320 ; 15321 return 0; 15322} 15323_ACEOF 15324if ac_fn_c_try_link "$LINENO"; then : 15325 eval $cacheid=yes 15326else 15327 eval $cacheid=no 15328fi 15329rm -f core conftest.err conftest.$ac_objext \ 15330 conftest$ac_exeext conftest.$ac_ext 15331fi 15332 15333 15334 CFLAGS="$xorg_testset_save_CFLAGS" 15335 15336 eval supported=\$$cacheid 15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15338$as_echo "$supported" >&6; } 15339 if test "$supported" = "yes" ; then 15340 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15341 found="yes" 15342 fi 15343 fi 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359xorg_testset_save_CFLAGS="$CFLAGS" 15360 15361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15366 $as_echo_n "(cached) " >&6 15367else 15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15369/* end confdefs.h. */ 15370int i; 15371_ACEOF 15372if ac_fn_c_try_compile "$LINENO"; then : 15373 xorg_cv_cc_flag_unknown_warning_option=yes 15374else 15375 xorg_cv_cc_flag_unknown_warning_option=no 15376fi 15377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15378fi 15379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15382 CFLAGS="$xorg_testset_save_CFLAGS" 15383fi 15384 15385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15388 fi 15389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15393 $as_echo_n "(cached) " >&6 15394else 15395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15396/* end confdefs.h. */ 15397int i; 15398_ACEOF 15399if ac_fn_c_try_compile "$LINENO"; then : 15400 xorg_cv_cc_flag_unused_command_line_argument=yes 15401else 15402 xorg_cv_cc_flag_unused_command_line_argument=no 15403fi 15404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15405fi 15406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15409 CFLAGS="$xorg_testset_save_CFLAGS" 15410fi 15411 15412found="no" 15413 15414 if test $found = "no" ; then 15415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15417 fi 15418 15419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15421 fi 15422 15423 CFLAGS="$CFLAGS -Werror=trigraphs" 15424 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15426$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15427 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15428 if eval \${$cacheid+:} false; then : 15429 $as_echo_n "(cached) " >&6 15430else 15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15432/* end confdefs.h. */ 15433int i; 15434int 15435main () 15436{ 15437 15438 ; 15439 return 0; 15440} 15441_ACEOF 15442if ac_fn_c_try_link "$LINENO"; then : 15443 eval $cacheid=yes 15444else 15445 eval $cacheid=no 15446fi 15447rm -f core conftest.err conftest.$ac_objext \ 15448 conftest$ac_exeext conftest.$ac_ext 15449fi 15450 15451 15452 CFLAGS="$xorg_testset_save_CFLAGS" 15453 15454 eval supported=\$$cacheid 15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15456$as_echo "$supported" >&6; } 15457 if test "$supported" = "yes" ; then 15458 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15459 found="yes" 15460 fi 15461 fi 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477xorg_testset_save_CFLAGS="$CFLAGS" 15478 15479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15484 $as_echo_n "(cached) " >&6 15485else 15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15487/* end confdefs.h. */ 15488int i; 15489_ACEOF 15490if ac_fn_c_try_compile "$LINENO"; then : 15491 xorg_cv_cc_flag_unknown_warning_option=yes 15492else 15493 xorg_cv_cc_flag_unknown_warning_option=no 15494fi 15495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15496fi 15497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15500 CFLAGS="$xorg_testset_save_CFLAGS" 15501fi 15502 15503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15506 fi 15507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15511 $as_echo_n "(cached) " >&6 15512else 15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15514/* end confdefs.h. */ 15515int i; 15516_ACEOF 15517if ac_fn_c_try_compile "$LINENO"; then : 15518 xorg_cv_cc_flag_unused_command_line_argument=yes 15519else 15520 xorg_cv_cc_flag_unused_command_line_argument=no 15521fi 15522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15523fi 15524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15527 CFLAGS="$xorg_testset_save_CFLAGS" 15528fi 15529 15530found="no" 15531 15532 if test $found = "no" ; then 15533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15535 fi 15536 15537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15539 fi 15540 15541 CFLAGS="$CFLAGS -Werror=array-bounds" 15542 15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15544$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15545 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15546 if eval \${$cacheid+:} false; then : 15547 $as_echo_n "(cached) " >&6 15548else 15549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15550/* end confdefs.h. */ 15551int i; 15552int 15553main () 15554{ 15555 15556 ; 15557 return 0; 15558} 15559_ACEOF 15560if ac_fn_c_try_link "$LINENO"; then : 15561 eval $cacheid=yes 15562else 15563 eval $cacheid=no 15564fi 15565rm -f core conftest.err conftest.$ac_objext \ 15566 conftest$ac_exeext conftest.$ac_ext 15567fi 15568 15569 15570 CFLAGS="$xorg_testset_save_CFLAGS" 15571 15572 eval supported=\$$cacheid 15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15574$as_echo "$supported" >&6; } 15575 if test "$supported" = "yes" ; then 15576 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15577 found="yes" 15578 fi 15579 fi 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595xorg_testset_save_CFLAGS="$CFLAGS" 15596 15597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15600$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15601if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15602 $as_echo_n "(cached) " >&6 15603else 15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15605/* end confdefs.h. */ 15606int i; 15607_ACEOF 15608if ac_fn_c_try_compile "$LINENO"; then : 15609 xorg_cv_cc_flag_unknown_warning_option=yes 15610else 15611 xorg_cv_cc_flag_unknown_warning_option=no 15612fi 15613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15614fi 15615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15616$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15618 CFLAGS="$xorg_testset_save_CFLAGS" 15619fi 15620 15621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15624 fi 15625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15627$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15628if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15629 $as_echo_n "(cached) " >&6 15630else 15631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15632/* end confdefs.h. */ 15633int i; 15634_ACEOF 15635if ac_fn_c_try_compile "$LINENO"; then : 15636 xorg_cv_cc_flag_unused_command_line_argument=yes 15637else 15638 xorg_cv_cc_flag_unused_command_line_argument=no 15639fi 15640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15641fi 15642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15643$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15645 CFLAGS="$xorg_testset_save_CFLAGS" 15646fi 15647 15648found="no" 15649 15650 if test $found = "no" ; then 15651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15653 fi 15654 15655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15657 fi 15658 15659 CFLAGS="$CFLAGS -Werror=write-strings" 15660 15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15662$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15663 cacheid=xorg_cv_cc_flag__Werror_write_strings 15664 if eval \${$cacheid+:} false; then : 15665 $as_echo_n "(cached) " >&6 15666else 15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15668/* end confdefs.h. */ 15669int i; 15670int 15671main () 15672{ 15673 15674 ; 15675 return 0; 15676} 15677_ACEOF 15678if ac_fn_c_try_link "$LINENO"; then : 15679 eval $cacheid=yes 15680else 15681 eval $cacheid=no 15682fi 15683rm -f core conftest.err conftest.$ac_objext \ 15684 conftest$ac_exeext conftest.$ac_ext 15685fi 15686 15687 15688 CFLAGS="$xorg_testset_save_CFLAGS" 15689 15690 eval supported=\$$cacheid 15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15692$as_echo "$supported" >&6; } 15693 if test "$supported" = "yes" ; then 15694 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15695 found="yes" 15696 fi 15697 fi 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713xorg_testset_save_CFLAGS="$CFLAGS" 15714 15715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15718$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15719if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15720 $as_echo_n "(cached) " >&6 15721else 15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15723/* end confdefs.h. */ 15724int i; 15725_ACEOF 15726if ac_fn_c_try_compile "$LINENO"; then : 15727 xorg_cv_cc_flag_unknown_warning_option=yes 15728else 15729 xorg_cv_cc_flag_unknown_warning_option=no 15730fi 15731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15732fi 15733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15734$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15736 CFLAGS="$xorg_testset_save_CFLAGS" 15737fi 15738 15739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15742 fi 15743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15746if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15747 $as_echo_n "(cached) " >&6 15748else 15749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15750/* end confdefs.h. */ 15751int i; 15752_ACEOF 15753if ac_fn_c_try_compile "$LINENO"; then : 15754 xorg_cv_cc_flag_unused_command_line_argument=yes 15755else 15756 xorg_cv_cc_flag_unused_command_line_argument=no 15757fi 15758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15759fi 15760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15761$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15763 CFLAGS="$xorg_testset_save_CFLAGS" 15764fi 15765 15766found="no" 15767 15768 if test $found = "no" ; then 15769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15771 fi 15772 15773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15775 fi 15776 15777 CFLAGS="$CFLAGS -Werror=address" 15778 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15780$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15781 cacheid=xorg_cv_cc_flag__Werror_address 15782 if eval \${$cacheid+:} false; then : 15783 $as_echo_n "(cached) " >&6 15784else 15785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15786/* end confdefs.h. */ 15787int i; 15788int 15789main () 15790{ 15791 15792 ; 15793 return 0; 15794} 15795_ACEOF 15796if ac_fn_c_try_link "$LINENO"; then : 15797 eval $cacheid=yes 15798else 15799 eval $cacheid=no 15800fi 15801rm -f core conftest.err conftest.$ac_objext \ 15802 conftest$ac_exeext conftest.$ac_ext 15803fi 15804 15805 15806 CFLAGS="$xorg_testset_save_CFLAGS" 15807 15808 eval supported=\$$cacheid 15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15810$as_echo "$supported" >&6; } 15811 if test "$supported" = "yes" ; then 15812 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15813 found="yes" 15814 fi 15815 fi 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831xorg_testset_save_CFLAGS="$CFLAGS" 15832 15833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15836$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15837if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15838 $as_echo_n "(cached) " >&6 15839else 15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15841/* end confdefs.h. */ 15842int i; 15843_ACEOF 15844if ac_fn_c_try_compile "$LINENO"; then : 15845 xorg_cv_cc_flag_unknown_warning_option=yes 15846else 15847 xorg_cv_cc_flag_unknown_warning_option=no 15848fi 15849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15850fi 15851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15852$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15854 CFLAGS="$xorg_testset_save_CFLAGS" 15855fi 15856 15857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15860 fi 15861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15863$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15864if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15865 $as_echo_n "(cached) " >&6 15866else 15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15868/* end confdefs.h. */ 15869int i; 15870_ACEOF 15871if ac_fn_c_try_compile "$LINENO"; then : 15872 xorg_cv_cc_flag_unused_command_line_argument=yes 15873else 15874 xorg_cv_cc_flag_unused_command_line_argument=no 15875fi 15876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15877fi 15878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15879$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15881 CFLAGS="$xorg_testset_save_CFLAGS" 15882fi 15883 15884found="no" 15885 15886 if test $found = "no" ; then 15887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15889 fi 15890 15891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15893 fi 15894 15895 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15896 15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15898$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15899 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15900 if eval \${$cacheid+:} false; then : 15901 $as_echo_n "(cached) " >&6 15902else 15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15904/* end confdefs.h. */ 15905int i; 15906int 15907main () 15908{ 15909 15910 ; 15911 return 0; 15912} 15913_ACEOF 15914if ac_fn_c_try_link "$LINENO"; then : 15915 eval $cacheid=yes 15916else 15917 eval $cacheid=no 15918fi 15919rm -f core conftest.err conftest.$ac_objext \ 15920 conftest$ac_exeext conftest.$ac_ext 15921fi 15922 15923 15924 CFLAGS="$xorg_testset_save_CFLAGS" 15925 15926 eval supported=\$$cacheid 15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15928$as_echo "$supported" >&6; } 15929 if test "$supported" = "yes" ; then 15930 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15931 found="yes" 15932 fi 15933 fi 15934 15935 if test $found = "no" ; then 15936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15938 fi 15939 15940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15942 fi 15943 15944 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15945 15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15947$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15948 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15949 if eval \${$cacheid+:} false; then : 15950 $as_echo_n "(cached) " >&6 15951else 15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15953/* end confdefs.h. */ 15954int i; 15955int 15956main () 15957{ 15958 15959 ; 15960 return 0; 15961} 15962_ACEOF 15963if ac_fn_c_try_link "$LINENO"; then : 15964 eval $cacheid=yes 15965else 15966 eval $cacheid=no 15967fi 15968rm -f core conftest.err conftest.$ac_objext \ 15969 conftest$ac_exeext conftest.$ac_ext 15970fi 15971 15972 15973 CFLAGS="$xorg_testset_save_CFLAGS" 15974 15975 eval supported=\$$cacheid 15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15977$as_echo "$supported" >&6; } 15978 if test "$supported" = "yes" ; then 15979 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15980 found="yes" 15981 fi 15982 fi 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998xorg_testset_save_CFLAGS="$CFLAGS" 15999 16000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16003$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16004if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16005 $as_echo_n "(cached) " >&6 16006else 16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16008/* end confdefs.h. */ 16009int i; 16010_ACEOF 16011if ac_fn_c_try_compile "$LINENO"; then : 16012 xorg_cv_cc_flag_unknown_warning_option=yes 16013else 16014 xorg_cv_cc_flag_unknown_warning_option=no 16015fi 16016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16017fi 16018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16019$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16021 CFLAGS="$xorg_testset_save_CFLAGS" 16022fi 16023 16024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16027 fi 16028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16030$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16031if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16032 $as_echo_n "(cached) " >&6 16033else 16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16035/* end confdefs.h. */ 16036int i; 16037_ACEOF 16038if ac_fn_c_try_compile "$LINENO"; then : 16039 xorg_cv_cc_flag_unused_command_line_argument=yes 16040else 16041 xorg_cv_cc_flag_unused_command_line_argument=no 16042fi 16043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16044fi 16045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16046$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16048 CFLAGS="$xorg_testset_save_CFLAGS" 16049fi 16050 16051found="no" 16052 16053 if test $found = "no" ; then 16054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16056 fi 16057 16058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16060 fi 16061 16062 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16063 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16065$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16066 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16067 if eval \${$cacheid+:} false; then : 16068 $as_echo_n "(cached) " >&6 16069else 16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16071/* end confdefs.h. */ 16072int i; 16073int 16074main () 16075{ 16076 16077 ; 16078 return 0; 16079} 16080_ACEOF 16081if ac_fn_c_try_link "$LINENO"; then : 16082 eval $cacheid=yes 16083else 16084 eval $cacheid=no 16085fi 16086rm -f core conftest.err conftest.$ac_objext \ 16087 conftest$ac_exeext conftest.$ac_ext 16088fi 16089 16090 16091 CFLAGS="$xorg_testset_save_CFLAGS" 16092 16093 eval supported=\$$cacheid 16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16095$as_echo "$supported" >&6; } 16096 if test "$supported" = "yes" ; then 16097 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16098 found="yes" 16099 fi 16100 fi 16101 16102 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16103else 16104{ $as_echo "$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 16105$as_echo "$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;} 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119xorg_testset_save_CFLAGS="$CFLAGS" 16120 16121if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16124$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16125if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16126 $as_echo_n "(cached) " >&6 16127else 16128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16129/* end confdefs.h. */ 16130int i; 16131_ACEOF 16132if ac_fn_c_try_compile "$LINENO"; then : 16133 xorg_cv_cc_flag_unknown_warning_option=yes 16134else 16135 xorg_cv_cc_flag_unknown_warning_option=no 16136fi 16137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16138fi 16139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16140$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16142 CFLAGS="$xorg_testset_save_CFLAGS" 16143fi 16144 16145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16148 fi 16149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16151$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16152if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16153 $as_echo_n "(cached) " >&6 16154else 16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16156/* end confdefs.h. */ 16157int i; 16158_ACEOF 16159if ac_fn_c_try_compile "$LINENO"; then : 16160 xorg_cv_cc_flag_unused_command_line_argument=yes 16161else 16162 xorg_cv_cc_flag_unused_command_line_argument=no 16163fi 16164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16165fi 16166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16167$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16169 CFLAGS="$xorg_testset_save_CFLAGS" 16170fi 16171 16172found="no" 16173 16174 if test $found = "no" ; then 16175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16177 fi 16178 16179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16181 fi 16182 16183 CFLAGS="$CFLAGS -Wimplicit" 16184 16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16186$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16187 cacheid=xorg_cv_cc_flag__Wimplicit 16188 if eval \${$cacheid+:} false; then : 16189 $as_echo_n "(cached) " >&6 16190else 16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16192/* end confdefs.h. */ 16193int i; 16194int 16195main () 16196{ 16197 16198 ; 16199 return 0; 16200} 16201_ACEOF 16202if ac_fn_c_try_link "$LINENO"; then : 16203 eval $cacheid=yes 16204else 16205 eval $cacheid=no 16206fi 16207rm -f core conftest.err conftest.$ac_objext \ 16208 conftest$ac_exeext conftest.$ac_ext 16209fi 16210 16211 16212 CFLAGS="$xorg_testset_save_CFLAGS" 16213 16214 eval supported=\$$cacheid 16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16216$as_echo "$supported" >&6; } 16217 if test "$supported" = "yes" ; then 16218 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16219 found="yes" 16220 fi 16221 fi 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237xorg_testset_save_CFLAGS="$CFLAGS" 16238 16239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16242$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16243if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16244 $as_echo_n "(cached) " >&6 16245else 16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16247/* end confdefs.h. */ 16248int i; 16249_ACEOF 16250if ac_fn_c_try_compile "$LINENO"; then : 16251 xorg_cv_cc_flag_unknown_warning_option=yes 16252else 16253 xorg_cv_cc_flag_unknown_warning_option=no 16254fi 16255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16256fi 16257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16258$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16260 CFLAGS="$xorg_testset_save_CFLAGS" 16261fi 16262 16263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16266 fi 16267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16269$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16270if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16271 $as_echo_n "(cached) " >&6 16272else 16273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16274/* end confdefs.h. */ 16275int i; 16276_ACEOF 16277if ac_fn_c_try_compile "$LINENO"; then : 16278 xorg_cv_cc_flag_unused_command_line_argument=yes 16279else 16280 xorg_cv_cc_flag_unused_command_line_argument=no 16281fi 16282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16283fi 16284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16285$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16287 CFLAGS="$xorg_testset_save_CFLAGS" 16288fi 16289 16290found="no" 16291 16292 if test $found = "no" ; then 16293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16295 fi 16296 16297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16299 fi 16300 16301 CFLAGS="$CFLAGS -Wnonnull" 16302 16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16304$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16305 cacheid=xorg_cv_cc_flag__Wnonnull 16306 if eval \${$cacheid+:} false; then : 16307 $as_echo_n "(cached) " >&6 16308else 16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16310/* end confdefs.h. */ 16311int i; 16312int 16313main () 16314{ 16315 16316 ; 16317 return 0; 16318} 16319_ACEOF 16320if ac_fn_c_try_link "$LINENO"; then : 16321 eval $cacheid=yes 16322else 16323 eval $cacheid=no 16324fi 16325rm -f core conftest.err conftest.$ac_objext \ 16326 conftest$ac_exeext conftest.$ac_ext 16327fi 16328 16329 16330 CFLAGS="$xorg_testset_save_CFLAGS" 16331 16332 eval supported=\$$cacheid 16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16334$as_echo "$supported" >&6; } 16335 if test "$supported" = "yes" ; then 16336 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16337 found="yes" 16338 fi 16339 fi 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355xorg_testset_save_CFLAGS="$CFLAGS" 16356 16357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16360$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16361if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16362 $as_echo_n "(cached) " >&6 16363else 16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16365/* end confdefs.h. */ 16366int i; 16367_ACEOF 16368if ac_fn_c_try_compile "$LINENO"; then : 16369 xorg_cv_cc_flag_unknown_warning_option=yes 16370else 16371 xorg_cv_cc_flag_unknown_warning_option=no 16372fi 16373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16374fi 16375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16376$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16378 CFLAGS="$xorg_testset_save_CFLAGS" 16379fi 16380 16381if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16384 fi 16385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16387$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16388if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16389 $as_echo_n "(cached) " >&6 16390else 16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16392/* end confdefs.h. */ 16393int i; 16394_ACEOF 16395if ac_fn_c_try_compile "$LINENO"; then : 16396 xorg_cv_cc_flag_unused_command_line_argument=yes 16397else 16398 xorg_cv_cc_flag_unused_command_line_argument=no 16399fi 16400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16401fi 16402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16403$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16405 CFLAGS="$xorg_testset_save_CFLAGS" 16406fi 16407 16408found="no" 16409 16410 if test $found = "no" ; then 16411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16413 fi 16414 16415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16417 fi 16418 16419 CFLAGS="$CFLAGS -Winit-self" 16420 16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16422$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16423 cacheid=xorg_cv_cc_flag__Winit_self 16424 if eval \${$cacheid+:} false; then : 16425 $as_echo_n "(cached) " >&6 16426else 16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16428/* end confdefs.h. */ 16429int i; 16430int 16431main () 16432{ 16433 16434 ; 16435 return 0; 16436} 16437_ACEOF 16438if ac_fn_c_try_link "$LINENO"; then : 16439 eval $cacheid=yes 16440else 16441 eval $cacheid=no 16442fi 16443rm -f core conftest.err conftest.$ac_objext \ 16444 conftest$ac_exeext conftest.$ac_ext 16445fi 16446 16447 16448 CFLAGS="$xorg_testset_save_CFLAGS" 16449 16450 eval supported=\$$cacheid 16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16452$as_echo "$supported" >&6; } 16453 if test "$supported" = "yes" ; then 16454 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16455 found="yes" 16456 fi 16457 fi 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473xorg_testset_save_CFLAGS="$CFLAGS" 16474 16475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16478$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16479if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16480 $as_echo_n "(cached) " >&6 16481else 16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16483/* end confdefs.h. */ 16484int i; 16485_ACEOF 16486if ac_fn_c_try_compile "$LINENO"; then : 16487 xorg_cv_cc_flag_unknown_warning_option=yes 16488else 16489 xorg_cv_cc_flag_unknown_warning_option=no 16490fi 16491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16492fi 16493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16494$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16496 CFLAGS="$xorg_testset_save_CFLAGS" 16497fi 16498 16499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16502 fi 16503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16505$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16506if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16507 $as_echo_n "(cached) " >&6 16508else 16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16510/* end confdefs.h. */ 16511int i; 16512_ACEOF 16513if ac_fn_c_try_compile "$LINENO"; then : 16514 xorg_cv_cc_flag_unused_command_line_argument=yes 16515else 16516 xorg_cv_cc_flag_unused_command_line_argument=no 16517fi 16518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16519fi 16520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16521$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16523 CFLAGS="$xorg_testset_save_CFLAGS" 16524fi 16525 16526found="no" 16527 16528 if test $found = "no" ; then 16529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16531 fi 16532 16533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16535 fi 16536 16537 CFLAGS="$CFLAGS -Wmain" 16538 16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16540$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16541 cacheid=xorg_cv_cc_flag__Wmain 16542 if eval \${$cacheid+:} false; then : 16543 $as_echo_n "(cached) " >&6 16544else 16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16546/* end confdefs.h. */ 16547int i; 16548int 16549main () 16550{ 16551 16552 ; 16553 return 0; 16554} 16555_ACEOF 16556if ac_fn_c_try_link "$LINENO"; then : 16557 eval $cacheid=yes 16558else 16559 eval $cacheid=no 16560fi 16561rm -f core conftest.err conftest.$ac_objext \ 16562 conftest$ac_exeext conftest.$ac_ext 16563fi 16564 16565 16566 CFLAGS="$xorg_testset_save_CFLAGS" 16567 16568 eval supported=\$$cacheid 16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16570$as_echo "$supported" >&6; } 16571 if test "$supported" = "yes" ; then 16572 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16573 found="yes" 16574 fi 16575 fi 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591xorg_testset_save_CFLAGS="$CFLAGS" 16592 16593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16596$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16597if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16598 $as_echo_n "(cached) " >&6 16599else 16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16601/* end confdefs.h. */ 16602int i; 16603_ACEOF 16604if ac_fn_c_try_compile "$LINENO"; then : 16605 xorg_cv_cc_flag_unknown_warning_option=yes 16606else 16607 xorg_cv_cc_flag_unknown_warning_option=no 16608fi 16609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16610fi 16611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16612$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16614 CFLAGS="$xorg_testset_save_CFLAGS" 16615fi 16616 16617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16620 fi 16621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16623$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16624if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16625 $as_echo_n "(cached) " >&6 16626else 16627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16628/* end confdefs.h. */ 16629int i; 16630_ACEOF 16631if ac_fn_c_try_compile "$LINENO"; then : 16632 xorg_cv_cc_flag_unused_command_line_argument=yes 16633else 16634 xorg_cv_cc_flag_unused_command_line_argument=no 16635fi 16636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16637fi 16638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16639$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16641 CFLAGS="$xorg_testset_save_CFLAGS" 16642fi 16643 16644found="no" 16645 16646 if test $found = "no" ; then 16647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16649 fi 16650 16651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16653 fi 16654 16655 CFLAGS="$CFLAGS -Wmissing-braces" 16656 16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16658$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16659 cacheid=xorg_cv_cc_flag__Wmissing_braces 16660 if eval \${$cacheid+:} false; then : 16661 $as_echo_n "(cached) " >&6 16662else 16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16664/* end confdefs.h. */ 16665int i; 16666int 16667main () 16668{ 16669 16670 ; 16671 return 0; 16672} 16673_ACEOF 16674if ac_fn_c_try_link "$LINENO"; then : 16675 eval $cacheid=yes 16676else 16677 eval $cacheid=no 16678fi 16679rm -f core conftest.err conftest.$ac_objext \ 16680 conftest$ac_exeext conftest.$ac_ext 16681fi 16682 16683 16684 CFLAGS="$xorg_testset_save_CFLAGS" 16685 16686 eval supported=\$$cacheid 16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16688$as_echo "$supported" >&6; } 16689 if test "$supported" = "yes" ; then 16690 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16691 found="yes" 16692 fi 16693 fi 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709xorg_testset_save_CFLAGS="$CFLAGS" 16710 16711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16716 $as_echo_n "(cached) " >&6 16717else 16718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16719/* end confdefs.h. */ 16720int i; 16721_ACEOF 16722if ac_fn_c_try_compile "$LINENO"; then : 16723 xorg_cv_cc_flag_unknown_warning_option=yes 16724else 16725 xorg_cv_cc_flag_unknown_warning_option=no 16726fi 16727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16728fi 16729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16732 CFLAGS="$xorg_testset_save_CFLAGS" 16733fi 16734 16735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16738 fi 16739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16743 $as_echo_n "(cached) " >&6 16744else 16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16746/* end confdefs.h. */ 16747int i; 16748_ACEOF 16749if ac_fn_c_try_compile "$LINENO"; then : 16750 xorg_cv_cc_flag_unused_command_line_argument=yes 16751else 16752 xorg_cv_cc_flag_unused_command_line_argument=no 16753fi 16754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16755fi 16756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16759 CFLAGS="$xorg_testset_save_CFLAGS" 16760fi 16761 16762found="no" 16763 16764 if test $found = "no" ; then 16765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16767 fi 16768 16769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16771 fi 16772 16773 CFLAGS="$CFLAGS -Wsequence-point" 16774 16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16776$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16777 cacheid=xorg_cv_cc_flag__Wsequence_point 16778 if eval \${$cacheid+:} false; then : 16779 $as_echo_n "(cached) " >&6 16780else 16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16782/* end confdefs.h. */ 16783int i; 16784int 16785main () 16786{ 16787 16788 ; 16789 return 0; 16790} 16791_ACEOF 16792if ac_fn_c_try_link "$LINENO"; then : 16793 eval $cacheid=yes 16794else 16795 eval $cacheid=no 16796fi 16797rm -f core conftest.err conftest.$ac_objext \ 16798 conftest$ac_exeext conftest.$ac_ext 16799fi 16800 16801 16802 CFLAGS="$xorg_testset_save_CFLAGS" 16803 16804 eval supported=\$$cacheid 16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16806$as_echo "$supported" >&6; } 16807 if test "$supported" = "yes" ; then 16808 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16809 found="yes" 16810 fi 16811 fi 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827xorg_testset_save_CFLAGS="$CFLAGS" 16828 16829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16834 $as_echo_n "(cached) " >&6 16835else 16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16837/* end confdefs.h. */ 16838int i; 16839_ACEOF 16840if ac_fn_c_try_compile "$LINENO"; then : 16841 xorg_cv_cc_flag_unknown_warning_option=yes 16842else 16843 xorg_cv_cc_flag_unknown_warning_option=no 16844fi 16845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16846fi 16847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16850 CFLAGS="$xorg_testset_save_CFLAGS" 16851fi 16852 16853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16856 fi 16857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16861 $as_echo_n "(cached) " >&6 16862else 16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16864/* end confdefs.h. */ 16865int i; 16866_ACEOF 16867if ac_fn_c_try_compile "$LINENO"; then : 16868 xorg_cv_cc_flag_unused_command_line_argument=yes 16869else 16870 xorg_cv_cc_flag_unused_command_line_argument=no 16871fi 16872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16873fi 16874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16877 CFLAGS="$xorg_testset_save_CFLAGS" 16878fi 16879 16880found="no" 16881 16882 if test $found = "no" ; then 16883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16885 fi 16886 16887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16889 fi 16890 16891 CFLAGS="$CFLAGS -Wreturn-type" 16892 16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16894$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16895 cacheid=xorg_cv_cc_flag__Wreturn_type 16896 if eval \${$cacheid+:} false; then : 16897 $as_echo_n "(cached) " >&6 16898else 16899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16900/* end confdefs.h. */ 16901int i; 16902int 16903main () 16904{ 16905 16906 ; 16907 return 0; 16908} 16909_ACEOF 16910if ac_fn_c_try_link "$LINENO"; then : 16911 eval $cacheid=yes 16912else 16913 eval $cacheid=no 16914fi 16915rm -f core conftest.err conftest.$ac_objext \ 16916 conftest$ac_exeext conftest.$ac_ext 16917fi 16918 16919 16920 CFLAGS="$xorg_testset_save_CFLAGS" 16921 16922 eval supported=\$$cacheid 16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16924$as_echo "$supported" >&6; } 16925 if test "$supported" = "yes" ; then 16926 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16927 found="yes" 16928 fi 16929 fi 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945xorg_testset_save_CFLAGS="$CFLAGS" 16946 16947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16952 $as_echo_n "(cached) " >&6 16953else 16954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16955/* end confdefs.h. */ 16956int i; 16957_ACEOF 16958if ac_fn_c_try_compile "$LINENO"; then : 16959 xorg_cv_cc_flag_unknown_warning_option=yes 16960else 16961 xorg_cv_cc_flag_unknown_warning_option=no 16962fi 16963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16964fi 16965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16968 CFLAGS="$xorg_testset_save_CFLAGS" 16969fi 16970 16971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16974 fi 16975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16979 $as_echo_n "(cached) " >&6 16980else 16981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16982/* end confdefs.h. */ 16983int i; 16984_ACEOF 16985if ac_fn_c_try_compile "$LINENO"; then : 16986 xorg_cv_cc_flag_unused_command_line_argument=yes 16987else 16988 xorg_cv_cc_flag_unused_command_line_argument=no 16989fi 16990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16991fi 16992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16995 CFLAGS="$xorg_testset_save_CFLAGS" 16996fi 16997 16998found="no" 16999 17000 if test $found = "no" ; then 17001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17003 fi 17004 17005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17007 fi 17008 17009 CFLAGS="$CFLAGS -Wtrigraphs" 17010 17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17012$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17013 cacheid=xorg_cv_cc_flag__Wtrigraphs 17014 if eval \${$cacheid+:} false; then : 17015 $as_echo_n "(cached) " >&6 17016else 17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17018/* end confdefs.h. */ 17019int i; 17020int 17021main () 17022{ 17023 17024 ; 17025 return 0; 17026} 17027_ACEOF 17028if ac_fn_c_try_link "$LINENO"; then : 17029 eval $cacheid=yes 17030else 17031 eval $cacheid=no 17032fi 17033rm -f core conftest.err conftest.$ac_objext \ 17034 conftest$ac_exeext conftest.$ac_ext 17035fi 17036 17037 17038 CFLAGS="$xorg_testset_save_CFLAGS" 17039 17040 eval supported=\$$cacheid 17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17042$as_echo "$supported" >&6; } 17043 if test "$supported" = "yes" ; then 17044 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17045 found="yes" 17046 fi 17047 fi 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063xorg_testset_save_CFLAGS="$CFLAGS" 17064 17065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17070 $as_echo_n "(cached) " >&6 17071else 17072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17073/* end confdefs.h. */ 17074int i; 17075_ACEOF 17076if ac_fn_c_try_compile "$LINENO"; then : 17077 xorg_cv_cc_flag_unknown_warning_option=yes 17078else 17079 xorg_cv_cc_flag_unknown_warning_option=no 17080fi 17081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17082fi 17083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17086 CFLAGS="$xorg_testset_save_CFLAGS" 17087fi 17088 17089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17092 fi 17093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17097 $as_echo_n "(cached) " >&6 17098else 17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17100/* end confdefs.h. */ 17101int i; 17102_ACEOF 17103if ac_fn_c_try_compile "$LINENO"; then : 17104 xorg_cv_cc_flag_unused_command_line_argument=yes 17105else 17106 xorg_cv_cc_flag_unused_command_line_argument=no 17107fi 17108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17109fi 17110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17113 CFLAGS="$xorg_testset_save_CFLAGS" 17114fi 17115 17116found="no" 17117 17118 if test $found = "no" ; then 17119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17121 fi 17122 17123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17125 fi 17126 17127 CFLAGS="$CFLAGS -Warray-bounds" 17128 17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17130$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17131 cacheid=xorg_cv_cc_flag__Warray_bounds 17132 if eval \${$cacheid+:} false; then : 17133 $as_echo_n "(cached) " >&6 17134else 17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17136/* end confdefs.h. */ 17137int i; 17138int 17139main () 17140{ 17141 17142 ; 17143 return 0; 17144} 17145_ACEOF 17146if ac_fn_c_try_link "$LINENO"; then : 17147 eval $cacheid=yes 17148else 17149 eval $cacheid=no 17150fi 17151rm -f core conftest.err conftest.$ac_objext \ 17152 conftest$ac_exeext conftest.$ac_ext 17153fi 17154 17155 17156 CFLAGS="$xorg_testset_save_CFLAGS" 17157 17158 eval supported=\$$cacheid 17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17160$as_echo "$supported" >&6; } 17161 if test "$supported" = "yes" ; then 17162 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17163 found="yes" 17164 fi 17165 fi 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181xorg_testset_save_CFLAGS="$CFLAGS" 17182 17183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17188 $as_echo_n "(cached) " >&6 17189else 17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17191/* end confdefs.h. */ 17192int i; 17193_ACEOF 17194if ac_fn_c_try_compile "$LINENO"; then : 17195 xorg_cv_cc_flag_unknown_warning_option=yes 17196else 17197 xorg_cv_cc_flag_unknown_warning_option=no 17198fi 17199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17200fi 17201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17204 CFLAGS="$xorg_testset_save_CFLAGS" 17205fi 17206 17207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17210 fi 17211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17215 $as_echo_n "(cached) " >&6 17216else 17217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17218/* end confdefs.h. */ 17219int i; 17220_ACEOF 17221if ac_fn_c_try_compile "$LINENO"; then : 17222 xorg_cv_cc_flag_unused_command_line_argument=yes 17223else 17224 xorg_cv_cc_flag_unused_command_line_argument=no 17225fi 17226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17227fi 17228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17231 CFLAGS="$xorg_testset_save_CFLAGS" 17232fi 17233 17234found="no" 17235 17236 if test $found = "no" ; then 17237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17239 fi 17240 17241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17243 fi 17244 17245 CFLAGS="$CFLAGS -Wwrite-strings" 17246 17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17248$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17249 cacheid=xorg_cv_cc_flag__Wwrite_strings 17250 if eval \${$cacheid+:} false; then : 17251 $as_echo_n "(cached) " >&6 17252else 17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17254/* end confdefs.h. */ 17255int i; 17256int 17257main () 17258{ 17259 17260 ; 17261 return 0; 17262} 17263_ACEOF 17264if ac_fn_c_try_link "$LINENO"; then : 17265 eval $cacheid=yes 17266else 17267 eval $cacheid=no 17268fi 17269rm -f core conftest.err conftest.$ac_objext \ 17270 conftest$ac_exeext conftest.$ac_ext 17271fi 17272 17273 17274 CFLAGS="$xorg_testset_save_CFLAGS" 17275 17276 eval supported=\$$cacheid 17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17278$as_echo "$supported" >&6; } 17279 if test "$supported" = "yes" ; then 17280 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17281 found="yes" 17282 fi 17283 fi 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299xorg_testset_save_CFLAGS="$CFLAGS" 17300 17301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17306 $as_echo_n "(cached) " >&6 17307else 17308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17309/* end confdefs.h. */ 17310int i; 17311_ACEOF 17312if ac_fn_c_try_compile "$LINENO"; then : 17313 xorg_cv_cc_flag_unknown_warning_option=yes 17314else 17315 xorg_cv_cc_flag_unknown_warning_option=no 17316fi 17317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17318fi 17319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17322 CFLAGS="$xorg_testset_save_CFLAGS" 17323fi 17324 17325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17328 fi 17329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17333 $as_echo_n "(cached) " >&6 17334else 17335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17336/* end confdefs.h. */ 17337int i; 17338_ACEOF 17339if ac_fn_c_try_compile "$LINENO"; then : 17340 xorg_cv_cc_flag_unused_command_line_argument=yes 17341else 17342 xorg_cv_cc_flag_unused_command_line_argument=no 17343fi 17344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17345fi 17346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17349 CFLAGS="$xorg_testset_save_CFLAGS" 17350fi 17351 17352found="no" 17353 17354 if test $found = "no" ; then 17355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17357 fi 17358 17359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17361 fi 17362 17363 CFLAGS="$CFLAGS -Waddress" 17364 17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17366$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17367 cacheid=xorg_cv_cc_flag__Waddress 17368 if eval \${$cacheid+:} false; then : 17369 $as_echo_n "(cached) " >&6 17370else 17371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17372/* end confdefs.h. */ 17373int i; 17374int 17375main () 17376{ 17377 17378 ; 17379 return 0; 17380} 17381_ACEOF 17382if ac_fn_c_try_link "$LINENO"; then : 17383 eval $cacheid=yes 17384else 17385 eval $cacheid=no 17386fi 17387rm -f core conftest.err conftest.$ac_objext \ 17388 conftest$ac_exeext conftest.$ac_ext 17389fi 17390 17391 17392 CFLAGS="$xorg_testset_save_CFLAGS" 17393 17394 eval supported=\$$cacheid 17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17396$as_echo "$supported" >&6; } 17397 if test "$supported" = "yes" ; then 17398 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17399 found="yes" 17400 fi 17401 fi 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417xorg_testset_save_CFLAGS="$CFLAGS" 17418 17419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17424 $as_echo_n "(cached) " >&6 17425else 17426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17427/* end confdefs.h. */ 17428int i; 17429_ACEOF 17430if ac_fn_c_try_compile "$LINENO"; then : 17431 xorg_cv_cc_flag_unknown_warning_option=yes 17432else 17433 xorg_cv_cc_flag_unknown_warning_option=no 17434fi 17435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17436fi 17437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17440 CFLAGS="$xorg_testset_save_CFLAGS" 17441fi 17442 17443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17446 fi 17447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17451 $as_echo_n "(cached) " >&6 17452else 17453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17454/* end confdefs.h. */ 17455int i; 17456_ACEOF 17457if ac_fn_c_try_compile "$LINENO"; then : 17458 xorg_cv_cc_flag_unused_command_line_argument=yes 17459else 17460 xorg_cv_cc_flag_unused_command_line_argument=no 17461fi 17462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17463fi 17464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17467 CFLAGS="$xorg_testset_save_CFLAGS" 17468fi 17469 17470found="no" 17471 17472 if test $found = "no" ; then 17473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17475 fi 17476 17477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17479 fi 17480 17481 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17482 17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17484$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17485 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17486 if eval \${$cacheid+:} false; then : 17487 $as_echo_n "(cached) " >&6 17488else 17489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17490/* end confdefs.h. */ 17491int i; 17492int 17493main () 17494{ 17495 17496 ; 17497 return 0; 17498} 17499_ACEOF 17500if ac_fn_c_try_link "$LINENO"; then : 17501 eval $cacheid=yes 17502else 17503 eval $cacheid=no 17504fi 17505rm -f core conftest.err conftest.$ac_objext \ 17506 conftest$ac_exeext conftest.$ac_ext 17507fi 17508 17509 17510 CFLAGS="$xorg_testset_save_CFLAGS" 17511 17512 eval supported=\$$cacheid 17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17514$as_echo "$supported" >&6; } 17515 if test "$supported" = "yes" ; then 17516 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17517 found="yes" 17518 fi 17519 fi 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535xorg_testset_save_CFLAGS="$CFLAGS" 17536 17537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17542 $as_echo_n "(cached) " >&6 17543else 17544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17545/* end confdefs.h. */ 17546int i; 17547_ACEOF 17548if ac_fn_c_try_compile "$LINENO"; then : 17549 xorg_cv_cc_flag_unknown_warning_option=yes 17550else 17551 xorg_cv_cc_flag_unknown_warning_option=no 17552fi 17553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17554fi 17555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17558 CFLAGS="$xorg_testset_save_CFLAGS" 17559fi 17560 17561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17564 fi 17565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17569 $as_echo_n "(cached) " >&6 17570else 17571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17572/* end confdefs.h. */ 17573int i; 17574_ACEOF 17575if ac_fn_c_try_compile "$LINENO"; then : 17576 xorg_cv_cc_flag_unused_command_line_argument=yes 17577else 17578 xorg_cv_cc_flag_unused_command_line_argument=no 17579fi 17580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17581fi 17582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17585 CFLAGS="$xorg_testset_save_CFLAGS" 17586fi 17587 17588found="no" 17589 17590 if test $found = "no" ; then 17591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17593 fi 17594 17595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17597 fi 17598 17599 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17600 17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17602$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17603 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17604 if eval \${$cacheid+:} false; then : 17605 $as_echo_n "(cached) " >&6 17606else 17607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17608/* end confdefs.h. */ 17609int i; 17610int 17611main () 17612{ 17613 17614 ; 17615 return 0; 17616} 17617_ACEOF 17618if ac_fn_c_try_link "$LINENO"; then : 17619 eval $cacheid=yes 17620else 17621 eval $cacheid=no 17622fi 17623rm -f core conftest.err conftest.$ac_objext \ 17624 conftest$ac_exeext conftest.$ac_ext 17625fi 17626 17627 17628 CFLAGS="$xorg_testset_save_CFLAGS" 17629 17630 eval supported=\$$cacheid 17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17632$as_echo "$supported" >&6; } 17633 if test "$supported" = "yes" ; then 17634 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17635 found="yes" 17636 fi 17637 fi 17638 17639 17640fi 17641 17642 17643 17644 17645 17646 17647 17648 CWARNFLAGS="$BASE_CFLAGS" 17649 if test "x$GCC" = xyes ; then 17650 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17651 fi 17652 17653 17654 17655 17656 17657 17658 17659 17660# Check whether --enable-strict-compilation was given. 17661if test "${enable_strict_compilation+set}" = set; then : 17662 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17663else 17664 STRICT_COMPILE=no 17665fi 17666 17667 17668 17669 17670 17671 17672STRICT_CFLAGS="" 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686xorg_testset_save_CFLAGS="$CFLAGS" 17687 17688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17693 $as_echo_n "(cached) " >&6 17694else 17695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17696/* end confdefs.h. */ 17697int i; 17698_ACEOF 17699if ac_fn_c_try_compile "$LINENO"; then : 17700 xorg_cv_cc_flag_unknown_warning_option=yes 17701else 17702 xorg_cv_cc_flag_unknown_warning_option=no 17703fi 17704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17705fi 17706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17709 CFLAGS="$xorg_testset_save_CFLAGS" 17710fi 17711 17712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17715 fi 17716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17720 $as_echo_n "(cached) " >&6 17721else 17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17723/* end confdefs.h. */ 17724int i; 17725_ACEOF 17726if ac_fn_c_try_compile "$LINENO"; then : 17727 xorg_cv_cc_flag_unused_command_line_argument=yes 17728else 17729 xorg_cv_cc_flag_unused_command_line_argument=no 17730fi 17731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17732fi 17733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17736 CFLAGS="$xorg_testset_save_CFLAGS" 17737fi 17738 17739found="no" 17740 17741 if test $found = "no" ; then 17742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17744 fi 17745 17746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17748 fi 17749 17750 CFLAGS="$CFLAGS -pedantic" 17751 17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17753$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17754 cacheid=xorg_cv_cc_flag__pedantic 17755 if eval \${$cacheid+:} false; then : 17756 $as_echo_n "(cached) " >&6 17757else 17758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17759/* end confdefs.h. */ 17760int i; 17761int 17762main () 17763{ 17764 17765 ; 17766 return 0; 17767} 17768_ACEOF 17769if ac_fn_c_try_link "$LINENO"; then : 17770 eval $cacheid=yes 17771else 17772 eval $cacheid=no 17773fi 17774rm -f core conftest.err conftest.$ac_objext \ 17775 conftest$ac_exeext conftest.$ac_ext 17776fi 17777 17778 17779 CFLAGS="$xorg_testset_save_CFLAGS" 17780 17781 eval supported=\$$cacheid 17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17783$as_echo "$supported" >&6; } 17784 if test "$supported" = "yes" ; then 17785 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17786 found="yes" 17787 fi 17788 fi 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804xorg_testset_save_CFLAGS="$CFLAGS" 17805 17806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17811 $as_echo_n "(cached) " >&6 17812else 17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17814/* end confdefs.h. */ 17815int i; 17816_ACEOF 17817if ac_fn_c_try_compile "$LINENO"; then : 17818 xorg_cv_cc_flag_unknown_warning_option=yes 17819else 17820 xorg_cv_cc_flag_unknown_warning_option=no 17821fi 17822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17823fi 17824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17827 CFLAGS="$xorg_testset_save_CFLAGS" 17828fi 17829 17830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17833 fi 17834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17838 $as_echo_n "(cached) " >&6 17839else 17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17841/* end confdefs.h. */ 17842int i; 17843_ACEOF 17844if ac_fn_c_try_compile "$LINENO"; then : 17845 xorg_cv_cc_flag_unused_command_line_argument=yes 17846else 17847 xorg_cv_cc_flag_unused_command_line_argument=no 17848fi 17849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17850fi 17851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17854 CFLAGS="$xorg_testset_save_CFLAGS" 17855fi 17856 17857found="no" 17858 17859 if test $found = "no" ; then 17860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17862 fi 17863 17864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17866 fi 17867 17868 CFLAGS="$CFLAGS -Werror" 17869 17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17871$as_echo_n "checking if $CC supports -Werror... " >&6; } 17872 cacheid=xorg_cv_cc_flag__Werror 17873 if eval \${$cacheid+:} false; then : 17874 $as_echo_n "(cached) " >&6 17875else 17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17877/* end confdefs.h. */ 17878int i; 17879int 17880main () 17881{ 17882 17883 ; 17884 return 0; 17885} 17886_ACEOF 17887if ac_fn_c_try_link "$LINENO"; then : 17888 eval $cacheid=yes 17889else 17890 eval $cacheid=no 17891fi 17892rm -f core conftest.err conftest.$ac_objext \ 17893 conftest$ac_exeext conftest.$ac_ext 17894fi 17895 17896 17897 CFLAGS="$xorg_testset_save_CFLAGS" 17898 17899 eval supported=\$$cacheid 17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17901$as_echo "$supported" >&6; } 17902 if test "$supported" = "yes" ; then 17903 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17904 found="yes" 17905 fi 17906 fi 17907 17908 if test $found = "no" ; then 17909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17911 fi 17912 17913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17915 fi 17916 17917 CFLAGS="$CFLAGS -errwarn" 17918 17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17920$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17921 cacheid=xorg_cv_cc_flag__errwarn 17922 if eval \${$cacheid+:} false; then : 17923 $as_echo_n "(cached) " >&6 17924else 17925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17926/* end confdefs.h. */ 17927int i; 17928int 17929main () 17930{ 17931 17932 ; 17933 return 0; 17934} 17935_ACEOF 17936if ac_fn_c_try_link "$LINENO"; then : 17937 eval $cacheid=yes 17938else 17939 eval $cacheid=no 17940fi 17941rm -f core conftest.err conftest.$ac_objext \ 17942 conftest$ac_exeext conftest.$ac_ext 17943fi 17944 17945 17946 CFLAGS="$xorg_testset_save_CFLAGS" 17947 17948 eval supported=\$$cacheid 17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17950$as_echo "$supported" >&6; } 17951 if test "$supported" = "yes" ; then 17952 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17953 found="yes" 17954 fi 17955 fi 17956 17957 17958 17959# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17960# activate it with -Werror, so we add it here explicitly. 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974xorg_testset_save_CFLAGS="$CFLAGS" 17975 17976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17979$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17980if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17981 $as_echo_n "(cached) " >&6 17982else 17983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17984/* end confdefs.h. */ 17985int i; 17986_ACEOF 17987if ac_fn_c_try_compile "$LINENO"; then : 17988 xorg_cv_cc_flag_unknown_warning_option=yes 17989else 17990 xorg_cv_cc_flag_unknown_warning_option=no 17991fi 17992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17993fi 17994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17995$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17997 CFLAGS="$xorg_testset_save_CFLAGS" 17998fi 17999 18000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18003 fi 18004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18006$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18007if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18008 $as_echo_n "(cached) " >&6 18009else 18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18011/* end confdefs.h. */ 18012int i; 18013_ACEOF 18014if ac_fn_c_try_compile "$LINENO"; then : 18015 xorg_cv_cc_flag_unused_command_line_argument=yes 18016else 18017 xorg_cv_cc_flag_unused_command_line_argument=no 18018fi 18019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18020fi 18021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18022$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18024 CFLAGS="$xorg_testset_save_CFLAGS" 18025fi 18026 18027found="no" 18028 18029 if test $found = "no" ; then 18030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18032 fi 18033 18034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18036 fi 18037 18038 CFLAGS="$CFLAGS -Werror=attributes" 18039 18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18041$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18042 cacheid=xorg_cv_cc_flag__Werror_attributes 18043 if eval \${$cacheid+:} false; then : 18044 $as_echo_n "(cached) " >&6 18045else 18046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18047/* end confdefs.h. */ 18048int i; 18049int 18050main () 18051{ 18052 18053 ; 18054 return 0; 18055} 18056_ACEOF 18057if ac_fn_c_try_link "$LINENO"; then : 18058 eval $cacheid=yes 18059else 18060 eval $cacheid=no 18061fi 18062rm -f core conftest.err conftest.$ac_objext \ 18063 conftest$ac_exeext conftest.$ac_ext 18064fi 18065 18066 18067 CFLAGS="$xorg_testset_save_CFLAGS" 18068 18069 eval supported=\$$cacheid 18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18071$as_echo "$supported" >&6; } 18072 if test "$supported" = "yes" ; then 18073 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18074 found="yes" 18075 fi 18076 fi 18077 18078 18079 18080if test "x$STRICT_COMPILE" = "xyes"; then 18081 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18082 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18083fi 18084 18085 18086 18087 18088 18089 18090cat >>confdefs.h <<_ACEOF 18091#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18092_ACEOF 18093 18094 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18095 if test "x$PVM" = "x"; then 18096 PVM="0" 18097 fi 18098 18099cat >>confdefs.h <<_ACEOF 18100#define PACKAGE_VERSION_MINOR $PVM 18101_ACEOF 18102 18103 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18104 if test "x$PVP" = "x"; then 18105 PVP="0" 18106 fi 18107 18108cat >>confdefs.h <<_ACEOF 18109#define PACKAGE_VERSION_PATCHLEVEL $PVP 18110_ACEOF 18111 18112 18113 18114CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18115mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18116|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18117echo 'git directory not found: installing possibly empty changelog.' >&2)" 18118 18119 18120 18121 18122macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18123INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18124mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18125|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18126echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18127 18128 18129 18130 18131 18132 18133if test x$APP_MAN_SUFFIX = x ; then 18134 APP_MAN_SUFFIX=1 18135fi 18136if test x$APP_MAN_DIR = x ; then 18137 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18138fi 18139 18140if test x$LIB_MAN_SUFFIX = x ; then 18141 LIB_MAN_SUFFIX=3 18142fi 18143if test x$LIB_MAN_DIR = x ; then 18144 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18145fi 18146 18147if test x$FILE_MAN_SUFFIX = x ; then 18148 case $host_os in 18149 # Solaris 2.0 - 11 use SysV man page sections 18150 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 18151 *) FILE_MAN_SUFFIX=5 ;; 18152 esac 18153fi 18154if test x$FILE_MAN_DIR = x ; then 18155 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18156fi 18157 18158if test x$MISC_MAN_SUFFIX = x ; then 18159 case $host_os in 18160 # Solaris 2.0 - 11 use SysV man page sections 18161 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 18162 *) MISC_MAN_SUFFIX=7 ;; 18163 esac 18164fi 18165if test x$MISC_MAN_DIR = x ; then 18166 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18167fi 18168 18169if test x$DRIVER_MAN_SUFFIX = x ; then 18170 case $host_os in 18171 # Solaris 2.0 - 11 use SysV man page sections 18172 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 18173 *) DRIVER_MAN_SUFFIX=4 ;; 18174 esac 18175fi 18176if test x$DRIVER_MAN_DIR = x ; then 18177 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18178fi 18179 18180if test x$ADMIN_MAN_SUFFIX = x ; then 18181 case $host_os in 18182 # Solaris 2.0 - 11 use SysV man page sections 18183 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 18184 *) ADMIN_MAN_SUFFIX=8 ;; 18185 esac 18186fi 18187if test x$ADMIN_MAN_DIR = x ; then 18188 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18189fi 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205XORG_MAN_PAGE="X Version 11" 18206 18207MAN_SUBSTS="\ 18208 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18209 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18210 -e 's|__xservername__|Xorg|g' \ 18211 -e 's|__xconfigfile__|xorg.conf|g' \ 18212 -e 's|__projectroot__|\$(prefix)|g' \ 18213 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18214 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18215 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18216 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18217 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18218 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18219 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18220 18221 18222 18223# Check whether --enable-silent-rules was given. 18224if test "${enable_silent_rules+set}" = set; then : 18225 enableval=$enable_silent_rules; 18226fi 18227 18228case $enable_silent_rules in # ((( 18229 yes) AM_DEFAULT_VERBOSITY=0;; 18230 no) AM_DEFAULT_VERBOSITY=1;; 18231 *) AM_DEFAULT_VERBOSITY=0;; 18232esac 18233am_make=${MAKE-make} 18234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18235$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18236if ${am_cv_make_support_nested_variables+:} false; then : 18237 $as_echo_n "(cached) " >&6 18238else 18239 if $as_echo 'TRUE=$(BAR$(V)) 18240BAR0=false 18241BAR1=true 18242V=1 18243am__doit: 18244 @$(TRUE) 18245.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18246 am_cv_make_support_nested_variables=yes 18247else 18248 am_cv_make_support_nested_variables=no 18249fi 18250fi 18251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18252$as_echo "$am_cv_make_support_nested_variables" >&6; } 18253if test $am_cv_make_support_nested_variables = yes; then 18254 AM_V='$(V)' 18255 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18256else 18257 AM_V=$AM_DEFAULT_VERBOSITY 18258 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18259fi 18260AM_BACKSLASH='\' 18261 18262 18263 18264# Check whether --enable-malloc0returnsnull was given. 18265if test "${enable_malloc0returnsnull+set}" = set; then : 18266 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 18267else 18268 MALLOC_ZERO_RETURNS_NULL=auto 18269fi 18270 18271 18272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 18273$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 18274if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 18275if ${xorg_cv_malloc0_returns_null+:} false; then : 18276 $as_echo_n "(cached) " >&6 18277else 18278 if test "$cross_compiling" = yes; then : 18279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18281as_fn_error $? "cannot run test program while cross compiling 18282See \`config.log' for more details" "$LINENO" 5; } 18283else 18284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18285/* end confdefs.h. */ 18286 18287#include <stdlib.h> 18288 18289int 18290main () 18291{ 18292 18293 char *m0, *r0, *c0, *p; 18294 m0 = malloc(0); 18295 p = malloc(10); 18296 r0 = realloc(p,0); 18297 c0 = calloc(0,10); 18298 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 18299 18300 ; 18301 return 0; 18302} 18303_ACEOF 18304if ac_fn_c_try_run "$LINENO"; then : 18305 xorg_cv_malloc0_returns_null=yes 18306else 18307 xorg_cv_malloc0_returns_null=no 18308fi 18309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18310 conftest.$ac_objext conftest.beam conftest.$ac_ext 18311fi 18312 18313fi 18314 18315MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 18316fi 18317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 18318$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 18319 18320if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 18321 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 18322 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 18323 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 18324else 18325 MALLOC_ZERO_CFLAGS="" 18326 XMALLOC_ZERO_CFLAGS="" 18327 XTMALLOC_ZERO_CFLAGS="" 18328fi 18329 18330 18331 18332 18333 18334 18335# Check randr configuration, strip extra digits from package version to 18336# find the required protocol version 18337RANDR_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` 18338 18339 18340# Obtain compiler/linker options for depedencies 18341 18342pkg_failed=no 18343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RANDR" >&5 18344$as_echo_n "checking for RANDR... " >&6; } 18345 18346if test -n "$RANDR_CFLAGS"; then 18347 pkg_cv_RANDR_CFLAGS="$RANDR_CFLAGS" 18348 elif test -n "$PKG_CONFIG"; then 18349 if test -n "$PKG_CONFIG" && \ 18350 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\""; } >&5 18351 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5 18352 ac_status=$? 18353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18354 test $ac_status = 0; }; then 18355 pkg_cv_RANDR_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null` 18356 test "x$?" != "x0" && pkg_failed=yes 18357else 18358 pkg_failed=yes 18359fi 18360 else 18361 pkg_failed=untried 18362fi 18363if test -n "$RANDR_LIBS"; then 18364 pkg_cv_RANDR_LIBS="$RANDR_LIBS" 18365 elif test -n "$PKG_CONFIG"; then 18366 if test -n "$PKG_CONFIG" && \ 18367 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\""; } >&5 18368 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5 18369 ac_status=$? 18370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18371 test $ac_status = 0; }; then 18372 pkg_cv_RANDR_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null` 18373 test "x$?" != "x0" && pkg_failed=yes 18374else 18375 pkg_failed=yes 18376fi 18377 else 18378 pkg_failed=untried 18379fi 18380 18381 18382 18383if test $pkg_failed = yes; then 18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18385$as_echo "no" >&6; } 18386 18387if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18388 _pkg_short_errors_supported=yes 18389else 18390 _pkg_short_errors_supported=no 18391fi 18392 if test $_pkg_short_errors_supported = yes; then 18393 RANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>&1` 18394 else 18395 RANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>&1` 18396 fi 18397 # Put the nasty error message in config.log where it belongs 18398 echo "$RANDR_PKG_ERRORS" >&5 18399 18400 as_fn_error $? "Package requirements (x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto) were not met: 18401 18402$RANDR_PKG_ERRORS 18403 18404Consider adjusting the PKG_CONFIG_PATH environment variable if you 18405installed software in a non-standard prefix. 18406 18407Alternatively, you may set the environment variables RANDR_CFLAGS 18408and RANDR_LIBS to avoid the need to call pkg-config. 18409See the pkg-config man page for more details." "$LINENO" 5 18410elif test $pkg_failed = untried; then 18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18412$as_echo "no" >&6; } 18413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18415as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18416is in your PATH or set the PKG_CONFIG environment variable to the full 18417path to pkg-config. 18418 18419Alternatively, you may set the environment variables RANDR_CFLAGS 18420and RANDR_LIBS to avoid the need to call pkg-config. 18421See the pkg-config man page for more details. 18422 18423To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18424See \`config.log' for more details" "$LINENO" 5; } 18425else 18426 RANDR_CFLAGS=$pkg_cv_RANDR_CFLAGS 18427 RANDR_LIBS=$pkg_cv_RANDR_LIBS 18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18429$as_echo "yes" >&6; } 18430 18431fi 18432 18433ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xrandr.pc" 18434 18435cat >confcache <<\_ACEOF 18436# This file is a shell script that caches the results of configure 18437# tests run on this system so they can be shared between configure 18438# scripts and configure runs, see configure's option --config-cache. 18439# It is not useful on other systems. If it contains results you don't 18440# want to keep, you may remove or edit it. 18441# 18442# config.status only pays attention to the cache file if you give it 18443# the --recheck option to rerun configure. 18444# 18445# `ac_cv_env_foo' variables (set or unset) will be overridden when 18446# loading this file, other *unset* `ac_cv_foo' will be assigned the 18447# following values. 18448 18449_ACEOF 18450 18451# The following way of writing the cache mishandles newlines in values, 18452# but we know of no workaround that is simple, portable, and efficient. 18453# So, we kill variables containing newlines. 18454# Ultrix sh set writes to stderr and can't be redirected directly, 18455# and sets the high bit in the cache file unless we assign to the vars. 18456( 18457 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18458 eval ac_val=\$$ac_var 18459 case $ac_val in #( 18460 *${as_nl}*) 18461 case $ac_var in #( 18462 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18463$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18464 esac 18465 case $ac_var in #( 18466 _ | IFS | as_nl) ;; #( 18467 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18468 *) { eval $ac_var=; unset $ac_var;} ;; 18469 esac ;; 18470 esac 18471 done 18472 18473 (set) 2>&1 | 18474 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18475 *${as_nl}ac_space=\ *) 18476 # `set' does not quote correctly, so add quotes: double-quote 18477 # substitution turns \\\\ into \\, and sed turns \\ into \. 18478 sed -n \ 18479 "s/'/'\\\\''/g; 18480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18481 ;; #( 18482 *) 18483 # `set' quotes correctly as required by POSIX, so do not add quotes. 18484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18485 ;; 18486 esac | 18487 sort 18488) | 18489 sed ' 18490 /^ac_cv_env_/b end 18491 t clear 18492 :clear 18493 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18494 t end 18495 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18496 :end' >>confcache 18497if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18498 if test -w "$cache_file"; then 18499 if test "x$cache_file" != "x/dev/null"; then 18500 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18501$as_echo "$as_me: updating cache $cache_file" >&6;} 18502 if test ! -f "$cache_file" || test -h "$cache_file"; then 18503 cat confcache >"$cache_file" 18504 else 18505 case $cache_file in #( 18506 */* | ?:*) 18507 mv -f confcache "$cache_file"$$ && 18508 mv -f "$cache_file"$$ "$cache_file" ;; #( 18509 *) 18510 mv -f confcache "$cache_file" ;; 18511 esac 18512 fi 18513 fi 18514 else 18515 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18516$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18517 fi 18518fi 18519rm -f confcache 18520 18521test "x$prefix" = xNONE && prefix=$ac_default_prefix 18522# Let make expand exec_prefix. 18523test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18524 18525DEFS=-DHAVE_CONFIG_H 18526 18527ac_libobjs= 18528ac_ltlibobjs= 18529U= 18530for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18531 # 1. Remove the extension, and $U if already installed. 18532 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18533 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18534 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18535 # will be set to the directory where LIBOBJS objects are built. 18536 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18537 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18538done 18539LIBOBJS=$ac_libobjs 18540 18541LTLIBOBJS=$ac_ltlibobjs 18542 18543 18544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18545$as_echo_n "checking that generated files are newer than configure... " >&6; } 18546 if test -n "$am_sleep_pid"; then 18547 # Hide warnings about reused PIDs. 18548 wait $am_sleep_pid 2>/dev/null 18549 fi 18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18551$as_echo "done" >&6; } 18552 if test -n "$EXEEXT"; then 18553 am__EXEEXT_TRUE= 18554 am__EXEEXT_FALSE='#' 18555else 18556 am__EXEEXT_TRUE='#' 18557 am__EXEEXT_FALSE= 18558fi 18559 18560if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18561 as_fn_error $? "conditional \"AMDEP\" was never defined. 18562Usually this means the macro was only invoked conditionally." "$LINENO" 5 18563fi 18564if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18565 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18566Usually this means the macro was only invoked conditionally." "$LINENO" 5 18567fi 18568 18569: "${CONFIG_STATUS=./config.status}" 18570ac_write_fail=0 18571ac_clean_files_save=$ac_clean_files 18572ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18573{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18574$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18575as_write_fail=0 18576cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18577#! $SHELL 18578# Generated by $as_me. 18579# Run this file to recreate the current configuration. 18580# Compiler output produced by configure, useful for debugging 18581# configure, is in config.log if it exists. 18582 18583debug=false 18584ac_cs_recheck=false 18585ac_cs_silent=false 18586 18587SHELL=\${CONFIG_SHELL-$SHELL} 18588export SHELL 18589_ASEOF 18590cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18591## -------------------- ## 18592## M4sh Initialization. ## 18593## -------------------- ## 18594 18595# Be more Bourne compatible 18596DUALCASE=1; export DUALCASE # for MKS sh 18597if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18598 emulate sh 18599 NULLCMD=: 18600 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18601 # is contrary to our usage. Disable this feature. 18602 alias -g '${1+"$@"}'='"$@"' 18603 setopt NO_GLOB_SUBST 18604else 18605 case `(set -o) 2>/dev/null` in #( 18606 *posix*) : 18607 set -o posix ;; #( 18608 *) : 18609 ;; 18610esac 18611fi 18612 18613 18614as_nl=' 18615' 18616export as_nl 18617# Printing a long string crashes Solaris 7 /usr/bin/printf. 18618as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18619as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18620as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18621# Prefer a ksh shell builtin over an external printf program on Solaris, 18622# but without wasting forks for bash or zsh. 18623if test -z "$BASH_VERSION$ZSH_VERSION" \ 18624 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18625 as_echo='print -r --' 18626 as_echo_n='print -rn --' 18627elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18628 as_echo='printf %s\n' 18629 as_echo_n='printf %s' 18630else 18631 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18632 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18633 as_echo_n='/usr/ucb/echo -n' 18634 else 18635 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18636 as_echo_n_body='eval 18637 arg=$1; 18638 case $arg in #( 18639 *"$as_nl"*) 18640 expr "X$arg" : "X\\(.*\\)$as_nl"; 18641 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18642 esac; 18643 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18644 ' 18645 export as_echo_n_body 18646 as_echo_n='sh -c $as_echo_n_body as_echo' 18647 fi 18648 export as_echo_body 18649 as_echo='sh -c $as_echo_body as_echo' 18650fi 18651 18652# The user is always right. 18653if test "${PATH_SEPARATOR+set}" != set; then 18654 PATH_SEPARATOR=: 18655 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18656 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18657 PATH_SEPARATOR=';' 18658 } 18659fi 18660 18661 18662# IFS 18663# We need space, tab and new line, in precisely that order. Quoting is 18664# there to prevent editors from complaining about space-tab. 18665# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18666# splitting by setting IFS to empty value.) 18667IFS=" "" $as_nl" 18668 18669# Find who we are. Look in the path if we contain no directory separator. 18670as_myself= 18671case $0 in #(( 18672 *[\\/]* ) as_myself=$0 ;; 18673 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18674for as_dir in $PATH 18675do 18676 IFS=$as_save_IFS 18677 test -z "$as_dir" && as_dir=. 18678 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18679 done 18680IFS=$as_save_IFS 18681 18682 ;; 18683esac 18684# We did not find ourselves, most probably we were run as `sh COMMAND' 18685# in which case we are not to be found in the path. 18686if test "x$as_myself" = x; then 18687 as_myself=$0 18688fi 18689if test ! -f "$as_myself"; then 18690 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18691 exit 1 18692fi 18693 18694# Unset variables that we do not need and which cause bugs (e.g. in 18695# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18696# suppresses any "Segmentation fault" message there. '((' could 18697# trigger a bug in pdksh 5.2.14. 18698for as_var in BASH_ENV ENV MAIL MAILPATH 18699do eval test x\${$as_var+set} = xset \ 18700 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18701done 18702PS1='$ ' 18703PS2='> ' 18704PS4='+ ' 18705 18706# NLS nuisances. 18707LC_ALL=C 18708export LC_ALL 18709LANGUAGE=C 18710export LANGUAGE 18711 18712# CDPATH. 18713(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18714 18715 18716# as_fn_error STATUS ERROR [LINENO LOG_FD] 18717# ---------------------------------------- 18718# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18719# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18720# script with STATUS, using 1 if that was 0. 18721as_fn_error () 18722{ 18723 as_status=$1; test $as_status -eq 0 && as_status=1 18724 if test "$4"; then 18725 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18726 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18727 fi 18728 $as_echo "$as_me: error: $2" >&2 18729 as_fn_exit $as_status 18730} # as_fn_error 18731 18732 18733# as_fn_set_status STATUS 18734# ----------------------- 18735# Set $? to STATUS, without forking. 18736as_fn_set_status () 18737{ 18738 return $1 18739} # as_fn_set_status 18740 18741# as_fn_exit STATUS 18742# ----------------- 18743# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18744as_fn_exit () 18745{ 18746 set +e 18747 as_fn_set_status $1 18748 exit $1 18749} # as_fn_exit 18750 18751# as_fn_unset VAR 18752# --------------- 18753# Portably unset VAR. 18754as_fn_unset () 18755{ 18756 { eval $1=; unset $1;} 18757} 18758as_unset=as_fn_unset 18759# as_fn_append VAR VALUE 18760# ---------------------- 18761# Append the text in VALUE to the end of the definition contained in VAR. Take 18762# advantage of any shell optimizations that allow amortized linear growth over 18763# repeated appends, instead of the typical quadratic growth present in naive 18764# implementations. 18765if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18766 eval 'as_fn_append () 18767 { 18768 eval $1+=\$2 18769 }' 18770else 18771 as_fn_append () 18772 { 18773 eval $1=\$$1\$2 18774 } 18775fi # as_fn_append 18776 18777# as_fn_arith ARG... 18778# ------------------ 18779# Perform arithmetic evaluation on the ARGs, and store the result in the 18780# global $as_val. Take advantage of shells that can avoid forks. The arguments 18781# must be portable across $(()) and expr. 18782if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18783 eval 'as_fn_arith () 18784 { 18785 as_val=$(( $* )) 18786 }' 18787else 18788 as_fn_arith () 18789 { 18790 as_val=`expr "$@" || test $? -eq 1` 18791 } 18792fi # as_fn_arith 18793 18794 18795if expr a : '\(a\)' >/dev/null 2>&1 && 18796 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18797 as_expr=expr 18798else 18799 as_expr=false 18800fi 18801 18802if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18803 as_basename=basename 18804else 18805 as_basename=false 18806fi 18807 18808if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18809 as_dirname=dirname 18810else 18811 as_dirname=false 18812fi 18813 18814as_me=`$as_basename -- "$0" || 18815$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18816 X"$0" : 'X\(//\)$' \| \ 18817 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18818$as_echo X/"$0" | 18819 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18820 s//\1/ 18821 q 18822 } 18823 /^X\/\(\/\/\)$/{ 18824 s//\1/ 18825 q 18826 } 18827 /^X\/\(\/\).*/{ 18828 s//\1/ 18829 q 18830 } 18831 s/.*/./; q'` 18832 18833# Avoid depending upon Character Ranges. 18834as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18835as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18836as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18837as_cr_digits='0123456789' 18838as_cr_alnum=$as_cr_Letters$as_cr_digits 18839 18840ECHO_C= ECHO_N= ECHO_T= 18841case `echo -n x` in #((((( 18842-n*) 18843 case `echo 'xy\c'` in 18844 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18845 xy) ECHO_C='\c';; 18846 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18847 ECHO_T=' ';; 18848 esac;; 18849*) 18850 ECHO_N='-n';; 18851esac 18852 18853rm -f conf$$ conf$$.exe conf$$.file 18854if test -d conf$$.dir; then 18855 rm -f conf$$.dir/conf$$.file 18856else 18857 rm -f conf$$.dir 18858 mkdir conf$$.dir 2>/dev/null 18859fi 18860if (echo >conf$$.file) 2>/dev/null; then 18861 if ln -s conf$$.file conf$$ 2>/dev/null; then 18862 as_ln_s='ln -s' 18863 # ... but there are two gotchas: 18864 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18865 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18866 # In both cases, we have to default to `cp -pR'. 18867 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18868 as_ln_s='cp -pR' 18869 elif ln conf$$.file conf$$ 2>/dev/null; then 18870 as_ln_s=ln 18871 else 18872 as_ln_s='cp -pR' 18873 fi 18874else 18875 as_ln_s='cp -pR' 18876fi 18877rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18878rmdir conf$$.dir 2>/dev/null 18879 18880 18881# as_fn_mkdir_p 18882# ------------- 18883# Create "$as_dir" as a directory, including parents if necessary. 18884as_fn_mkdir_p () 18885{ 18886 18887 case $as_dir in #( 18888 -*) as_dir=./$as_dir;; 18889 esac 18890 test -d "$as_dir" || eval $as_mkdir_p || { 18891 as_dirs= 18892 while :; do 18893 case $as_dir in #( 18894 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18895 *) as_qdir=$as_dir;; 18896 esac 18897 as_dirs="'$as_qdir' $as_dirs" 18898 as_dir=`$as_dirname -- "$as_dir" || 18899$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18900 X"$as_dir" : 'X\(//\)[^/]' \| \ 18901 X"$as_dir" : 'X\(//\)$' \| \ 18902 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18903$as_echo X"$as_dir" | 18904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18905 s//\1/ 18906 q 18907 } 18908 /^X\(\/\/\)[^/].*/{ 18909 s//\1/ 18910 q 18911 } 18912 /^X\(\/\/\)$/{ 18913 s//\1/ 18914 q 18915 } 18916 /^X\(\/\).*/{ 18917 s//\1/ 18918 q 18919 } 18920 s/.*/./; q'` 18921 test -d "$as_dir" && break 18922 done 18923 test -z "$as_dirs" || eval "mkdir $as_dirs" 18924 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18925 18926 18927} # as_fn_mkdir_p 18928if mkdir -p . 2>/dev/null; then 18929 as_mkdir_p='mkdir -p "$as_dir"' 18930else 18931 test -d ./-p && rmdir ./-p 18932 as_mkdir_p=false 18933fi 18934 18935 18936# as_fn_executable_p FILE 18937# ----------------------- 18938# Test if FILE is an executable regular file. 18939as_fn_executable_p () 18940{ 18941 test -f "$1" && test -x "$1" 18942} # as_fn_executable_p 18943as_test_x='test -x' 18944as_executable_p=as_fn_executable_p 18945 18946# Sed expression to map a string onto a valid CPP name. 18947as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18948 18949# Sed expression to map a string onto a valid variable name. 18950as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18951 18952 18953exec 6>&1 18954## ----------------------------------- ## 18955## Main body of $CONFIG_STATUS script. ## 18956## ----------------------------------- ## 18957_ASEOF 18958test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18959 18960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18961# Save the log message, to keep $0 and so on meaningful, and to 18962# report actual input values of CONFIG_FILES etc. instead of their 18963# values after options handling. 18964ac_log=" 18965This file was extended by libXrandr $as_me 1.5.2, which was 18966generated by GNU Autoconf 2.69. Invocation command line was 18967 18968 CONFIG_FILES = $CONFIG_FILES 18969 CONFIG_HEADERS = $CONFIG_HEADERS 18970 CONFIG_LINKS = $CONFIG_LINKS 18971 CONFIG_COMMANDS = $CONFIG_COMMANDS 18972 $ $0 $@ 18973 18974on `(hostname || uname -n) 2>/dev/null | sed 1q` 18975" 18976 18977_ACEOF 18978 18979case $ac_config_files in *" 18980"*) set x $ac_config_files; shift; ac_config_files=$*;; 18981esac 18982 18983case $ac_config_headers in *" 18984"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18985esac 18986 18987 18988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18989# Files that config.status was made for. 18990config_files="$ac_config_files" 18991config_headers="$ac_config_headers" 18992config_commands="$ac_config_commands" 18993 18994_ACEOF 18995 18996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18997ac_cs_usage="\ 18998\`$as_me' instantiates files and other configuration actions 18999from templates according to the current configuration. Unless the files 19000and actions are specified as TAGs, all are instantiated by default. 19001 19002Usage: $0 [OPTION]... [TAG]... 19003 19004 -h, --help print this help, then exit 19005 -V, --version print version number and configuration settings, then exit 19006 --config print configuration, then exit 19007 -q, --quiet, --silent 19008 do not print progress messages 19009 -d, --debug don't remove temporary files 19010 --recheck update $as_me by reconfiguring in the same conditions 19011 --file=FILE[:TEMPLATE] 19012 instantiate the configuration file FILE 19013 --header=FILE[:TEMPLATE] 19014 instantiate the configuration header FILE 19015 19016Configuration files: 19017$config_files 19018 19019Configuration headers: 19020$config_headers 19021 19022Configuration commands: 19023$config_commands 19024 19025Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXrandr/issues>." 19026 19027_ACEOF 19028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19029ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19030ac_cs_version="\\ 19031libXrandr config.status 1.5.2 19032configured by $0, generated by GNU Autoconf 2.69, 19033 with options \\"\$ac_cs_config\\" 19034 19035Copyright (C) 2012 Free Software Foundation, Inc. 19036This config.status script is free software; the Free Software Foundation 19037gives unlimited permission to copy, distribute and modify it." 19038 19039ac_pwd='$ac_pwd' 19040srcdir='$srcdir' 19041INSTALL='$INSTALL' 19042MKDIR_P='$MKDIR_P' 19043AWK='$AWK' 19044test -n "\$AWK" || AWK=awk 19045_ACEOF 19046 19047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19048# The default lists apply if the user does not specify any file. 19049ac_need_defaults=: 19050while test $# != 0 19051do 19052 case $1 in 19053 --*=?*) 19054 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19055 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19056 ac_shift=: 19057 ;; 19058 --*=) 19059 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19060 ac_optarg= 19061 ac_shift=: 19062 ;; 19063 *) 19064 ac_option=$1 19065 ac_optarg=$2 19066 ac_shift=shift 19067 ;; 19068 esac 19069 19070 case $ac_option in 19071 # Handling of the options. 19072 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19073 ac_cs_recheck=: ;; 19074 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19075 $as_echo "$ac_cs_version"; exit ;; 19076 --config | --confi | --conf | --con | --co | --c ) 19077 $as_echo "$ac_cs_config"; exit ;; 19078 --debug | --debu | --deb | --de | --d | -d ) 19079 debug=: ;; 19080 --file | --fil | --fi | --f ) 19081 $ac_shift 19082 case $ac_optarg in 19083 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19084 '') as_fn_error $? "missing file argument" ;; 19085 esac 19086 as_fn_append CONFIG_FILES " '$ac_optarg'" 19087 ac_need_defaults=false;; 19088 --header | --heade | --head | --hea ) 19089 $ac_shift 19090 case $ac_optarg in 19091 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19092 esac 19093 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19094 ac_need_defaults=false;; 19095 --he | --h) 19096 # Conflict between --help and --header 19097 as_fn_error $? "ambiguous option: \`$1' 19098Try \`$0 --help' for more information.";; 19099 --help | --hel | -h ) 19100 $as_echo "$ac_cs_usage"; exit ;; 19101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19102 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19103 ac_cs_silent=: ;; 19104 19105 # This is an error. 19106 -*) as_fn_error $? "unrecognized option: \`$1' 19107Try \`$0 --help' for more information." ;; 19108 19109 *) as_fn_append ac_config_targets " $1" 19110 ac_need_defaults=false ;; 19111 19112 esac 19113 shift 19114done 19115 19116ac_configure_extra_args= 19117 19118if $ac_cs_silent; then 19119 exec 6>/dev/null 19120 ac_configure_extra_args="$ac_configure_extra_args --silent" 19121fi 19122 19123_ACEOF 19124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19125if \$ac_cs_recheck; then 19126 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19127 shift 19128 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19129 CONFIG_SHELL='$SHELL' 19130 export CONFIG_SHELL 19131 exec "\$@" 19132fi 19133 19134_ACEOF 19135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19136exec 5>>config.log 19137{ 19138 echo 19139 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19140## Running $as_me. ## 19141_ASBOX 19142 $as_echo "$ac_log" 19143} >&5 19144 19145_ACEOF 19146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19147# 19148# INIT-COMMANDS 19149# 19150AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19151 19152 19153# The HP-UX ksh and POSIX shell print the target directory to stdout 19154# if CDPATH is set. 19155(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19156 19157sed_quote_subst='$sed_quote_subst' 19158double_quote_subst='$double_quote_subst' 19159delay_variable_subst='$delay_variable_subst' 19160macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19161macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19162enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19163enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19164pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19165enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19166shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19167SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19168ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19169PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19170host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19171host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19172host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19173build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19174build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19175build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19176SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19177Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19178GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19179EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19180FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19181LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19182NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19183LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19184max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19185ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19186exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19187lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19188lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19189lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19190lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19191lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19192reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19193reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19194OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19195deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19196file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19197file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19198want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19199DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19200sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19201AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19202AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19203archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19204STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19205RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19206old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19207old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19208old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19209lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19210CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19211CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19212compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19213GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19214lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19215lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19216lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19217lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19218lt_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"`' 19219lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19220nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19221lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19222lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19223objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19224MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19225lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19226lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19227lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19228lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19229lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19230need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19231MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19232DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19233NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19234LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19235OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19236OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19237libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19238shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19239extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19240archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19241enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19242export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19243whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19244compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19245old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19246old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19247archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19248archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19249module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19250module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19251with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19252allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19253no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19254hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19255hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19256hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19257hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19258hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19259hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19260hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19261inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19262link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19263always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19264export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19265exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19266include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19267prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19268postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19269file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19270variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19271need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19272need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19273version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19274runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19275shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19276shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19277libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19278library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19279soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19280install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19281postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19282postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19283finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19284finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19285hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19286sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19287configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19288configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19289hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19290enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19291enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19292enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19293old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19294striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19295 19296LTCC='$LTCC' 19297LTCFLAGS='$LTCFLAGS' 19298compiler='$compiler_DEFAULT' 19299 19300# A function that is used when there is no print builtin or printf. 19301func_fallback_echo () 19302{ 19303 eval 'cat <<_LTECHO_EOF 19304\$1 19305_LTECHO_EOF' 19306} 19307 19308# Quote evaled strings. 19309for var in SHELL \ 19310ECHO \ 19311PATH_SEPARATOR \ 19312SED \ 19313GREP \ 19314EGREP \ 19315FGREP \ 19316LD \ 19317NM \ 19318LN_S \ 19319lt_SP2NL \ 19320lt_NL2SP \ 19321reload_flag \ 19322OBJDUMP \ 19323deplibs_check_method \ 19324file_magic_cmd \ 19325file_magic_glob \ 19326want_nocaseglob \ 19327DLLTOOL \ 19328sharedlib_from_linklib_cmd \ 19329AR \ 19330AR_FLAGS \ 19331archiver_list_spec \ 19332STRIP \ 19333RANLIB \ 19334CC \ 19335CFLAGS \ 19336compiler \ 19337lt_cv_sys_global_symbol_pipe \ 19338lt_cv_sys_global_symbol_to_cdecl \ 19339lt_cv_sys_global_symbol_to_import \ 19340lt_cv_sys_global_symbol_to_c_name_address \ 19341lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19342lt_cv_nm_interface \ 19343nm_file_list_spec \ 19344lt_cv_truncate_bin \ 19345lt_prog_compiler_no_builtin_flag \ 19346lt_prog_compiler_pic \ 19347lt_prog_compiler_wl \ 19348lt_prog_compiler_static \ 19349lt_cv_prog_compiler_c_o \ 19350need_locks \ 19351MANIFEST_TOOL \ 19352DSYMUTIL \ 19353NMEDIT \ 19354LIPO \ 19355OTOOL \ 19356OTOOL64 \ 19357shrext_cmds \ 19358export_dynamic_flag_spec \ 19359whole_archive_flag_spec \ 19360compiler_needs_object \ 19361with_gnu_ld \ 19362allow_undefined_flag \ 19363no_undefined_flag \ 19364hardcode_libdir_flag_spec \ 19365hardcode_libdir_separator \ 19366exclude_expsyms \ 19367include_expsyms \ 19368file_list_spec \ 19369variables_saved_for_relink \ 19370libname_spec \ 19371library_names_spec \ 19372soname_spec \ 19373install_override_mode \ 19374finish_eval \ 19375old_striplib \ 19376striplib; do 19377 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19378 *[\\\\\\\`\\"\\\$]*) 19379 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19380 ;; 19381 *) 19382 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19383 ;; 19384 esac 19385done 19386 19387# Double-quote double-evaled strings. 19388for var in reload_cmds \ 19389old_postinstall_cmds \ 19390old_postuninstall_cmds \ 19391old_archive_cmds \ 19392extract_expsyms_cmds \ 19393old_archive_from_new_cmds \ 19394old_archive_from_expsyms_cmds \ 19395archive_cmds \ 19396archive_expsym_cmds \ 19397module_cmds \ 19398module_expsym_cmds \ 19399export_symbols_cmds \ 19400prelink_cmds \ 19401postlink_cmds \ 19402postinstall_cmds \ 19403postuninstall_cmds \ 19404finish_cmds \ 19405sys_lib_search_path_spec \ 19406configure_time_dlsearch_path \ 19407configure_time_lt_sys_library_path; do 19408 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19409 *[\\\\\\\`\\"\\\$]*) 19410 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19411 ;; 19412 *) 19413 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19414 ;; 19415 esac 19416done 19417 19418ac_aux_dir='$ac_aux_dir' 19419 19420# See if we are running on zsh, and set the options that allow our 19421# commands through without removal of \ escapes INIT. 19422if test -n "\${ZSH_VERSION+set}"; then 19423 setopt NO_GLOB_SUBST 19424fi 19425 19426 19427 PACKAGE='$PACKAGE' 19428 VERSION='$VERSION' 19429 RM='$RM' 19430 ofile='$ofile' 19431 19432 19433 19434 19435_ACEOF 19436 19437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19438 19439# Handling of arguments. 19440for ac_config_target in $ac_config_targets 19441do 19442 case $ac_config_target in 19443 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19444 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19445 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19446 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19447 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19448 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19449 "xrandr.pc") CONFIG_FILES="$CONFIG_FILES xrandr.pc" ;; 19450 19451 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19452 esac 19453done 19454 19455 19456# If the user did not use the arguments to specify the items to instantiate, 19457# then the envvar interface is used. Set only those that are not. 19458# We use the long form for the default assignment because of an extremely 19459# bizarre bug on SunOS 4.1.3. 19460if $ac_need_defaults; then 19461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19464fi 19465 19466# Have a temporary directory for convenience. Make it in the build tree 19467# simply because there is no reason against having it here, and in addition, 19468# creating and moving files from /tmp can sometimes cause problems. 19469# Hook for its removal unless debugging. 19470# Note that there is a small window in which the directory will not be cleaned: 19471# after its creation but before its name has been assigned to `$tmp'. 19472$debug || 19473{ 19474 tmp= ac_tmp= 19475 trap 'exit_status=$? 19476 : "${ac_tmp:=$tmp}" 19477 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19478' 0 19479 trap 'as_fn_exit 1' 1 2 13 15 19480} 19481# Create a (secure) tmp directory for tmp files. 19482 19483{ 19484 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19485 test -d "$tmp" 19486} || 19487{ 19488 tmp=./conf$$-$RANDOM 19489 (umask 077 && mkdir "$tmp") 19490} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19491ac_tmp=$tmp 19492 19493# Set up the scripts for CONFIG_FILES section. 19494# No need to generate them if there are no CONFIG_FILES. 19495# This happens for instance with `./config.status config.h'. 19496if test -n "$CONFIG_FILES"; then 19497 19498 19499ac_cr=`echo X | tr X '\015'` 19500# On cygwin, bash can eat \r inside `` if the user requested igncr. 19501# But we know of no other shell where ac_cr would be empty at this 19502# point, so we can use a bashism as a fallback. 19503if test "x$ac_cr" = x; then 19504 eval ac_cr=\$\'\\r\' 19505fi 19506ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19507if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19508 ac_cs_awk_cr='\\r' 19509else 19510 ac_cs_awk_cr=$ac_cr 19511fi 19512 19513echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19514_ACEOF 19515 19516 19517{ 19518 echo "cat >conf$$subs.awk <<_ACEOF" && 19519 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19520 echo "_ACEOF" 19521} >conf$$subs.sh || 19522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19523ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19524ac_delim='%!_!# ' 19525for ac_last_try in false false false false false :; do 19526 . ./conf$$subs.sh || 19527 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19528 19529 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19530 if test $ac_delim_n = $ac_delim_num; then 19531 break 19532 elif $ac_last_try; then 19533 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19534 else 19535 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19536 fi 19537done 19538rm -f conf$$subs.sh 19539 19540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19541cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19542_ACEOF 19543sed -n ' 19544h 19545s/^/S["/; s/!.*/"]=/ 19546p 19547g 19548s/^[^!]*!// 19549:repl 19550t repl 19551s/'"$ac_delim"'$// 19552t delim 19553:nl 19554h 19555s/\(.\{148\}\)..*/\1/ 19556t more1 19557s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19558p 19559n 19560b repl 19561:more1 19562s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19563p 19564g 19565s/.\{148\}// 19566t nl 19567:delim 19568h 19569s/\(.\{148\}\)..*/\1/ 19570t more2 19571s/["\\]/\\&/g; s/^/"/; s/$/"/ 19572p 19573b 19574:more2 19575s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19576p 19577g 19578s/.\{148\}// 19579t delim 19580' <conf$$subs.awk | sed ' 19581/^[^""]/{ 19582 N 19583 s/\n// 19584} 19585' >>$CONFIG_STATUS || ac_write_fail=1 19586rm -f conf$$subs.awk 19587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19588_ACAWK 19589cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19590 for (key in S) S_is_set[key] = 1 19591 FS = "" 19592 19593} 19594{ 19595 line = $ 0 19596 nfields = split(line, field, "@") 19597 substed = 0 19598 len = length(field[1]) 19599 for (i = 2; i < nfields; i++) { 19600 key = field[i] 19601 keylen = length(key) 19602 if (S_is_set[key]) { 19603 value = S[key] 19604 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19605 len += length(value) + length(field[++i]) 19606 substed = 1 19607 } else 19608 len += 1 + keylen 19609 } 19610 19611 print line 19612} 19613 19614_ACAWK 19615_ACEOF 19616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19617if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19618 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19619else 19620 cat 19621fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19622 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19623_ACEOF 19624 19625# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19626# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19627# trailing colons and then remove the whole line if VPATH becomes empty 19628# (actually we leave an empty line to preserve line numbers). 19629if test "x$srcdir" = x.; then 19630 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19631h 19632s/// 19633s/^/:/ 19634s/[ ]*$/:/ 19635s/:\$(srcdir):/:/g 19636s/:\${srcdir}:/:/g 19637s/:@srcdir@:/:/g 19638s/^:*// 19639s/:*$// 19640x 19641s/\(=[ ]*\).*/\1/ 19642G 19643s/\n// 19644s/^[^=]*=[ ]*$// 19645}' 19646fi 19647 19648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19649fi # test -n "$CONFIG_FILES" 19650 19651# Set up the scripts for CONFIG_HEADERS section. 19652# No need to generate them if there are no CONFIG_HEADERS. 19653# This happens for instance with `./config.status Makefile'. 19654if test -n "$CONFIG_HEADERS"; then 19655cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19656BEGIN { 19657_ACEOF 19658 19659# Transform confdefs.h into an awk script `defines.awk', embedded as 19660# here-document in config.status, that substitutes the proper values into 19661# config.h.in to produce config.h. 19662 19663# Create a delimiter string that does not exist in confdefs.h, to ease 19664# handling of long lines. 19665ac_delim='%!_!# ' 19666for ac_last_try in false false :; do 19667 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19668 if test -z "$ac_tt"; then 19669 break 19670 elif $ac_last_try; then 19671 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19672 else 19673 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19674 fi 19675done 19676 19677# For the awk script, D is an array of macro values keyed by name, 19678# likewise P contains macro parameters if any. Preserve backslash 19679# newline sequences. 19680 19681ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19682sed -n ' 19683s/.\{148\}/&'"$ac_delim"'/g 19684t rset 19685:rset 19686s/^[ ]*#[ ]*define[ ][ ]*/ / 19687t def 19688d 19689:def 19690s/\\$// 19691t bsnl 19692s/["\\]/\\&/g 19693s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19694D["\1"]=" \3"/p 19695s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19696d 19697:bsnl 19698s/["\\]/\\&/g 19699s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19700D["\1"]=" \3\\\\\\n"\\/p 19701t cont 19702s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19703t cont 19704d 19705:cont 19706n 19707s/.\{148\}/&'"$ac_delim"'/g 19708t clear 19709:clear 19710s/\\$// 19711t bsnlc 19712s/["\\]/\\&/g; s/^/"/; s/$/"/p 19713d 19714:bsnlc 19715s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19716b cont 19717' <confdefs.h | sed ' 19718s/'"$ac_delim"'/"\\\ 19719"/g' >>$CONFIG_STATUS || ac_write_fail=1 19720 19721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19722 for (key in D) D_is_set[key] = 1 19723 FS = "" 19724} 19725/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19726 line = \$ 0 19727 split(line, arg, " ") 19728 if (arg[1] == "#") { 19729 defundef = arg[2] 19730 mac1 = arg[3] 19731 } else { 19732 defundef = substr(arg[1], 2) 19733 mac1 = arg[2] 19734 } 19735 split(mac1, mac2, "(") #) 19736 macro = mac2[1] 19737 prefix = substr(line, 1, index(line, defundef) - 1) 19738 if (D_is_set[macro]) { 19739 # Preserve the white space surrounding the "#". 19740 print prefix "define", macro P[macro] D[macro] 19741 next 19742 } else { 19743 # Replace #undef with comments. This is necessary, for example, 19744 # in the case of _POSIX_SOURCE, which is predefined and required 19745 # on some systems where configure will not decide to define it. 19746 if (defundef == "undef") { 19747 print "/*", prefix defundef, macro, "*/" 19748 next 19749 } 19750 } 19751} 19752{ print } 19753_ACAWK 19754_ACEOF 19755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19756 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19757fi # test -n "$CONFIG_HEADERS" 19758 19759 19760eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19761shift 19762for ac_tag 19763do 19764 case $ac_tag in 19765 :[FHLC]) ac_mode=$ac_tag; continue;; 19766 esac 19767 case $ac_mode$ac_tag in 19768 :[FHL]*:*);; 19769 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19770 :[FH]-) ac_tag=-:-;; 19771 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19772 esac 19773 ac_save_IFS=$IFS 19774 IFS=: 19775 set x $ac_tag 19776 IFS=$ac_save_IFS 19777 shift 19778 ac_file=$1 19779 shift 19780 19781 case $ac_mode in 19782 :L) ac_source=$1;; 19783 :[FH]) 19784 ac_file_inputs= 19785 for ac_f 19786 do 19787 case $ac_f in 19788 -) ac_f="$ac_tmp/stdin";; 19789 *) # Look for the file first in the build tree, then in the source tree 19790 # (if the path is not absolute). The absolute path cannot be DOS-style, 19791 # because $ac_f cannot contain `:'. 19792 test -f "$ac_f" || 19793 case $ac_f in 19794 [\\/$]*) false;; 19795 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19796 esac || 19797 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19798 esac 19799 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19800 as_fn_append ac_file_inputs " '$ac_f'" 19801 done 19802 19803 # Let's still pretend it is `configure' which instantiates (i.e., don't 19804 # use $as_me), people would be surprised to read: 19805 # /* config.h. Generated by config.status. */ 19806 configure_input='Generated from '` 19807 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19808 `' by configure.' 19809 if test x"$ac_file" != x-; then 19810 configure_input="$ac_file. $configure_input" 19811 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19812$as_echo "$as_me: creating $ac_file" >&6;} 19813 fi 19814 # Neutralize special characters interpreted by sed in replacement strings. 19815 case $configure_input in #( 19816 *\&* | *\|* | *\\* ) 19817 ac_sed_conf_input=`$as_echo "$configure_input" | 19818 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19819 *) ac_sed_conf_input=$configure_input;; 19820 esac 19821 19822 case $ac_tag in 19823 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19824 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19825 esac 19826 ;; 19827 esac 19828 19829 ac_dir=`$as_dirname -- "$ac_file" || 19830$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19831 X"$ac_file" : 'X\(//\)[^/]' \| \ 19832 X"$ac_file" : 'X\(//\)$' \| \ 19833 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19834$as_echo X"$ac_file" | 19835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19836 s//\1/ 19837 q 19838 } 19839 /^X\(\/\/\)[^/].*/{ 19840 s//\1/ 19841 q 19842 } 19843 /^X\(\/\/\)$/{ 19844 s//\1/ 19845 q 19846 } 19847 /^X\(\/\).*/{ 19848 s//\1/ 19849 q 19850 } 19851 s/.*/./; q'` 19852 as_dir="$ac_dir"; as_fn_mkdir_p 19853 ac_builddir=. 19854 19855case "$ac_dir" in 19856.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19857*) 19858 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19859 # A ".." for each directory in $ac_dir_suffix. 19860 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19861 case $ac_top_builddir_sub in 19862 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19863 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19864 esac ;; 19865esac 19866ac_abs_top_builddir=$ac_pwd 19867ac_abs_builddir=$ac_pwd$ac_dir_suffix 19868# for backward compatibility: 19869ac_top_builddir=$ac_top_build_prefix 19870 19871case $srcdir in 19872 .) # We are building in place. 19873 ac_srcdir=. 19874 ac_top_srcdir=$ac_top_builddir_sub 19875 ac_abs_top_srcdir=$ac_pwd ;; 19876 [\\/]* | ?:[\\/]* ) # Absolute name. 19877 ac_srcdir=$srcdir$ac_dir_suffix; 19878 ac_top_srcdir=$srcdir 19879 ac_abs_top_srcdir=$srcdir ;; 19880 *) # Relative name. 19881 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19882 ac_top_srcdir=$ac_top_build_prefix$srcdir 19883 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19884esac 19885ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19886 19887 19888 case $ac_mode in 19889 :F) 19890 # 19891 # CONFIG_FILE 19892 # 19893 19894 case $INSTALL in 19895 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19896 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19897 esac 19898 ac_MKDIR_P=$MKDIR_P 19899 case $MKDIR_P in 19900 [\\/$]* | ?:[\\/]* ) ;; 19901 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19902 esac 19903_ACEOF 19904 19905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19906# If the template does not know about datarootdir, expand it. 19907# FIXME: This hack should be removed a few years after 2.60. 19908ac_datarootdir_hack=; ac_datarootdir_seen= 19909ac_sed_dataroot=' 19910/datarootdir/ { 19911 p 19912 q 19913} 19914/@datadir@/p 19915/@docdir@/p 19916/@infodir@/p 19917/@localedir@/p 19918/@mandir@/p' 19919case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19920*datarootdir*) ac_datarootdir_seen=yes;; 19921*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19923$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19924_ACEOF 19925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19926 ac_datarootdir_hack=' 19927 s&@datadir@&$datadir&g 19928 s&@docdir@&$docdir&g 19929 s&@infodir@&$infodir&g 19930 s&@localedir@&$localedir&g 19931 s&@mandir@&$mandir&g 19932 s&\\\${datarootdir}&$datarootdir&g' ;; 19933esac 19934_ACEOF 19935 19936# Neutralize VPATH when `$srcdir' = `.'. 19937# Shell code in configure.ac might set extrasub. 19938# FIXME: do we really want to maintain this feature? 19939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19940ac_sed_extra="$ac_vpsub 19941$extrasub 19942_ACEOF 19943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19944:t 19945/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19946s|@configure_input@|$ac_sed_conf_input|;t t 19947s&@top_builddir@&$ac_top_builddir_sub&;t t 19948s&@top_build_prefix@&$ac_top_build_prefix&;t t 19949s&@srcdir@&$ac_srcdir&;t t 19950s&@abs_srcdir@&$ac_abs_srcdir&;t t 19951s&@top_srcdir@&$ac_top_srcdir&;t t 19952s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19953s&@builddir@&$ac_builddir&;t t 19954s&@abs_builddir@&$ac_abs_builddir&;t t 19955s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19956s&@INSTALL@&$ac_INSTALL&;t t 19957s&@MKDIR_P@&$ac_MKDIR_P&;t t 19958$ac_datarootdir_hack 19959" 19960eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19961 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19962 19963test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19964 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19965 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19966 "$ac_tmp/out"`; test -z "$ac_out"; } && 19967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19968which seems to be undefined. Please make sure it is defined" >&5 19969$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19970which seems to be undefined. Please make sure it is defined" >&2;} 19971 19972 rm -f "$ac_tmp/stdin" 19973 case $ac_file in 19974 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19975 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19976 esac \ 19977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19978 ;; 19979 :H) 19980 # 19981 # CONFIG_HEADER 19982 # 19983 if test x"$ac_file" != x-; then 19984 { 19985 $as_echo "/* $configure_input */" \ 19986 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19987 } >"$ac_tmp/config.h" \ 19988 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19989 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19990 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19991$as_echo "$as_me: $ac_file is unchanged" >&6;} 19992 else 19993 rm -f "$ac_file" 19994 mv "$ac_tmp/config.h" "$ac_file" \ 19995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19996 fi 19997 else 19998 $as_echo "/* $configure_input */" \ 19999 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20000 || as_fn_error $? "could not create -" "$LINENO" 5 20001 fi 20002# Compute "$ac_file"'s index in $config_headers. 20003_am_arg="$ac_file" 20004_am_stamp_count=1 20005for _am_header in $config_headers :; do 20006 case $_am_header in 20007 $_am_arg | $_am_arg:* ) 20008 break ;; 20009 * ) 20010 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20011 esac 20012done 20013echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20014$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20015 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20016 X"$_am_arg" : 'X\(//\)$' \| \ 20017 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20018$as_echo X"$_am_arg" | 20019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20020 s//\1/ 20021 q 20022 } 20023 /^X\(\/\/\)[^/].*/{ 20024 s//\1/ 20025 q 20026 } 20027 /^X\(\/\/\)$/{ 20028 s//\1/ 20029 q 20030 } 20031 /^X\(\/\).*/{ 20032 s//\1/ 20033 q 20034 } 20035 s/.*/./; q'`/stamp-h$_am_stamp_count 20036 ;; 20037 20038 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20039$as_echo "$as_me: executing $ac_file commands" >&6;} 20040 ;; 20041 esac 20042 20043 20044 case $ac_file$ac_mode in 20045 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20046 # Older Autoconf quotes --file arguments for eval, but not when files 20047 # are listed without --file. Let's play safe and only enable the eval 20048 # if we detect the quoting. 20049 case $CONFIG_FILES in 20050 *\'*) eval set x "$CONFIG_FILES" ;; 20051 *) set x $CONFIG_FILES ;; 20052 esac 20053 shift 20054 for mf 20055 do 20056 # Strip MF so we end up with the name of the file. 20057 mf=`echo "$mf" | sed -e 's/:.*$//'` 20058 # Check whether this is an Automake generated Makefile or not. 20059 # We used to match only the files named 'Makefile.in', but 20060 # some people rename them; so instead we look at the file content. 20061 # Grep'ing the first line is not enough: some people post-process 20062 # each Makefile.in and add a new line on top of each file to say so. 20063 # Grep'ing the whole file is not good either: AIX grep has a line 20064 # limit of 2048, but all sed's we know have understand at least 4000. 20065 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20066 dirpart=`$as_dirname -- "$mf" || 20067$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20068 X"$mf" : 'X\(//\)[^/]' \| \ 20069 X"$mf" : 'X\(//\)$' \| \ 20070 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20071$as_echo X"$mf" | 20072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20073 s//\1/ 20074 q 20075 } 20076 /^X\(\/\/\)[^/].*/{ 20077 s//\1/ 20078 q 20079 } 20080 /^X\(\/\/\)$/{ 20081 s//\1/ 20082 q 20083 } 20084 /^X\(\/\).*/{ 20085 s//\1/ 20086 q 20087 } 20088 s/.*/./; q'` 20089 else 20090 continue 20091 fi 20092 # Extract the definition of DEPDIR, am__include, and am__quote 20093 # from the Makefile without running 'make'. 20094 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20095 test -z "$DEPDIR" && continue 20096 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20097 test -z "$am__include" && continue 20098 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20099 # Find all dependency output files, they are included files with 20100 # $(DEPDIR) in their names. We invoke sed twice because it is the 20101 # simplest approach to changing $(DEPDIR) to its actual value in the 20102 # expansion. 20103 for file in `sed -n " 20104 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20105 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20106 # Make sure the directory exists. 20107 test -f "$dirpart/$file" && continue 20108 fdir=`$as_dirname -- "$file" || 20109$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20110 X"$file" : 'X\(//\)[^/]' \| \ 20111 X"$file" : 'X\(//\)$' \| \ 20112 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20113$as_echo X"$file" | 20114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20115 s//\1/ 20116 q 20117 } 20118 /^X\(\/\/\)[^/].*/{ 20119 s//\1/ 20120 q 20121 } 20122 /^X\(\/\/\)$/{ 20123 s//\1/ 20124 q 20125 } 20126 /^X\(\/\).*/{ 20127 s//\1/ 20128 q 20129 } 20130 s/.*/./; q'` 20131 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20132 # echo "creating $dirpart/$file" 20133 echo '# dummy' > "$dirpart/$file" 20134 done 20135 done 20136} 20137 ;; 20138 "libtool":C) 20139 20140 # See if we are running on zsh, and set the options that allow our 20141 # commands through without removal of \ escapes. 20142 if test -n "${ZSH_VERSION+set}"; then 20143 setopt NO_GLOB_SUBST 20144 fi 20145 20146 cfgfile=${ofile}T 20147 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20148 $RM "$cfgfile" 20149 20150 cat <<_LT_EOF >> "$cfgfile" 20151#! $SHELL 20152# Generated automatically by $as_me ($PACKAGE) $VERSION 20153# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20154# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20155 20156# Provide generalized library-building support services. 20157# Written by Gordon Matzigkeit, 1996 20158 20159# Copyright (C) 2014 Free Software Foundation, Inc. 20160# This is free software; see the source for copying conditions. There is NO 20161# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20162 20163# GNU Libtool is free software; you can redistribute it and/or modify 20164# it under the terms of the GNU General Public License as published by 20165# the Free Software Foundation; either version 2 of of the License, or 20166# (at your option) any later version. 20167# 20168# As a special exception to the GNU General Public License, if you 20169# distribute this file as part of a program or library that is built 20170# using GNU Libtool, you may include this file under the same 20171# distribution terms that you use for the rest of that program. 20172# 20173# GNU Libtool is distributed in the hope that it will be useful, but 20174# WITHOUT ANY WARRANTY; without even the implied warranty of 20175# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20176# GNU General Public License for more details. 20177# 20178# You should have received a copy of the GNU General Public License 20179# along with this program. If not, see <http://www.gnu.org/licenses/>. 20180 20181 20182# The names of the tagged configurations supported by this script. 20183available_tags='' 20184 20185# Configured defaults for sys_lib_dlsearch_path munging. 20186: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20187 20188# ### BEGIN LIBTOOL CONFIG 20189 20190# Which release of libtool.m4 was used? 20191macro_version=$macro_version 20192macro_revision=$macro_revision 20193 20194# Whether or not to build shared libraries. 20195build_libtool_libs=$enable_shared 20196 20197# Whether or not to build static libraries. 20198build_old_libs=$enable_static 20199 20200# What type of objects to build. 20201pic_mode=$pic_mode 20202 20203# Whether or not to optimize for fast installation. 20204fast_install=$enable_fast_install 20205 20206# Shared archive member basename,for filename based shared library versioning on AIX. 20207shared_archive_member_spec=$shared_archive_member_spec 20208 20209# Shell to use when invoking shell scripts. 20210SHELL=$lt_SHELL 20211 20212# An echo program that protects backslashes. 20213ECHO=$lt_ECHO 20214 20215# The PATH separator for the build system. 20216PATH_SEPARATOR=$lt_PATH_SEPARATOR 20217 20218# The host system. 20219host_alias=$host_alias 20220host=$host 20221host_os=$host_os 20222 20223# The build system. 20224build_alias=$build_alias 20225build=$build 20226build_os=$build_os 20227 20228# A sed program that does not truncate output. 20229SED=$lt_SED 20230 20231# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20232Xsed="\$SED -e 1s/^X//" 20233 20234# A grep program that handles long lines. 20235GREP=$lt_GREP 20236 20237# An ERE matcher. 20238EGREP=$lt_EGREP 20239 20240# A literal string matcher. 20241FGREP=$lt_FGREP 20242 20243# A BSD- or MS-compatible name lister. 20244NM=$lt_NM 20245 20246# Whether we need soft or hard links. 20247LN_S=$lt_LN_S 20248 20249# What is the maximum length of a command? 20250max_cmd_len=$max_cmd_len 20251 20252# Object file suffix (normally "o"). 20253objext=$ac_objext 20254 20255# Executable file suffix (normally ""). 20256exeext=$exeext 20257 20258# whether the shell understands "unset". 20259lt_unset=$lt_unset 20260 20261# turn spaces into newlines. 20262SP2NL=$lt_lt_SP2NL 20263 20264# turn newlines into spaces. 20265NL2SP=$lt_lt_NL2SP 20266 20267# convert \$build file names to \$host format. 20268to_host_file_cmd=$lt_cv_to_host_file_cmd 20269 20270# convert \$build files to toolchain format. 20271to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20272 20273# An object symbol dumper. 20274OBJDUMP=$lt_OBJDUMP 20275 20276# Method to check whether dependent libraries are shared objects. 20277deplibs_check_method=$lt_deplibs_check_method 20278 20279# Command to use when deplibs_check_method = "file_magic". 20280file_magic_cmd=$lt_file_magic_cmd 20281 20282# How to find potential files when deplibs_check_method = "file_magic". 20283file_magic_glob=$lt_file_magic_glob 20284 20285# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20286want_nocaseglob=$lt_want_nocaseglob 20287 20288# DLL creation program. 20289DLLTOOL=$lt_DLLTOOL 20290 20291# Command to associate shared and link libraries. 20292sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20293 20294# The archiver. 20295AR=$lt_AR 20296 20297# Flags to create an archive. 20298AR_FLAGS=$lt_AR_FLAGS 20299 20300# How to feed a file listing to the archiver. 20301archiver_list_spec=$lt_archiver_list_spec 20302 20303# A symbol stripping program. 20304STRIP=$lt_STRIP 20305 20306# Commands used to install an old-style archive. 20307RANLIB=$lt_RANLIB 20308old_postinstall_cmds=$lt_old_postinstall_cmds 20309old_postuninstall_cmds=$lt_old_postuninstall_cmds 20310 20311# Whether to use a lock for old archive extraction. 20312lock_old_archive_extraction=$lock_old_archive_extraction 20313 20314# A C compiler. 20315LTCC=$lt_CC 20316 20317# LTCC compiler flags. 20318LTCFLAGS=$lt_CFLAGS 20319 20320# Take the output of nm and produce a listing of raw symbols and C names. 20321global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20322 20323# Transform the output of nm in a proper C declaration. 20324global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20325 20326# Transform the output of nm into a list of symbols to manually relocate. 20327global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20328 20329# Transform the output of nm in a C name address pair. 20330global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20331 20332# Transform the output of nm in a C name address pair when lib prefix is needed. 20333global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20334 20335# The name lister interface. 20336nm_interface=$lt_lt_cv_nm_interface 20337 20338# Specify filename containing input files for \$NM. 20339nm_file_list_spec=$lt_nm_file_list_spec 20340 20341# The root where to search for dependent libraries,and where our libraries should be installed. 20342lt_sysroot=$lt_sysroot 20343 20344# Command to truncate a binary pipe. 20345lt_truncate_bin=$lt_lt_cv_truncate_bin 20346 20347# The name of the directory that contains temporary libtool files. 20348objdir=$objdir 20349 20350# Used to examine libraries when file_magic_cmd begins with "file". 20351MAGIC_CMD=$MAGIC_CMD 20352 20353# Must we lock files when doing compilation? 20354need_locks=$lt_need_locks 20355 20356# Manifest tool. 20357MANIFEST_TOOL=$lt_MANIFEST_TOOL 20358 20359# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20360DSYMUTIL=$lt_DSYMUTIL 20361 20362# Tool to change global to local symbols on Mac OS X. 20363NMEDIT=$lt_NMEDIT 20364 20365# Tool to manipulate fat objects and archives on Mac OS X. 20366LIPO=$lt_LIPO 20367 20368# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20369OTOOL=$lt_OTOOL 20370 20371# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20372OTOOL64=$lt_OTOOL64 20373 20374# Old archive suffix (normally "a"). 20375libext=$libext 20376 20377# Shared library suffix (normally ".so"). 20378shrext_cmds=$lt_shrext_cmds 20379 20380# The commands to extract the exported symbol list from a shared archive. 20381extract_expsyms_cmds=$lt_extract_expsyms_cmds 20382 20383# Variables whose values should be saved in libtool wrapper scripts and 20384# restored at link time. 20385variables_saved_for_relink=$lt_variables_saved_for_relink 20386 20387# Do we need the "lib" prefix for modules? 20388need_lib_prefix=$need_lib_prefix 20389 20390# Do we need a version for libraries? 20391need_version=$need_version 20392 20393# Library versioning type. 20394version_type=$version_type 20395 20396# Shared library runtime path variable. 20397runpath_var=$runpath_var 20398 20399# Shared library path variable. 20400shlibpath_var=$shlibpath_var 20401 20402# Is shlibpath searched before the hard-coded library search path? 20403shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20404 20405# Format of library name prefix. 20406libname_spec=$lt_libname_spec 20407 20408# List of archive names. First name is the real one, the rest are links. 20409# The last name is the one that the linker finds with -lNAME 20410library_names_spec=$lt_library_names_spec 20411 20412# The coded name of the library, if different from the real name. 20413soname_spec=$lt_soname_spec 20414 20415# Permission mode override for installation of shared libraries. 20416install_override_mode=$lt_install_override_mode 20417 20418# Command to use after installation of a shared archive. 20419postinstall_cmds=$lt_postinstall_cmds 20420 20421# Command to use after uninstallation of a shared archive. 20422postuninstall_cmds=$lt_postuninstall_cmds 20423 20424# Commands used to finish a libtool library installation in a directory. 20425finish_cmds=$lt_finish_cmds 20426 20427# As "finish_cmds", except a single script fragment to be evaled but 20428# not shown. 20429finish_eval=$lt_finish_eval 20430 20431# Whether we should hardcode library paths into libraries. 20432hardcode_into_libs=$hardcode_into_libs 20433 20434# Compile-time system search path for libraries. 20435sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20436 20437# Detected run-time system search path for libraries. 20438sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20439 20440# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20441configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20442 20443# Whether dlopen is supported. 20444dlopen_support=$enable_dlopen 20445 20446# Whether dlopen of programs is supported. 20447dlopen_self=$enable_dlopen_self 20448 20449# Whether dlopen of statically linked programs is supported. 20450dlopen_self_static=$enable_dlopen_self_static 20451 20452# Commands to strip libraries. 20453old_striplib=$lt_old_striplib 20454striplib=$lt_striplib 20455 20456 20457# The linker used to build libraries. 20458LD=$lt_LD 20459 20460# How to create reloadable object files. 20461reload_flag=$lt_reload_flag 20462reload_cmds=$lt_reload_cmds 20463 20464# Commands used to build an old-style archive. 20465old_archive_cmds=$lt_old_archive_cmds 20466 20467# A language specific compiler. 20468CC=$lt_compiler 20469 20470# Is the compiler the GNU compiler? 20471with_gcc=$GCC 20472 20473# Compiler flag to turn off builtin functions. 20474no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20475 20476# Additional compiler flags for building library objects. 20477pic_flag=$lt_lt_prog_compiler_pic 20478 20479# How to pass a linker flag through the compiler. 20480wl=$lt_lt_prog_compiler_wl 20481 20482# Compiler flag to prevent dynamic linking. 20483link_static_flag=$lt_lt_prog_compiler_static 20484 20485# Does compiler simultaneously support -c and -o options? 20486compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20487 20488# Whether or not to add -lc for building shared libraries. 20489build_libtool_need_lc=$archive_cmds_need_lc 20490 20491# Whether or not to disallow shared libs when runtime libs are static. 20492allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20493 20494# Compiler flag to allow reflexive dlopens. 20495export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20496 20497# Compiler flag to generate shared objects directly from archives. 20498whole_archive_flag_spec=$lt_whole_archive_flag_spec 20499 20500# Whether the compiler copes with passing no objects directly. 20501compiler_needs_object=$lt_compiler_needs_object 20502 20503# Create an old-style archive from a shared archive. 20504old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20505 20506# Create a temporary old-style archive to link instead of a shared archive. 20507old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20508 20509# Commands used to build a shared archive. 20510archive_cmds=$lt_archive_cmds 20511archive_expsym_cmds=$lt_archive_expsym_cmds 20512 20513# Commands used to build a loadable module if different from building 20514# a shared archive. 20515module_cmds=$lt_module_cmds 20516module_expsym_cmds=$lt_module_expsym_cmds 20517 20518# Whether we are building with GNU ld or not. 20519with_gnu_ld=$lt_with_gnu_ld 20520 20521# Flag that allows shared libraries with undefined symbols to be built. 20522allow_undefined_flag=$lt_allow_undefined_flag 20523 20524# Flag that enforces no undefined symbols. 20525no_undefined_flag=$lt_no_undefined_flag 20526 20527# Flag to hardcode \$libdir into a binary during linking. 20528# This must work even if \$libdir does not exist 20529hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20530 20531# Whether we need a single "-rpath" flag with a separated argument. 20532hardcode_libdir_separator=$lt_hardcode_libdir_separator 20533 20534# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20535# DIR into the resulting binary. 20536hardcode_direct=$hardcode_direct 20537 20538# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20539# DIR into the resulting binary and the resulting library dependency is 20540# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20541# library is relocated. 20542hardcode_direct_absolute=$hardcode_direct_absolute 20543 20544# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20545# into the resulting binary. 20546hardcode_minus_L=$hardcode_minus_L 20547 20548# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20549# into the resulting binary. 20550hardcode_shlibpath_var=$hardcode_shlibpath_var 20551 20552# Set to "yes" if building a shared library automatically hardcodes DIR 20553# into the library and all subsequent libraries and executables linked 20554# against it. 20555hardcode_automatic=$hardcode_automatic 20556 20557# Set to yes if linker adds runtime paths of dependent libraries 20558# to runtime path list. 20559inherit_rpath=$inherit_rpath 20560 20561# Whether libtool must link a program against all its dependency libraries. 20562link_all_deplibs=$link_all_deplibs 20563 20564# Set to "yes" if exported symbols are required. 20565always_export_symbols=$always_export_symbols 20566 20567# The commands to list exported symbols. 20568export_symbols_cmds=$lt_export_symbols_cmds 20569 20570# Symbols that should not be listed in the preloaded symbols. 20571exclude_expsyms=$lt_exclude_expsyms 20572 20573# Symbols that must always be exported. 20574include_expsyms=$lt_include_expsyms 20575 20576# Commands necessary for linking programs (against libraries) with templates. 20577prelink_cmds=$lt_prelink_cmds 20578 20579# Commands necessary for finishing linking programs. 20580postlink_cmds=$lt_postlink_cmds 20581 20582# Specify filename containing input files. 20583file_list_spec=$lt_file_list_spec 20584 20585# How to hardcode a shared library path into an executable. 20586hardcode_action=$hardcode_action 20587 20588# ### END LIBTOOL CONFIG 20589 20590_LT_EOF 20591 20592 cat <<'_LT_EOF' >> "$cfgfile" 20593 20594# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20595 20596# func_munge_path_list VARIABLE PATH 20597# ----------------------------------- 20598# VARIABLE is name of variable containing _space_ separated list of 20599# directories to be munged by the contents of PATH, which is string 20600# having a format: 20601# "DIR[:DIR]:" 20602# string "DIR[ DIR]" will be prepended to VARIABLE 20603# ":DIR[:DIR]" 20604# string "DIR[ DIR]" will be appended to VARIABLE 20605# "DIRP[:DIRP]::[DIRA:]DIRA" 20606# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20607# "DIRA[ DIRA]" will be appended to VARIABLE 20608# "DIR[:DIR]" 20609# VARIABLE will be replaced by "DIR[ DIR]" 20610func_munge_path_list () 20611{ 20612 case x$2 in 20613 x) 20614 ;; 20615 *:) 20616 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20617 ;; 20618 x:*) 20619 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20620 ;; 20621 *::*) 20622 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20623 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20624 ;; 20625 *) 20626 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20627 ;; 20628 esac 20629} 20630 20631 20632# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20633func_cc_basename () 20634{ 20635 for cc_temp in $*""; do 20636 case $cc_temp in 20637 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20638 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20639 \-*) ;; 20640 *) break;; 20641 esac 20642 done 20643 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20644} 20645 20646 20647# ### END FUNCTIONS SHARED WITH CONFIGURE 20648 20649_LT_EOF 20650 20651 case $host_os in 20652 aix3*) 20653 cat <<\_LT_EOF >> "$cfgfile" 20654# AIX sometimes has problems with the GCC collect2 program. For some 20655# reason, if we set the COLLECT_NAMES environment variable, the problems 20656# vanish in a puff of smoke. 20657if test set != "${COLLECT_NAMES+set}"; then 20658 COLLECT_NAMES= 20659 export COLLECT_NAMES 20660fi 20661_LT_EOF 20662 ;; 20663 esac 20664 20665 20666ltmain=$ac_aux_dir/ltmain.sh 20667 20668 20669 # We use sed instead of cat because bash on DJGPP gets confused if 20670 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20671 # text mode, it properly converts lines to CR/LF. This bash problem 20672 # is reportedly fixed, but why not run on old versions too? 20673 sed '$q' "$ltmain" >> "$cfgfile" \ 20674 || (rm -f "$cfgfile"; exit 1) 20675 20676 mv -f "$cfgfile" "$ofile" || 20677 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20678 chmod +x "$ofile" 20679 20680 ;; 20681 20682 esac 20683done # for ac_tag 20684 20685 20686as_fn_exit 0 20687_ACEOF 20688ac_clean_files=$ac_clean_files_save 20689 20690test $ac_write_fail = 0 || 20691 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20692 20693 20694# configure is writing to config.log, and then calls config.status. 20695# config.status does its own redirection, appending to config.log. 20696# Unfortunately, on DOS this fails, as config.log is still kept open 20697# by configure, so config.status won't be able to write to it; its 20698# output is simply discarded. So we exec the FD to /dev/null, 20699# effectively closing config.log, so it can be properly (re)opened and 20700# appended to by config.status. When coming back to configure, we 20701# need to make the FD available again. 20702if test "$no_create" != yes; then 20703 ac_cs_success=: 20704 ac_config_status_args= 20705 test "$silent" = yes && 20706 ac_config_status_args="$ac_config_status_args --quiet" 20707 exec 5>/dev/null 20708 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20709 exec 5>>config.log 20710 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20711 # would make configure fail if this is the last instruction. 20712 $ac_cs_success || as_fn_exit 1 20713fi 20714if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20716$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20717fi 20718 20719