1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xcb-util-cursor 0.1.3. 4# 5# Report bugs to <xcb@lists.freedesktop.org>. 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 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: xcb@lists.freedesktop.org about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='xcb-util-cursor' 592PACKAGE_TARNAME='xcb-util-cursor' 593PACKAGE_VERSION='0.1.3' 594PACKAGE_STRING='xcb-util-cursor 0.1.3' 595PACKAGE_BUGREPORT='xcb@lists.freedesktop.org' 596PACKAGE_URL='' 597 598ac_unique_file="Makefile.am" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639XCB_IMAGE_LIBS 640XCB_IMAGE_CFLAGS 641XCB_RENDERUTIL_LIBS 642XCB_RENDERUTIL_CFLAGS 643XCB_RENDER_LIBS 644XCB_RENDER_CFLAGS 645GPERF 646HAVE_DOXYGEN_FALSE 647HAVE_DOXYGEN_TRUE 648HAVE_DOT_FALSE 649HAVE_DOT_TRUE 650HAVE_DOT 651DOT 652DOXYGEN 653ENABLE_DEVEL_DOCS_FALSE 654ENABLE_DEVEL_DOCS_TRUE 655MAN_SUBSTS 656XORG_MAN_PAGE 657ADMIN_MAN_DIR 658DRIVER_MAN_DIR 659MISC_MAN_DIR 660FILE_MAN_DIR 661LIB_MAN_DIR 662APP_MAN_DIR 663ADMIN_MAN_SUFFIX 664DRIVER_MAN_SUFFIX 665MISC_MAN_SUFFIX 666FILE_MAN_SUFFIX 667LIB_MAN_SUFFIX 668APP_MAN_SUFFIX 669INSTALL_CMD 670CHANGELOG_CMD 671STRICT_CFLAGS 672CWARNFLAGS 673BASE_CFLAGS 674XCB_LIBS 675XCB_CFLAGS 676PKG_CONFIG_LIBDIR 677PKG_CONFIG_PATH 678PKG_CONFIG 679pkgconfigdir 680xcbincludedir 681LT_SYS_LIBRARY_PATH 682OTOOL64 683OTOOL 684LIPO 685NMEDIT 686DSYMUTIL 687MANIFEST_TOOL 688RANLIB 689ac_ct_AR 690AR 691DLLTOOL 692OBJDUMP 693LN_S 694NM 695ac_ct_DUMPBIN 696DUMPBIN 697LD 698FGREP 699SED 700host_os 701host_vendor 702host_cpu 703host 704build_os 705build_vendor 706build_cpu 707build 708LIBTOOL 709M4 710MAINT 711MAINTAINER_MODE_FALSE 712MAINTAINER_MODE_TRUE 713AM_BACKSLASH 714AM_DEFAULT_VERBOSITY 715AM_DEFAULT_V 716AM_V 717am__fastdepCC_FALSE 718am__fastdepCC_TRUE 719CCDEPMODE 720am__nodep 721AMDEPBACKSLASH 722AMDEP_FALSE 723AMDEP_TRUE 724am__quote 725am__include 726DEPDIR 727am__untar 728am__tar 729AMTAR 730am__leading_dot 731SET_MAKE 732AWK 733mkdir_p 734MKDIR_P 735INSTALL_STRIP_PROGRAM 736STRIP 737install_sh 738MAKEINFO 739AUTOHEADER 740AUTOMAKE 741AUTOCONF 742ACLOCAL 743VERSION 744PACKAGE 745CYGPATH_W 746am__isrc 747INSTALL_DATA 748INSTALL_SCRIPT 749INSTALL_PROGRAM 750EGREP 751GREP 752CPP 753OBJEXT 754EXEEXT 755ac_ct_CC 756CPPFLAGS 757LDFLAGS 758CFLAGS 759CC 760target_alias 761host_alias 762build_alias 763LIBS 764ECHO_T 765ECHO_N 766ECHO_C 767DEFS 768mandir 769localedir 770libdir 771psdir 772pdfdir 773dvidir 774htmldir 775infodir 776docdir 777oldincludedir 778includedir 779runstatedir 780localstatedir 781sharedstatedir 782sysconfdir 783datadir 784datarootdir 785libexecdir 786sbindir 787bindir 788program_transform_name 789prefix 790exec_prefix 791PACKAGE_URL 792PACKAGE_BUGREPORT 793PACKAGE_STRING 794PACKAGE_VERSION 795PACKAGE_TARNAME 796PACKAGE_NAME 797PATH_SEPARATOR 798SHELL' 799ac_subst_files='' 800ac_user_opts=' 801enable_option_checking 802enable_dependency_tracking 803enable_silent_rules 804enable_maintainer_mode 805enable_shared 806enable_static 807with_pic 808enable_fast_install 809with_aix_soname 810with_gnu_ld 811with_sysroot 812enable_libtool_lock 813enable_selective_werror 814enable_strict_compilation 815enable_devel_docs 816with_doxygen 817with_cursorpath 818' 819 ac_precious_vars='build_alias 820host_alias 821target_alias 822CC 823CFLAGS 824LDFLAGS 825LIBS 826CPPFLAGS 827CPP 828LT_SYS_LIBRARY_PATH 829PKG_CONFIG 830PKG_CONFIG_PATH 831PKG_CONFIG_LIBDIR 832XCB_CFLAGS 833XCB_LIBS 834DOXYGEN 835DOT 836XCB_RENDER_CFLAGS 837XCB_RENDER_LIBS 838XCB_RENDERUTIL_CFLAGS 839XCB_RENDERUTIL_LIBS 840XCB_IMAGE_CFLAGS 841XCB_IMAGE_LIBS' 842 843 844# Initialize some variables set by options. 845ac_init_help= 846ac_init_version=false 847ac_unrecognized_opts= 848ac_unrecognized_sep= 849# The variables have the same names as the options, with 850# dashes changed to underlines. 851cache_file=/dev/null 852exec_prefix=NONE 853no_create= 854no_recursion= 855prefix=NONE 856program_prefix=NONE 857program_suffix=NONE 858program_transform_name=s,x,x, 859silent= 860site= 861srcdir= 862verbose= 863x_includes=NONE 864x_libraries=NONE 865 866# Installation directory options. 867# These are left unexpanded so users can "make install exec_prefix=/foo" 868# and all the variables that are supposed to be based on exec_prefix 869# by default will actually change. 870# Use braces instead of parens because sh, perl, etc. also accept them. 871# (The list follows the same order as the GNU Coding Standards.) 872bindir='${exec_prefix}/bin' 873sbindir='${exec_prefix}/sbin' 874libexecdir='${exec_prefix}/libexec' 875datarootdir='${prefix}/share' 876datadir='${datarootdir}' 877sysconfdir='${prefix}/etc' 878sharedstatedir='${prefix}/com' 879localstatedir='${prefix}/var' 880runstatedir='${localstatedir}/run' 881includedir='${prefix}/include' 882oldincludedir='/usr/include' 883docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 884infodir='${datarootdir}/info' 885htmldir='${docdir}' 886dvidir='${docdir}' 887pdfdir='${docdir}' 888psdir='${docdir}' 889libdir='${exec_prefix}/lib' 890localedir='${datarootdir}/locale' 891mandir='${datarootdir}/man' 892 893ac_prev= 894ac_dashdash= 895for ac_option 896do 897 # If the previous option needs an argument, assign it. 898 if test -n "$ac_prev"; then 899 eval $ac_prev=\$ac_option 900 ac_prev= 901 continue 902 fi 903 904 case $ac_option in 905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 906 *=) ac_optarg= ;; 907 *) ac_optarg=yes ;; 908 esac 909 910 # Accept the important Cygnus configure options, so we can diagnose typos. 911 912 case $ac_dashdash$ac_option in 913 --) 914 ac_dashdash=yes ;; 915 916 -bindir | --bindir | --bindi | --bind | --bin | --bi) 917 ac_prev=bindir ;; 918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 919 bindir=$ac_optarg ;; 920 921 -build | --build | --buil | --bui | --bu) 922 ac_prev=build_alias ;; 923 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 924 build_alias=$ac_optarg ;; 925 926 -cache-file | --cache-file | --cache-fil | --cache-fi \ 927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 928 ac_prev=cache_file ;; 929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 931 cache_file=$ac_optarg ;; 932 933 --config-cache | -C) 934 cache_file=config.cache ;; 935 936 -datadir | --datadir | --datadi | --datad) 937 ac_prev=datadir ;; 938 -datadir=* | --datadir=* | --datadi=* | --datad=*) 939 datadir=$ac_optarg ;; 940 941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 942 | --dataroo | --dataro | --datar) 943 ac_prev=datarootdir ;; 944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 946 datarootdir=$ac_optarg ;; 947 948 -disable-* | --disable-*) 949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 950 # Reject names that are not valid shell variable names. 951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 952 as_fn_error $? "invalid feature name: $ac_useropt" 953 ac_useropt_orig=$ac_useropt 954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 955 case $ac_user_opts in 956 *" 957"enable_$ac_useropt" 958"*) ;; 959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 960 ac_unrecognized_sep=', ';; 961 esac 962 eval enable_$ac_useropt=no ;; 963 964 -docdir | --docdir | --docdi | --doc | --do) 965 ac_prev=docdir ;; 966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 967 docdir=$ac_optarg ;; 968 969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 970 ac_prev=dvidir ;; 971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 972 dvidir=$ac_optarg ;; 973 974 -enable-* | --enable-*) 975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 976 # Reject names that are not valid shell variable names. 977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 978 as_fn_error $? "invalid feature name: $ac_useropt" 979 ac_useropt_orig=$ac_useropt 980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 981 case $ac_user_opts in 982 *" 983"enable_$ac_useropt" 984"*) ;; 985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 986 ac_unrecognized_sep=', ';; 987 esac 988 eval enable_$ac_useropt=\$ac_optarg ;; 989 990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 992 | --exec | --exe | --ex) 993 ac_prev=exec_prefix ;; 994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 996 | --exec=* | --exe=* | --ex=*) 997 exec_prefix=$ac_optarg ;; 998 999 -gas | --gas | --ga | --g) 1000 # Obsolete; use --with-gas. 1001 with_gas=yes ;; 1002 1003 -help | --help | --hel | --he | -h) 1004 ac_init_help=long ;; 1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1006 ac_init_help=recursive ;; 1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1008 ac_init_help=short ;; 1009 1010 -host | --host | --hos | --ho) 1011 ac_prev=host_alias ;; 1012 -host=* | --host=* | --hos=* | --ho=*) 1013 host_alias=$ac_optarg ;; 1014 1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1016 ac_prev=htmldir ;; 1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1018 | --ht=*) 1019 htmldir=$ac_optarg ;; 1020 1021 -includedir | --includedir | --includedi | --included | --include \ 1022 | --includ | --inclu | --incl | --inc) 1023 ac_prev=includedir ;; 1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1025 | --includ=* | --inclu=* | --incl=* | --inc=*) 1026 includedir=$ac_optarg ;; 1027 1028 -infodir | --infodir | --infodi | --infod | --info | --inf) 1029 ac_prev=infodir ;; 1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1031 infodir=$ac_optarg ;; 1032 1033 -libdir | --libdir | --libdi | --libd) 1034 ac_prev=libdir ;; 1035 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1036 libdir=$ac_optarg ;; 1037 1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1039 | --libexe | --libex | --libe) 1040 ac_prev=libexecdir ;; 1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1042 | --libexe=* | --libex=* | --libe=*) 1043 libexecdir=$ac_optarg ;; 1044 1045 -localedir | --localedir | --localedi | --localed | --locale) 1046 ac_prev=localedir ;; 1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1048 localedir=$ac_optarg ;; 1049 1050 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1051 | --localstate | --localstat | --localsta | --localst | --locals) 1052 ac_prev=localstatedir ;; 1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1055 localstatedir=$ac_optarg ;; 1056 1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1058 ac_prev=mandir ;; 1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1060 mandir=$ac_optarg ;; 1061 1062 -nfp | --nfp | --nf) 1063 # Obsolete; use --without-fp. 1064 with_fp=no ;; 1065 1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1067 | --no-cr | --no-c | -n) 1068 no_create=yes ;; 1069 1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1072 no_recursion=yes ;; 1073 1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1076 | --oldin | --oldi | --old | --ol | --o) 1077 ac_prev=oldincludedir ;; 1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1081 oldincludedir=$ac_optarg ;; 1082 1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1084 ac_prev=prefix ;; 1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1086 prefix=$ac_optarg ;; 1087 1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1089 | --program-pre | --program-pr | --program-p) 1090 ac_prev=program_prefix ;; 1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1093 program_prefix=$ac_optarg ;; 1094 1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1096 | --program-suf | --program-su | --program-s) 1097 ac_prev=program_suffix ;; 1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1100 program_suffix=$ac_optarg ;; 1101 1102 -program-transform-name | --program-transform-name \ 1103 | --program-transform-nam | --program-transform-na \ 1104 | --program-transform-n | --program-transform- \ 1105 | --program-transform | --program-transfor \ 1106 | --program-transfo | --program-transf \ 1107 | --program-trans | --program-tran \ 1108 | --progr-tra | --program-tr | --program-t) 1109 ac_prev=program_transform_name ;; 1110 -program-transform-name=* | --program-transform-name=* \ 1111 | --program-transform-nam=* | --program-transform-na=* \ 1112 | --program-transform-n=* | --program-transform-=* \ 1113 | --program-transform=* | --program-transfor=* \ 1114 | --program-transfo=* | --program-transf=* \ 1115 | --program-trans=* | --program-tran=* \ 1116 | --progr-tra=* | --program-tr=* | --program-t=*) 1117 program_transform_name=$ac_optarg ;; 1118 1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1120 ac_prev=pdfdir ;; 1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1122 pdfdir=$ac_optarg ;; 1123 1124 -psdir | --psdir | --psdi | --psd | --ps) 1125 ac_prev=psdir ;; 1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1127 psdir=$ac_optarg ;; 1128 1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1130 | -silent | --silent | --silen | --sile | --sil) 1131 silent=yes ;; 1132 1133 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1134 | --runstate | --runstat | --runsta | --runst | --runs \ 1135 | --run | --ru | --r) 1136 ac_prev=runstatedir ;; 1137 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1138 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1139 | --run=* | --ru=* | --r=*) 1140 runstatedir=$ac_optarg ;; 1141 1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1143 ac_prev=sbindir ;; 1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1145 | --sbi=* | --sb=*) 1146 sbindir=$ac_optarg ;; 1147 1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1150 | --sharedst | --shareds | --shared | --share | --shar \ 1151 | --sha | --sh) 1152 ac_prev=sharedstatedir ;; 1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1156 | --sha=* | --sh=*) 1157 sharedstatedir=$ac_optarg ;; 1158 1159 -site | --site | --sit) 1160 ac_prev=site ;; 1161 -site=* | --site=* | --sit=*) 1162 site=$ac_optarg ;; 1163 1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1165 ac_prev=srcdir ;; 1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1167 srcdir=$ac_optarg ;; 1168 1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1170 | --syscon | --sysco | --sysc | --sys | --sy) 1171 ac_prev=sysconfdir ;; 1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1174 sysconfdir=$ac_optarg ;; 1175 1176 -target | --target | --targe | --targ | --tar | --ta | --t) 1177 ac_prev=target_alias ;; 1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1179 target_alias=$ac_optarg ;; 1180 1181 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1182 verbose=yes ;; 1183 1184 -version | --version | --versio | --versi | --vers | -V) 1185 ac_init_version=: ;; 1186 1187 -with-* | --with-*) 1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1189 # Reject names that are not valid shell variable names. 1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1191 as_fn_error $? "invalid package name: $ac_useropt" 1192 ac_useropt_orig=$ac_useropt 1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1194 case $ac_user_opts in 1195 *" 1196"with_$ac_useropt" 1197"*) ;; 1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1199 ac_unrecognized_sep=', ';; 1200 esac 1201 eval with_$ac_useropt=\$ac_optarg ;; 1202 1203 -without-* | --without-*) 1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1205 # Reject names that are not valid shell variable names. 1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1207 as_fn_error $? "invalid package name: $ac_useropt" 1208 ac_useropt_orig=$ac_useropt 1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1210 case $ac_user_opts in 1211 *" 1212"with_$ac_useropt" 1213"*) ;; 1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1215 ac_unrecognized_sep=', ';; 1216 esac 1217 eval with_$ac_useropt=no ;; 1218 1219 --x) 1220 # Obsolete; use --with-x. 1221 with_x=yes ;; 1222 1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1224 | --x-incl | --x-inc | --x-in | --x-i) 1225 ac_prev=x_includes ;; 1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1228 x_includes=$ac_optarg ;; 1229 1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1232 ac_prev=x_libraries ;; 1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1235 x_libraries=$ac_optarg ;; 1236 1237 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1238Try \`$0 --help' for more information" 1239 ;; 1240 1241 *=*) 1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1243 # Reject names that are not valid shell variable names. 1244 case $ac_envvar in #( 1245 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1247 esac 1248 eval $ac_envvar=\$ac_optarg 1249 export $ac_envvar ;; 1250 1251 *) 1252 # FIXME: should be removed in autoconf 3.0. 1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1257 ;; 1258 1259 esac 1260done 1261 1262if test -n "$ac_prev"; then 1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1264 as_fn_error $? "missing argument to $ac_option" 1265fi 1266 1267if test -n "$ac_unrecognized_opts"; then 1268 case $enable_option_checking in 1269 no) ;; 1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1272 esac 1273fi 1274 1275# Check all directory arguments for consistency. 1276for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1277 datadir sysconfdir sharedstatedir localstatedir includedir \ 1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1279 libdir localedir mandir runstatedir 1280do 1281 eval ac_val=\$$ac_var 1282 # Remove trailing slashes. 1283 case $ac_val in 1284 */ ) 1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1286 eval $ac_var=\$ac_val;; 1287 esac 1288 # Be sure to have absolute directory names. 1289 case $ac_val in 1290 [\\/$]* | ?:[\\/]* ) continue;; 1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1292 esac 1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1294done 1295 1296# There might be people who depend on the old broken behavior: `$host' 1297# used to hold the argument of --host etc. 1298# FIXME: To remove some day. 1299build=$build_alias 1300host=$host_alias 1301target=$target_alias 1302 1303# FIXME: To remove some day. 1304if test "x$host_alias" != x; then 1305 if test "x$build_alias" = x; then 1306 cross_compiling=maybe 1307 elif test "x$build_alias" != "x$host_alias"; then 1308 cross_compiling=yes 1309 fi 1310fi 1311 1312ac_tool_prefix= 1313test -n "$host_alias" && ac_tool_prefix=$host_alias- 1314 1315test "$silent" = yes && exec 6>/dev/null 1316 1317 1318ac_pwd=`pwd` && test -n "$ac_pwd" && 1319ac_ls_di=`ls -di .` && 1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1321 as_fn_error $? "working directory cannot be determined" 1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1323 as_fn_error $? "pwd does not report name of working directory" 1324 1325 1326# Find the source files, if location was not specified. 1327if test -z "$srcdir"; then 1328 ac_srcdir_defaulted=yes 1329 # Try the directory containing this script, then the parent directory. 1330 ac_confdir=`$as_dirname -- "$as_myself" || 1331$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1332 X"$as_myself" : 'X\(//\)[^/]' \| \ 1333 X"$as_myself" : 'X\(//\)$' \| \ 1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1335$as_echo X"$as_myself" | 1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1337 s//\1/ 1338 q 1339 } 1340 /^X\(\/\/\)[^/].*/{ 1341 s//\1/ 1342 q 1343 } 1344 /^X\(\/\/\)$/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\).*/{ 1349 s//\1/ 1350 q 1351 } 1352 s/.*/./; q'` 1353 srcdir=$ac_confdir 1354 if test ! -r "$srcdir/$ac_unique_file"; then 1355 srcdir=.. 1356 fi 1357else 1358 ac_srcdir_defaulted=no 1359fi 1360if test ! -r "$srcdir/$ac_unique_file"; then 1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1363fi 1364ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1365ac_abs_confdir=`( 1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1367 pwd)` 1368# When building in place, set srcdir=. 1369if test "$ac_abs_confdir" = "$ac_pwd"; then 1370 srcdir=. 1371fi 1372# Remove unnecessary trailing slashes from srcdir. 1373# Double slashes in file names in object file debugging info 1374# mess up M-x gdb in Emacs. 1375case $srcdir in 1376*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1377esac 1378for ac_var in $ac_precious_vars; do 1379 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1380 eval ac_env_${ac_var}_value=\$${ac_var} 1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1382 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1383done 1384 1385# 1386# Report the --help message. 1387# 1388if test "$ac_init_help" = "long"; then 1389 # Omit some internal or obsolete options to make the list less imposing. 1390 # This message is too long to be a string in the A/UX 3.1 sh. 1391 cat <<_ACEOF 1392\`configure' configures xcb-util-cursor 0.1.3 to adapt to many kinds of systems. 1393 1394Usage: $0 [OPTION]... [VAR=VALUE]... 1395 1396To assign environment variables (e.g., CC, CFLAGS...), specify them as 1397VAR=VALUE. See below for descriptions of some of the useful variables. 1398 1399Defaults for the options are specified in brackets. 1400 1401Configuration: 1402 -h, --help display this help and exit 1403 --help=short display options specific to this package 1404 --help=recursive display the short help of all the included packages 1405 -V, --version display version information and exit 1406 -q, --quiet, --silent do not print \`checking ...' messages 1407 --cache-file=FILE cache test results in FILE [disabled] 1408 -C, --config-cache alias for \`--cache-file=config.cache' 1409 -n, --no-create do not create output files 1410 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1411 1412Installation directories: 1413 --prefix=PREFIX install architecture-independent files in PREFIX 1414 [$ac_default_prefix] 1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1416 [PREFIX] 1417 1418By default, \`make install' will install all the files in 1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1420an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1421for instance \`--prefix=\$HOME'. 1422 1423For better control, use the options below. 1424 1425Fine tuning of the installation directories: 1426 --bindir=DIR user executables [EPREFIX/bin] 1427 --sbindir=DIR system admin executables [EPREFIX/sbin] 1428 --libexecdir=DIR program executables [EPREFIX/libexec] 1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1432 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1433 --libdir=DIR object code libraries [EPREFIX/lib] 1434 --includedir=DIR C header files [PREFIX/include] 1435 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1438 --infodir=DIR info documentation [DATAROOTDIR/info] 1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1440 --mandir=DIR man documentation [DATAROOTDIR/man] 1441 --docdir=DIR documentation root [DATAROOTDIR/doc/xcb-util-cursor] 1442 --htmldir=DIR html documentation [DOCDIR] 1443 --dvidir=DIR dvi documentation [DOCDIR] 1444 --pdfdir=DIR pdf documentation [DOCDIR] 1445 --psdir=DIR ps documentation [DOCDIR] 1446_ACEOF 1447 1448 cat <<\_ACEOF 1449 1450Program names: 1451 --program-prefix=PREFIX prepend PREFIX to installed program names 1452 --program-suffix=SUFFIX append SUFFIX to installed program names 1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1454 1455System types: 1456 --build=BUILD configure for building on BUILD [guessed] 1457 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1458_ACEOF 1459fi 1460 1461if test -n "$ac_init_help"; then 1462 case $ac_init_help in 1463 short | recursive ) echo "Configuration of xcb-util-cursor 0.1.3:";; 1464 esac 1465 cat <<\_ACEOF 1466 1467Optional Features: 1468 --disable-option-checking ignore unrecognized --enable/--with options 1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1471 --enable-dependency-tracking 1472 do not reject slow dependency extractors 1473 --disable-dependency-tracking 1474 speeds up one-time build 1475 --enable-silent-rules less verbose build output (undo: "make V=1") 1476 --disable-silent-rules verbose build output (undo: "make V=0") 1477 --enable-maintainer-mode 1478 enable make rules and dependencies not useful (and 1479 sometimes confusing) to the casual installer 1480 --enable-shared[=PKGS] build shared libraries [default=yes] 1481 --enable-static[=PKGS] build static libraries [default=yes] 1482 --enable-fast-install[=PKGS] 1483 optimize for fast installation [default=yes] 1484 --disable-libtool-lock avoid locking (might break parallel builds) 1485 --disable-selective-werror 1486 Turn off selective compiler errors. (default: 1487 enabled) 1488 --enable-strict-compilation 1489 Enable all warnings from compiler and make them 1490 errors (default: disabled) 1491 --enable-devel-docs Enable building the developer documentation 1492 (default: yes) 1493 1494Optional Packages: 1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1498 both] 1499 --with-aix-soname=aix|svr4|both 1500 shared library versioning (aka "SONAME") variant to 1501 provide on AIX, [default=aix]. 1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1503 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1504 compiler's sysroot if not specified). 1505 --with-doxygen Use doxygen to regenerate documentation (default: 1506 auto) 1507 --with-cursorpath=<paths> 1508 Set default search path for cursors 1509 1510Some influential environment variables: 1511 CC C compiler command 1512 CFLAGS C compiler flags 1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1514 nonstandard directory <lib dir> 1515 LIBS libraries to pass to the linker, e.g. -l<library> 1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1517 you have headers in a nonstandard directory <include dir> 1518 CPP C preprocessor 1519 LT_SYS_LIBRARY_PATH 1520 User-defined run-time library search path. 1521 PKG_CONFIG path to pkg-config utility 1522 PKG_CONFIG_PATH 1523 directories to add to pkg-config's search path 1524 PKG_CONFIG_LIBDIR 1525 path overriding pkg-config's built-in search path 1526 XCB_CFLAGS C compiler flags for XCB, overriding pkg-config 1527 XCB_LIBS linker flags for XCB, overriding pkg-config 1528 DOXYGEN Path to doxygen command 1529 DOT Path to the dot graphics utility 1530 XCB_RENDER_CFLAGS 1531 C compiler flags for XCB_RENDER, overriding pkg-config 1532 XCB_RENDER_LIBS 1533 linker flags for XCB_RENDER, overriding pkg-config 1534 XCB_RENDERUTIL_CFLAGS 1535 C compiler flags for XCB_RENDERUTIL, overriding pkg-config 1536 XCB_RENDERUTIL_LIBS 1537 linker flags for XCB_RENDERUTIL, overriding pkg-config 1538 XCB_IMAGE_CFLAGS 1539 C compiler flags for XCB_IMAGE, overriding pkg-config 1540 XCB_IMAGE_LIBS 1541 linker flags for XCB_IMAGE, overriding pkg-config 1542 1543Use these variables to override the choices made by `configure' or to help 1544it to find libraries and programs with nonstandard names/locations. 1545 1546Report bugs to <xcb@lists.freedesktop.org>. 1547_ACEOF 1548ac_status=$? 1549fi 1550 1551if test "$ac_init_help" = "recursive"; then 1552 # If there are subdirs, report their specific --help. 1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1554 test -d "$ac_dir" || 1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1556 continue 1557 ac_builddir=. 1558 1559case "$ac_dir" in 1560.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1561*) 1562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1563 # A ".." for each directory in $ac_dir_suffix. 1564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1565 case $ac_top_builddir_sub in 1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1568 esac ;; 1569esac 1570ac_abs_top_builddir=$ac_pwd 1571ac_abs_builddir=$ac_pwd$ac_dir_suffix 1572# for backward compatibility: 1573ac_top_builddir=$ac_top_build_prefix 1574 1575case $srcdir in 1576 .) # We are building in place. 1577 ac_srcdir=. 1578 ac_top_srcdir=$ac_top_builddir_sub 1579 ac_abs_top_srcdir=$ac_pwd ;; 1580 [\\/]* | ?:[\\/]* ) # Absolute name. 1581 ac_srcdir=$srcdir$ac_dir_suffix; 1582 ac_top_srcdir=$srcdir 1583 ac_abs_top_srcdir=$srcdir ;; 1584 *) # Relative name. 1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1586 ac_top_srcdir=$ac_top_build_prefix$srcdir 1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1588esac 1589ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1590 1591 cd "$ac_dir" || { ac_status=$?; continue; } 1592 # Check for guested configure. 1593 if test -f "$ac_srcdir/configure.gnu"; then 1594 echo && 1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1596 elif test -f "$ac_srcdir/configure"; then 1597 echo && 1598 $SHELL "$ac_srcdir/configure" --help=recursive 1599 else 1600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1601 fi || ac_status=$? 1602 cd "$ac_pwd" || { ac_status=$?; break; } 1603 done 1604fi 1605 1606test -n "$ac_init_help" && exit $ac_status 1607if $ac_init_version; then 1608 cat <<\_ACEOF 1609xcb-util-cursor configure 0.1.3 1610generated by GNU Autoconf 2.69 1611 1612Copyright (C) 2012 Free Software Foundation, Inc. 1613This configure script is free software; the Free Software Foundation 1614gives unlimited permission to copy, distribute and modify it. 1615_ACEOF 1616 exit 1617fi 1618 1619## ------------------------ ## 1620## Autoconf initialization. ## 1621## ------------------------ ## 1622 1623# ac_fn_c_try_compile LINENO 1624# -------------------------- 1625# Try to compile conftest.$ac_ext, and return whether this succeeded. 1626ac_fn_c_try_compile () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 rm -f conftest.$ac_objext 1630 if { { ac_try="$ac_compile" 1631case "(($ac_try" in 1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1633 *) ac_try_echo=$ac_try;; 1634esac 1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1636$as_echo "$ac_try_echo"; } >&5 1637 (eval "$ac_compile") 2>conftest.err 1638 ac_status=$? 1639 if test -s conftest.err; then 1640 grep -v '^ *+' conftest.err >conftest.er1 1641 cat conftest.er1 >&5 1642 mv -f conftest.er1 conftest.err 1643 fi 1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; } && { 1646 test -z "$ac_c_werror_flag" || 1647 test ! -s conftest.err 1648 } && test -s conftest.$ac_objext; then : 1649 ac_retval=0 1650else 1651 $as_echo "$as_me: failed program was:" >&5 1652sed 's/^/| /' conftest.$ac_ext >&5 1653 1654 ac_retval=1 1655fi 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 as_fn_set_status $ac_retval 1658 1659} # ac_fn_c_try_compile 1660 1661# ac_fn_c_try_cpp LINENO 1662# ---------------------- 1663# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1664ac_fn_c_try_cpp () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 if { { ac_try="$ac_cpp conftest.$ac_ext" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673$as_echo "$ac_try_echo"; } >&5 1674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } > conftest.i && { 1683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 }; then : 1686 ac_retval=0 1687else 1688 $as_echo "$as_me: failed program was:" >&5 1689sed 's/^/| /' conftest.$ac_ext >&5 1690 1691 ac_retval=1 1692fi 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 as_fn_set_status $ac_retval 1695 1696} # ac_fn_c_try_cpp 1697 1698# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1699# ------------------------------------------------------- 1700# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1701# the include files in INCLUDES and setting the cache variable VAR 1702# accordingly. 1703ac_fn_c_check_header_mongrel () 1704{ 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 if eval \${$3+:} false; then : 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1708$as_echo_n "checking for $2... " >&6; } 1709if eval \${$3+:} false; then : 1710 $as_echo_n "(cached) " >&6 1711fi 1712eval ac_res=\$$3 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1714$as_echo "$ac_res" >&6; } 1715else 1716 # Is the header compilable? 1717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1718$as_echo_n "checking $2 usability... " >&6; } 1719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1720/* end confdefs.h. */ 1721$4 1722#include <$2> 1723_ACEOF 1724if ac_fn_c_try_compile "$LINENO"; then : 1725 ac_header_compiler=yes 1726else 1727 ac_header_compiler=no 1728fi 1729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1731$as_echo "$ac_header_compiler" >&6; } 1732 1733# Is the header present? 1734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1735$as_echo_n "checking $2 presence... " >&6; } 1736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1737/* end confdefs.h. */ 1738#include <$2> 1739_ACEOF 1740if ac_fn_c_try_cpp "$LINENO"; then : 1741 ac_header_preproc=yes 1742else 1743 ac_header_preproc=no 1744fi 1745rm -f conftest.err conftest.i conftest.$ac_ext 1746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1747$as_echo "$ac_header_preproc" >&6; } 1748 1749# So? What about this header? 1750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1751 yes:no: ) 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1753$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1755$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1756 ;; 1757 no:yes:* ) 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1759$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1761$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1763$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1765$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1767$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1768( $as_echo "## ---------------------------------------- ## 1769## Report this to xcb@lists.freedesktop.org ## 1770## ---------------------------------------- ##" 1771 ) | sed "s/^/$as_me: WARNING: /" >&2 1772 ;; 1773esac 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1775$as_echo_n "checking for $2... " >&6; } 1776if eval \${$3+:} false; then : 1777 $as_echo_n "(cached) " >&6 1778else 1779 eval "$3=\$ac_header_compiler" 1780fi 1781eval ac_res=\$$3 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1783$as_echo "$ac_res" >&6; } 1784fi 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 1787} # ac_fn_c_check_header_mongrel 1788 1789# ac_fn_c_try_run LINENO 1790# ---------------------- 1791# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1792# that executables *can* be run. 1793ac_fn_c_try_run () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 if { { ac_try="$ac_link" 1797case "(($ac_try" in 1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1799 *) ac_try_echo=$ac_try;; 1800esac 1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1802$as_echo "$ac_try_echo"; } >&5 1803 (eval "$ac_link") 2>&5 1804 ac_status=$? 1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1806 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1807 { { case "(($ac_try" in 1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1809 *) ac_try_echo=$ac_try;; 1810esac 1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1812$as_echo "$ac_try_echo"; } >&5 1813 (eval "$ac_try") 2>&5 1814 ac_status=$? 1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1816 test $ac_status = 0; }; }; then : 1817 ac_retval=0 1818else 1819 $as_echo "$as_me: program exited with status $ac_status" >&5 1820 $as_echo "$as_me: failed program was:" >&5 1821sed 's/^/| /' conftest.$ac_ext >&5 1822 1823 ac_retval=$ac_status 1824fi 1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 as_fn_set_status $ac_retval 1828 1829} # ac_fn_c_try_run 1830 1831# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1832# ------------------------------------------------------- 1833# Tests whether HEADER exists and can be compiled using the include files in 1834# INCLUDES, setting the cache variable VAR accordingly. 1835ac_fn_c_check_header_compile () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1839$as_echo_n "checking for $2... " >&6; } 1840if eval \${$3+:} false; then : 1841 $as_echo_n "(cached) " >&6 1842else 1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844/* end confdefs.h. */ 1845$4 1846#include <$2> 1847_ACEOF 1848if ac_fn_c_try_compile "$LINENO"; then : 1849 eval "$3=yes" 1850else 1851 eval "$3=no" 1852fi 1853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1854fi 1855eval ac_res=\$$3 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1857$as_echo "$ac_res" >&6; } 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 1860} # ac_fn_c_check_header_compile 1861 1862# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1863# ------------------------------------------- 1864# Tests whether TYPE exists after having included INCLUDES, setting cache 1865# variable VAR accordingly. 1866ac_fn_c_check_type () 1867{ 1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1870$as_echo_n "checking for $2... " >&6; } 1871if eval \${$3+:} false; then : 1872 $as_echo_n "(cached) " >&6 1873else 1874 eval "$3=no" 1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1876/* end confdefs.h. */ 1877$4 1878int 1879main () 1880{ 1881if (sizeof ($2)) 1882 return 0; 1883 ; 1884 return 0; 1885} 1886_ACEOF 1887if ac_fn_c_try_compile "$LINENO"; then : 1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1889/* end confdefs.h. */ 1890$4 1891int 1892main () 1893{ 1894if (sizeof (($2))) 1895 return 0; 1896 ; 1897 return 0; 1898} 1899_ACEOF 1900if ac_fn_c_try_compile "$LINENO"; then : 1901 1902else 1903 eval "$3=yes" 1904fi 1905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1906fi 1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1908fi 1909eval ac_res=\$$3 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1911$as_echo "$ac_res" >&6; } 1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1913 1914} # ac_fn_c_check_type 1915 1916# ac_fn_c_try_link LINENO 1917# ----------------------- 1918# Try to link conftest.$ac_ext, and return whether this succeeded. 1919ac_fn_c_try_link () 1920{ 1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1922 rm -f conftest.$ac_objext conftest$ac_exeext 1923 if { { ac_try="$ac_link" 1924case "(($ac_try" in 1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1926 *) ac_try_echo=$ac_try;; 1927esac 1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1929$as_echo "$ac_try_echo"; } >&5 1930 (eval "$ac_link") 2>conftest.err 1931 ac_status=$? 1932 if test -s conftest.err; then 1933 grep -v '^ *+' conftest.err >conftest.er1 1934 cat conftest.er1 >&5 1935 mv -f conftest.er1 conftest.err 1936 fi 1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1938 test $ac_status = 0; } && { 1939 test -z "$ac_c_werror_flag" || 1940 test ! -s conftest.err 1941 } && test -s conftest$ac_exeext && { 1942 test "$cross_compiling" = yes || 1943 test -x conftest$ac_exeext 1944 }; then : 1945 ac_retval=0 1946else 1947 $as_echo "$as_me: failed program was:" >&5 1948sed 's/^/| /' conftest.$ac_ext >&5 1949 1950 ac_retval=1 1951fi 1952 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1953 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1954 # interfere with the next link command; also delete a directory that is 1955 # left behind by Apple's compiler. We do this before executing the actions. 1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1958 as_fn_set_status $ac_retval 1959 1960} # ac_fn_c_try_link 1961 1962# ac_fn_c_check_func LINENO FUNC VAR 1963# ---------------------------------- 1964# Tests whether FUNC exists, setting the cache variable VAR accordingly 1965ac_fn_c_check_func () 1966{ 1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1969$as_echo_n "checking for $2... " >&6; } 1970if eval \${$3+:} false; then : 1971 $as_echo_n "(cached) " >&6 1972else 1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1974/* end confdefs.h. */ 1975/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1976 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1977#define $2 innocuous_$2 1978 1979/* System header to define __stub macros and hopefully few prototypes, 1980 which can conflict with char $2 (); below. 1981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1982 <limits.h> exists even on freestanding compilers. */ 1983 1984#ifdef __STDC__ 1985# include <limits.h> 1986#else 1987# include <assert.h> 1988#endif 1989 1990#undef $2 1991 1992/* Override any GCC internal prototype to avoid an error. 1993 Use char because int might match the return type of a GCC 1994 builtin and then its argument prototype would still apply. */ 1995#ifdef __cplusplus 1996extern "C" 1997#endif 1998char $2 (); 1999/* The GNU C library defines this for functions which it implements 2000 to always fail with ENOSYS. Some functions are actually named 2001 something starting with __ and the normal name is an alias. */ 2002#if defined __stub_$2 || defined __stub___$2 2003choke me 2004#endif 2005 2006int 2007main () 2008{ 2009return $2 (); 2010 ; 2011 return 0; 2012} 2013_ACEOF 2014if ac_fn_c_try_link "$LINENO"; then : 2015 eval "$3=yes" 2016else 2017 eval "$3=no" 2018fi 2019rm -f core conftest.err conftest.$ac_objext \ 2020 conftest$ac_exeext conftest.$ac_ext 2021fi 2022eval ac_res=\$$3 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2024$as_echo "$ac_res" >&6; } 2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2026 2027} # ac_fn_c_check_func 2028 2029# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2030# --------------------------------------------- 2031# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2032# accordingly. 2033ac_fn_c_check_decl () 2034{ 2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2036 as_decl_name=`echo $2|sed 's/ *(.*//'` 2037 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2039$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2040if eval \${$3+:} false; then : 2041 $as_echo_n "(cached) " >&6 2042else 2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2044/* end confdefs.h. */ 2045$4 2046int 2047main () 2048{ 2049#ifndef $as_decl_name 2050#ifdef __cplusplus 2051 (void) $as_decl_use; 2052#else 2053 (void) $as_decl_name; 2054#endif 2055#endif 2056 2057 ; 2058 return 0; 2059} 2060_ACEOF 2061if ac_fn_c_try_compile "$LINENO"; then : 2062 eval "$3=yes" 2063else 2064 eval "$3=no" 2065fi 2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2067fi 2068eval ac_res=\$$3 2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2070$as_echo "$ac_res" >&6; } 2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2072 2073} # ac_fn_c_check_decl 2074cat >config.log <<_ACEOF 2075This file contains any messages produced by compilers while 2076running configure, to aid debugging if configure makes a mistake. 2077 2078It was created by xcb-util-cursor $as_me 0.1.3, which was 2079generated by GNU Autoconf 2.69. Invocation command line was 2080 2081 $ $0 $@ 2082 2083_ACEOF 2084exec 5>>config.log 2085{ 2086cat <<_ASUNAME 2087## --------- ## 2088## Platform. ## 2089## --------- ## 2090 2091hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2092uname -m = `(uname -m) 2>/dev/null || echo unknown` 2093uname -r = `(uname -r) 2>/dev/null || echo unknown` 2094uname -s = `(uname -s) 2>/dev/null || echo unknown` 2095uname -v = `(uname -v) 2>/dev/null || echo unknown` 2096 2097/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2098/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2099 2100/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2101/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2102/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2103/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2104/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2105/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2106/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2107 2108_ASUNAME 2109 2110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2111for as_dir in $PATH 2112do 2113 IFS=$as_save_IFS 2114 test -z "$as_dir" && as_dir=. 2115 $as_echo "PATH: $as_dir" 2116 done 2117IFS=$as_save_IFS 2118 2119} >&5 2120 2121cat >&5 <<_ACEOF 2122 2123 2124## ----------- ## 2125## Core tests. ## 2126## ----------- ## 2127 2128_ACEOF 2129 2130 2131# Keep a trace of the command line. 2132# Strip out --no-create and --no-recursion so they do not pile up. 2133# Strip out --silent because we don't want to record it for future runs. 2134# Also quote any args containing shell meta-characters. 2135# Make two passes to allow for proper duplicate-argument suppression. 2136ac_configure_args= 2137ac_configure_args0= 2138ac_configure_args1= 2139ac_must_keep_next=false 2140for ac_pass in 1 2 2141do 2142 for ac_arg 2143 do 2144 case $ac_arg in 2145 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2147 | -silent | --silent | --silen | --sile | --sil) 2148 continue ;; 2149 *\'*) 2150 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2151 esac 2152 case $ac_pass in 2153 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2154 2) 2155 as_fn_append ac_configure_args1 " '$ac_arg'" 2156 if test $ac_must_keep_next = true; then 2157 ac_must_keep_next=false # Got value, back to normal. 2158 else 2159 case $ac_arg in 2160 *=* | --config-cache | -C | -disable-* | --disable-* \ 2161 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2162 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2163 | -with-* | --with-* | -without-* | --without-* | --x) 2164 case "$ac_configure_args0 " in 2165 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2166 esac 2167 ;; 2168 -* ) ac_must_keep_next=true ;; 2169 esac 2170 fi 2171 as_fn_append ac_configure_args " '$ac_arg'" 2172 ;; 2173 esac 2174 done 2175done 2176{ ac_configure_args0=; unset ac_configure_args0;} 2177{ ac_configure_args1=; unset ac_configure_args1;} 2178 2179# When interrupted or exit'd, cleanup temporary files, and complete 2180# config.log. We remove comments because anyway the quotes in there 2181# would cause problems or look ugly. 2182# WARNING: Use '\'' to represent an apostrophe within the trap. 2183# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2184trap 'exit_status=$? 2185 # Save into config.log some information that might help in debugging. 2186 { 2187 echo 2188 2189 $as_echo "## ---------------- ## 2190## Cache variables. ## 2191## ---------------- ##" 2192 echo 2193 # The following way of writing the cache mishandles newlines in values, 2194( 2195 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2196 eval ac_val=\$$ac_var 2197 case $ac_val in #( 2198 *${as_nl}*) 2199 case $ac_var in #( 2200 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2201$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2202 esac 2203 case $ac_var in #( 2204 _ | IFS | as_nl) ;; #( 2205 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2206 *) { eval $ac_var=; unset $ac_var;} ;; 2207 esac ;; 2208 esac 2209 done 2210 (set) 2>&1 | 2211 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2212 *${as_nl}ac_space=\ *) 2213 sed -n \ 2214 "s/'\''/'\''\\\\'\'''\''/g; 2215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2216 ;; #( 2217 *) 2218 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2219 ;; 2220 esac | 2221 sort 2222) 2223 echo 2224 2225 $as_echo "## ----------------- ## 2226## Output variables. ## 2227## ----------------- ##" 2228 echo 2229 for ac_var in $ac_subst_vars 2230 do 2231 eval ac_val=\$$ac_var 2232 case $ac_val in 2233 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2234 esac 2235 $as_echo "$ac_var='\''$ac_val'\''" 2236 done | sort 2237 echo 2238 2239 if test -n "$ac_subst_files"; then 2240 $as_echo "## ------------------- ## 2241## File substitutions. ## 2242## ------------------- ##" 2243 echo 2244 for ac_var in $ac_subst_files 2245 do 2246 eval ac_val=\$$ac_var 2247 case $ac_val in 2248 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2249 esac 2250 $as_echo "$ac_var='\''$ac_val'\''" 2251 done | sort 2252 echo 2253 fi 2254 2255 if test -s confdefs.h; then 2256 $as_echo "## ----------- ## 2257## confdefs.h. ## 2258## ----------- ##" 2259 echo 2260 cat confdefs.h 2261 echo 2262 fi 2263 test "$ac_signal" != 0 && 2264 $as_echo "$as_me: caught signal $ac_signal" 2265 $as_echo "$as_me: exit $exit_status" 2266 } >&5 2267 rm -f core *.core core.conftest.* && 2268 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2269 exit $exit_status 2270' 0 2271for ac_signal in 1 2 13 15; do 2272 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2273done 2274ac_signal=0 2275 2276# confdefs.h avoids OS command line length limits that DEFS can exceed. 2277rm -f -r conftest* confdefs.h 2278 2279$as_echo "/* confdefs.h */" > confdefs.h 2280 2281# Predefined preprocessor variables. 2282 2283cat >>confdefs.h <<_ACEOF 2284#define PACKAGE_NAME "$PACKAGE_NAME" 2285_ACEOF 2286 2287cat >>confdefs.h <<_ACEOF 2288#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2289_ACEOF 2290 2291cat >>confdefs.h <<_ACEOF 2292#define PACKAGE_VERSION "$PACKAGE_VERSION" 2293_ACEOF 2294 2295cat >>confdefs.h <<_ACEOF 2296#define PACKAGE_STRING "$PACKAGE_STRING" 2297_ACEOF 2298 2299cat >>confdefs.h <<_ACEOF 2300#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2301_ACEOF 2302 2303cat >>confdefs.h <<_ACEOF 2304#define PACKAGE_URL "$PACKAGE_URL" 2305_ACEOF 2306 2307 2308# Let the site file select an alternate cache file if it wants to. 2309# Prefer an explicitly selected file to automatically selected ones. 2310ac_site_file1=NONE 2311ac_site_file2=NONE 2312if test -n "$CONFIG_SITE"; then 2313 # We do not want a PATH search for config.site. 2314 case $CONFIG_SITE in #(( 2315 -*) ac_site_file1=./$CONFIG_SITE;; 2316 */*) ac_site_file1=$CONFIG_SITE;; 2317 *) ac_site_file1=./$CONFIG_SITE;; 2318 esac 2319elif test "x$prefix" != xNONE; then 2320 ac_site_file1=$prefix/share/config.site 2321 ac_site_file2=$prefix/etc/config.site 2322else 2323 ac_site_file1=$ac_default_prefix/share/config.site 2324 ac_site_file2=$ac_default_prefix/etc/config.site 2325fi 2326for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2327do 2328 test "x$ac_site_file" = xNONE && continue 2329 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2331$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2332 sed 's/^/| /' "$ac_site_file" >&5 2333 . "$ac_site_file" \ 2334 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2336as_fn_error $? "failed to load site script $ac_site_file 2337See \`config.log' for more details" "$LINENO" 5; } 2338 fi 2339done 2340 2341if test -r "$cache_file"; then 2342 # Some versions of bash will fail to source /dev/null (special files 2343 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2344 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2346$as_echo "$as_me: loading cache $cache_file" >&6;} 2347 case $cache_file in 2348 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2349 *) . "./$cache_file";; 2350 esac 2351 fi 2352else 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2354$as_echo "$as_me: creating cache $cache_file" >&6;} 2355 >$cache_file 2356fi 2357 2358# Check that the precious variables saved in the cache have kept the same 2359# value. 2360ac_cache_corrupted=false 2361for ac_var in $ac_precious_vars; do 2362 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2363 eval ac_new_set=\$ac_env_${ac_var}_set 2364 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2365 eval ac_new_val=\$ac_env_${ac_var}_value 2366 case $ac_old_set,$ac_new_set in 2367 set,) 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2369$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2370 ac_cache_corrupted=: ;; 2371 ,set) 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2373$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2374 ac_cache_corrupted=: ;; 2375 ,);; 2376 *) 2377 if test "x$ac_old_val" != "x$ac_new_val"; then 2378 # differences in whitespace do not lead to failure. 2379 ac_old_val_w=`echo x $ac_old_val` 2380 ac_new_val_w=`echo x $ac_new_val` 2381 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2383$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2384 ac_cache_corrupted=: 2385 else 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2387$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2388 eval $ac_var=\$ac_old_val 2389 fi 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2391$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2393$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2394 fi;; 2395 esac 2396 # Pass precious variables to config.status. 2397 if test "$ac_new_set" = set; then 2398 case $ac_new_val in 2399 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2400 *) ac_arg=$ac_var=$ac_new_val ;; 2401 esac 2402 case " $ac_configure_args " in 2403 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2404 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2405 esac 2406 fi 2407done 2408if $ac_cache_corrupted; then 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2412$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2413 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2414fi 2415## -------------------- ## 2416## Main body of script. ## 2417## -------------------- ## 2418 2419ac_ext=c 2420ac_cpp='$CPP $CPPFLAGS' 2421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2423ac_compiler_gnu=$ac_cv_c_compiler_gnu 2424 2425 2426 2427 2428 2429# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2430# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 2431# to avoid autoconf errors. 2432ac_aux_dir= 2433for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2434 if test -f "$ac_dir/install-sh"; then 2435 ac_aux_dir=$ac_dir 2436 ac_install_sh="$ac_aux_dir/install-sh -c" 2437 break 2438 elif test -f "$ac_dir/install.sh"; then 2439 ac_aux_dir=$ac_dir 2440 ac_install_sh="$ac_aux_dir/install.sh -c" 2441 break 2442 elif test -f "$ac_dir/shtool"; then 2443 ac_aux_dir=$ac_dir 2444 ac_install_sh="$ac_aux_dir/shtool install -c" 2445 break 2446 fi 2447done 2448if test -z "$ac_aux_dir"; then 2449 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2450fi 2451 2452# These three variables are undocumented and unsupported, 2453# and are intended to be withdrawn in a future Autoconf release. 2454# They can cause serious problems if a builder's source tree is in a directory 2455# whose full name contains unusual characters. 2456ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2457ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2458ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2459 2460 2461# Expand $ac_aux_dir to an absolute path. 2462am_aux_dir=`cd "$ac_aux_dir" && pwd` 2463 2464ac_ext=c 2465ac_cpp='$CPP $CPPFLAGS' 2466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2468ac_compiler_gnu=$ac_cv_c_compiler_gnu 2469if test -n "$ac_tool_prefix"; then 2470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2471set dummy ${ac_tool_prefix}gcc; ac_word=$2 2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2473$as_echo_n "checking for $ac_word... " >&6; } 2474if ${ac_cv_prog_CC+:} false; then : 2475 $as_echo_n "(cached) " >&6 2476else 2477 if test -n "$CC"; then 2478 ac_cv_prog_CC="$CC" # Let the user override the test. 2479else 2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2481for as_dir in $PATH 2482do 2483 IFS=$as_save_IFS 2484 test -z "$as_dir" && as_dir=. 2485 for ac_exec_ext in '' $ac_executable_extensions; do 2486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2487 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2489 break 2 2490 fi 2491done 2492 done 2493IFS=$as_save_IFS 2494 2495fi 2496fi 2497CC=$ac_cv_prog_CC 2498if test -n "$CC"; then 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2500$as_echo "$CC" >&6; } 2501else 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2503$as_echo "no" >&6; } 2504fi 2505 2506 2507fi 2508if test -z "$ac_cv_prog_CC"; then 2509 ac_ct_CC=$CC 2510 # Extract the first word of "gcc", so it can be a program name with args. 2511set dummy gcc; ac_word=$2 2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2513$as_echo_n "checking for $ac_word... " >&6; } 2514if ${ac_cv_prog_ac_ct_CC+:} false; then : 2515 $as_echo_n "(cached) " >&6 2516else 2517 if test -n "$ac_ct_CC"; then 2518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2519else 2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2521for as_dir in $PATH 2522do 2523 IFS=$as_save_IFS 2524 test -z "$as_dir" && as_dir=. 2525 for ac_exec_ext in '' $ac_executable_extensions; do 2526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2527 ac_cv_prog_ac_ct_CC="gcc" 2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2529 break 2 2530 fi 2531done 2532 done 2533IFS=$as_save_IFS 2534 2535fi 2536fi 2537ac_ct_CC=$ac_cv_prog_ac_ct_CC 2538if test -n "$ac_ct_CC"; then 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2540$as_echo "$ac_ct_CC" >&6; } 2541else 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2543$as_echo "no" >&6; } 2544fi 2545 2546 if test "x$ac_ct_CC" = x; then 2547 CC="" 2548 else 2549 case $cross_compiling:$ac_tool_warned in 2550yes:) 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2553ac_tool_warned=yes ;; 2554esac 2555 CC=$ac_ct_CC 2556 fi 2557else 2558 CC="$ac_cv_prog_CC" 2559fi 2560 2561if test -z "$CC"; then 2562 if test -n "$ac_tool_prefix"; then 2563 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2564set dummy ${ac_tool_prefix}cc; ac_word=$2 2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2566$as_echo_n "checking for $ac_word... " >&6; } 2567if ${ac_cv_prog_CC+:} false; then : 2568 $as_echo_n "(cached) " >&6 2569else 2570 if test -n "$CC"; then 2571 ac_cv_prog_CC="$CC" # Let the user override the test. 2572else 2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2574for as_dir in $PATH 2575do 2576 IFS=$as_save_IFS 2577 test -z "$as_dir" && as_dir=. 2578 for ac_exec_ext in '' $ac_executable_extensions; do 2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2580 ac_cv_prog_CC="${ac_tool_prefix}cc" 2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2582 break 2 2583 fi 2584done 2585 done 2586IFS=$as_save_IFS 2587 2588fi 2589fi 2590CC=$ac_cv_prog_CC 2591if test -n "$CC"; then 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2593$as_echo "$CC" >&6; } 2594else 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2596$as_echo "no" >&6; } 2597fi 2598 2599 2600 fi 2601fi 2602if test -z "$CC"; then 2603 # Extract the first word of "cc", so it can be a program name with args. 2604set dummy cc; ac_word=$2 2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2606$as_echo_n "checking for $ac_word... " >&6; } 2607if ${ac_cv_prog_CC+:} false; then : 2608 $as_echo_n "(cached) " >&6 2609else 2610 if test -n "$CC"; then 2611 ac_cv_prog_CC="$CC" # Let the user override the test. 2612else 2613 ac_prog_rejected=no 2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2615for as_dir in $PATH 2616do 2617 IFS=$as_save_IFS 2618 test -z "$as_dir" && as_dir=. 2619 for ac_exec_ext in '' $ac_executable_extensions; do 2620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2621 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2622 ac_prog_rejected=yes 2623 continue 2624 fi 2625 ac_cv_prog_CC="cc" 2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2627 break 2 2628 fi 2629done 2630 done 2631IFS=$as_save_IFS 2632 2633if test $ac_prog_rejected = yes; then 2634 # We found a bogon in the path, so make sure we never use it. 2635 set dummy $ac_cv_prog_CC 2636 shift 2637 if test $# != 0; then 2638 # We chose a different compiler from the bogus one. 2639 # However, it has the same basename, so the bogon will be chosen 2640 # first if we set CC to just the basename; use the full file name. 2641 shift 2642 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2643 fi 2644fi 2645fi 2646fi 2647CC=$ac_cv_prog_CC 2648if test -n "$CC"; then 2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2650$as_echo "$CC" >&6; } 2651else 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2653$as_echo "no" >&6; } 2654fi 2655 2656 2657fi 2658if test -z "$CC"; then 2659 if test -n "$ac_tool_prefix"; then 2660 for ac_prog in cl.exe 2661 do 2662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2663set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2665$as_echo_n "checking for $ac_word... " >&6; } 2666if ${ac_cv_prog_CC+:} false; then : 2667 $as_echo_n "(cached) " >&6 2668else 2669 if test -n "$CC"; then 2670 ac_cv_prog_CC="$CC" # Let the user override the test. 2671else 2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2673for as_dir in $PATH 2674do 2675 IFS=$as_save_IFS 2676 test -z "$as_dir" && as_dir=. 2677 for ac_exec_ext in '' $ac_executable_extensions; do 2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2679 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2681 break 2 2682 fi 2683done 2684 done 2685IFS=$as_save_IFS 2686 2687fi 2688fi 2689CC=$ac_cv_prog_CC 2690if test -n "$CC"; then 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2692$as_echo "$CC" >&6; } 2693else 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2695$as_echo "no" >&6; } 2696fi 2697 2698 2699 test -n "$CC" && break 2700 done 2701fi 2702if test -z "$CC"; then 2703 ac_ct_CC=$CC 2704 for ac_prog in cl.exe 2705do 2706 # Extract the first word of "$ac_prog", so it can be a program name with args. 2707set dummy $ac_prog; ac_word=$2 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2709$as_echo_n "checking for $ac_word... " >&6; } 2710if ${ac_cv_prog_ac_ct_CC+:} false; then : 2711 $as_echo_n "(cached) " >&6 2712else 2713 if test -n "$ac_ct_CC"; then 2714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2715else 2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2717for as_dir in $PATH 2718do 2719 IFS=$as_save_IFS 2720 test -z "$as_dir" && as_dir=. 2721 for ac_exec_ext in '' $ac_executable_extensions; do 2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2723 ac_cv_prog_ac_ct_CC="$ac_prog" 2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2725 break 2 2726 fi 2727done 2728 done 2729IFS=$as_save_IFS 2730 2731fi 2732fi 2733ac_ct_CC=$ac_cv_prog_ac_ct_CC 2734if test -n "$ac_ct_CC"; then 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2736$as_echo "$ac_ct_CC" >&6; } 2737else 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2739$as_echo "no" >&6; } 2740fi 2741 2742 2743 test -n "$ac_ct_CC" && break 2744done 2745 2746 if test "x$ac_ct_CC" = x; then 2747 CC="" 2748 else 2749 case $cross_compiling:$ac_tool_warned in 2750yes:) 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2753ac_tool_warned=yes ;; 2754esac 2755 CC=$ac_ct_CC 2756 fi 2757fi 2758 2759fi 2760 2761 2762test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2764as_fn_error $? "no acceptable C compiler found in \$PATH 2765See \`config.log' for more details" "$LINENO" 5; } 2766 2767# Provide some information about the compiler. 2768$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2769set X $ac_compile 2770ac_compiler=$2 2771for ac_option in --version -v -V -qversion; do 2772 { { ac_try="$ac_compiler $ac_option >&5" 2773case "(($ac_try" in 2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2775 *) ac_try_echo=$ac_try;; 2776esac 2777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2778$as_echo "$ac_try_echo"; } >&5 2779 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2780 ac_status=$? 2781 if test -s conftest.err; then 2782 sed '10a\ 2783... rest of stderr output deleted ... 2784 10q' conftest.err >conftest.er1 2785 cat conftest.er1 >&5 2786 fi 2787 rm -f conftest.er1 conftest.err 2788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2789 test $ac_status = 0; } 2790done 2791 2792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2793/* end confdefs.h. */ 2794 2795int 2796main () 2797{ 2798 2799 ; 2800 return 0; 2801} 2802_ACEOF 2803ac_clean_files_save=$ac_clean_files 2804ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2805# Try to create an executable without -o first, disregard a.out. 2806# It will help us diagnose broken compilers, and finding out an intuition 2807# of exeext. 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2809$as_echo_n "checking whether the C compiler works... " >&6; } 2810ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2811 2812# The possible output files: 2813ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2814 2815ac_rmfiles= 2816for ac_file in $ac_files 2817do 2818 case $ac_file in 2819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2820 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2821 esac 2822done 2823rm -f $ac_rmfiles 2824 2825if { { ac_try="$ac_link_default" 2826case "(($ac_try" in 2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2828 *) ac_try_echo=$ac_try;; 2829esac 2830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2831$as_echo "$ac_try_echo"; } >&5 2832 (eval "$ac_link_default") 2>&5 2833 ac_status=$? 2834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2835 test $ac_status = 0; }; then : 2836 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2837# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2838# in a Makefile. We should not override ac_cv_exeext if it was cached, 2839# so that the user can short-circuit this test for compilers unknown to 2840# Autoconf. 2841for ac_file in $ac_files '' 2842do 2843 test -f "$ac_file" || continue 2844 case $ac_file in 2845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2846 ;; 2847 [ab].out ) 2848 # We found the default executable, but exeext='' is most 2849 # certainly right. 2850 break;; 2851 *.* ) 2852 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2853 then :; else 2854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2855 fi 2856 # We set ac_cv_exeext here because the later test for it is not 2857 # safe: cross compilers may not add the suffix if given an `-o' 2858 # argument, so we may need to know it at that point already. 2859 # Even if this section looks crufty: it has the advantage of 2860 # actually working. 2861 break;; 2862 * ) 2863 break;; 2864 esac 2865done 2866test "$ac_cv_exeext" = no && ac_cv_exeext= 2867 2868else 2869 ac_file='' 2870fi 2871if test -z "$ac_file"; then : 2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2873$as_echo "no" >&6; } 2874$as_echo "$as_me: failed program was:" >&5 2875sed 's/^/| /' conftest.$ac_ext >&5 2876 2877{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2879as_fn_error 77 "C compiler cannot create executables 2880See \`config.log' for more details" "$LINENO" 5; } 2881else 2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2883$as_echo "yes" >&6; } 2884fi 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2886$as_echo_n "checking for C compiler default output file name... " >&6; } 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2888$as_echo "$ac_file" >&6; } 2889ac_exeext=$ac_cv_exeext 2890 2891rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2892ac_clean_files=$ac_clean_files_save 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2894$as_echo_n "checking for suffix of executables... " >&6; } 2895if { { ac_try="$ac_link" 2896case "(($ac_try" in 2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2898 *) ac_try_echo=$ac_try;; 2899esac 2900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2901$as_echo "$ac_try_echo"; } >&5 2902 (eval "$ac_link") 2>&5 2903 ac_status=$? 2904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2905 test $ac_status = 0; }; then : 2906 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2907# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2908# work properly (i.e., refer to `conftest.exe'), while it won't with 2909# `rm'. 2910for ac_file in conftest.exe conftest conftest.*; do 2911 test -f "$ac_file" || continue 2912 case $ac_file in 2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2914 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2915 break;; 2916 * ) break;; 2917 esac 2918done 2919else 2920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2922as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2923See \`config.log' for more details" "$LINENO" 5; } 2924fi 2925rm -f conftest conftest$ac_cv_exeext 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2927$as_echo "$ac_cv_exeext" >&6; } 2928 2929rm -f conftest.$ac_ext 2930EXEEXT=$ac_cv_exeext 2931ac_exeext=$EXEEXT 2932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2933/* end confdefs.h. */ 2934#include <stdio.h> 2935int 2936main () 2937{ 2938FILE *f = fopen ("conftest.out", "w"); 2939 return ferror (f) || fclose (f) != 0; 2940 2941 ; 2942 return 0; 2943} 2944_ACEOF 2945ac_clean_files="$ac_clean_files conftest.out" 2946# Check that the compiler produces executables we can run. If not, either 2947# the compiler is broken, or we cross compile. 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2949$as_echo_n "checking whether we are cross compiling... " >&6; } 2950if test "$cross_compiling" != yes; then 2951 { { ac_try="$ac_link" 2952case "(($ac_try" in 2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2954 *) ac_try_echo=$ac_try;; 2955esac 2956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2957$as_echo "$ac_try_echo"; } >&5 2958 (eval "$ac_link") 2>&5 2959 ac_status=$? 2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2961 test $ac_status = 0; } 2962 if { ac_try='./conftest$ac_cv_exeext' 2963 { { case "(($ac_try" in 2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2965 *) ac_try_echo=$ac_try;; 2966esac 2967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2968$as_echo "$ac_try_echo"; } >&5 2969 (eval "$ac_try") 2>&5 2970 ac_status=$? 2971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2972 test $ac_status = 0; }; }; then 2973 cross_compiling=no 2974 else 2975 if test "$cross_compiling" = maybe; then 2976 cross_compiling=yes 2977 else 2978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2980as_fn_error $? "cannot run C compiled programs. 2981If you meant to cross compile, use \`--host'. 2982See \`config.log' for more details" "$LINENO" 5; } 2983 fi 2984 fi 2985fi 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2987$as_echo "$cross_compiling" >&6; } 2988 2989rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2990ac_clean_files=$ac_clean_files_save 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2992$as_echo_n "checking for suffix of object files... " >&6; } 2993if ${ac_cv_objext+:} false; then : 2994 $as_echo_n "(cached) " >&6 2995else 2996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2997/* end confdefs.h. */ 2998 2999int 3000main () 3001{ 3002 3003 ; 3004 return 0; 3005} 3006_ACEOF 3007rm -f conftest.o conftest.obj 3008if { { ac_try="$ac_compile" 3009case "(($ac_try" in 3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3011 *) ac_try_echo=$ac_try;; 3012esac 3013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3014$as_echo "$ac_try_echo"; } >&5 3015 (eval "$ac_compile") 2>&5 3016 ac_status=$? 3017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3018 test $ac_status = 0; }; then : 3019 for ac_file in conftest.o conftest.obj conftest.*; do 3020 test -f "$ac_file" || continue; 3021 case $ac_file in 3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3024 break;; 3025 esac 3026done 3027else 3028 $as_echo "$as_me: failed program was:" >&5 3029sed 's/^/| /' conftest.$ac_ext >&5 3030 3031{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3033as_fn_error $? "cannot compute suffix of object files: cannot compile 3034See \`config.log' for more details" "$LINENO" 5; } 3035fi 3036rm -f conftest.$ac_cv_objext conftest.$ac_ext 3037fi 3038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3039$as_echo "$ac_cv_objext" >&6; } 3040OBJEXT=$ac_cv_objext 3041ac_objext=$OBJEXT 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3043$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3044if ${ac_cv_c_compiler_gnu+:} false; then : 3045 $as_echo_n "(cached) " >&6 3046else 3047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3048/* end confdefs.h. */ 3049 3050int 3051main () 3052{ 3053#ifndef __GNUC__ 3054 choke me 3055#endif 3056 3057 ; 3058 return 0; 3059} 3060_ACEOF 3061if ac_fn_c_try_compile "$LINENO"; then : 3062 ac_compiler_gnu=yes 3063else 3064 ac_compiler_gnu=no 3065fi 3066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3067ac_cv_c_compiler_gnu=$ac_compiler_gnu 3068 3069fi 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3071$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3072if test $ac_compiler_gnu = yes; then 3073 GCC=yes 3074else 3075 GCC= 3076fi 3077ac_test_CFLAGS=${CFLAGS+set} 3078ac_save_CFLAGS=$CFLAGS 3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3080$as_echo_n "checking whether $CC accepts -g... " >&6; } 3081if ${ac_cv_prog_cc_g+:} false; then : 3082 $as_echo_n "(cached) " >&6 3083else 3084 ac_save_c_werror_flag=$ac_c_werror_flag 3085 ac_c_werror_flag=yes 3086 ac_cv_prog_cc_g=no 3087 CFLAGS="-g" 3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3089/* end confdefs.h. */ 3090 3091int 3092main () 3093{ 3094 3095 ; 3096 return 0; 3097} 3098_ACEOF 3099if ac_fn_c_try_compile "$LINENO"; then : 3100 ac_cv_prog_cc_g=yes 3101else 3102 CFLAGS="" 3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3104/* end confdefs.h. */ 3105 3106int 3107main () 3108{ 3109 3110 ; 3111 return 0; 3112} 3113_ACEOF 3114if ac_fn_c_try_compile "$LINENO"; then : 3115 3116else 3117 ac_c_werror_flag=$ac_save_c_werror_flag 3118 CFLAGS="-g" 3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3120/* end confdefs.h. */ 3121 3122int 3123main () 3124{ 3125 3126 ; 3127 return 0; 3128} 3129_ACEOF 3130if ac_fn_c_try_compile "$LINENO"; then : 3131 ac_cv_prog_cc_g=yes 3132fi 3133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3134fi 3135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3136fi 3137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3138 ac_c_werror_flag=$ac_save_c_werror_flag 3139fi 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3141$as_echo "$ac_cv_prog_cc_g" >&6; } 3142if test "$ac_test_CFLAGS" = set; then 3143 CFLAGS=$ac_save_CFLAGS 3144elif test $ac_cv_prog_cc_g = yes; then 3145 if test "$GCC" = yes; then 3146 CFLAGS="-g -O2" 3147 else 3148 CFLAGS="-g" 3149 fi 3150else 3151 if test "$GCC" = yes; then 3152 CFLAGS="-O2" 3153 else 3154 CFLAGS= 3155 fi 3156fi 3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3158$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3159if ${ac_cv_prog_cc_c89+:} false; then : 3160 $as_echo_n "(cached) " >&6 3161else 3162 ac_cv_prog_cc_c89=no 3163ac_save_CC=$CC 3164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3165/* end confdefs.h. */ 3166#include <stdarg.h> 3167#include <stdio.h> 3168struct stat; 3169/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3170struct buf { int x; }; 3171FILE * (*rcsopen) (struct buf *, struct stat *, int); 3172static char *e (p, i) 3173 char **p; 3174 int i; 3175{ 3176 return p[i]; 3177} 3178static char *f (char * (*g) (char **, int), char **p, ...) 3179{ 3180 char *s; 3181 va_list v; 3182 va_start (v,p); 3183 s = g (p, va_arg (v,int)); 3184 va_end (v); 3185 return s; 3186} 3187 3188/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3189 function prototypes and stuff, but not '\xHH' hex character constants. 3190 These don't provoke an error unfortunately, instead are silently treated 3191 as 'x'. The following induces an error, until -std is added to get 3192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3193 array size at least. It's necessary to write '\x00'==0 to get something 3194 that's true only with -std. */ 3195int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3196 3197/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3198 inside strings and character constants. */ 3199#define FOO(x) 'x' 3200int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3201 3202int test (int i, double x); 3203struct s1 {int (*f) (int a);}; 3204struct s2 {int (*f) (double a);}; 3205int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3206int argc; 3207char **argv; 3208int 3209main () 3210{ 3211return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3212 ; 3213 return 0; 3214} 3215_ACEOF 3216for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3218do 3219 CC="$ac_save_CC $ac_arg" 3220 if ac_fn_c_try_compile "$LINENO"; then : 3221 ac_cv_prog_cc_c89=$ac_arg 3222fi 3223rm -f core conftest.err conftest.$ac_objext 3224 test "x$ac_cv_prog_cc_c89" != "xno" && break 3225done 3226rm -f conftest.$ac_ext 3227CC=$ac_save_CC 3228 3229fi 3230# AC_CACHE_VAL 3231case "x$ac_cv_prog_cc_c89" in 3232 x) 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3234$as_echo "none needed" >&6; } ;; 3235 xno) 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3237$as_echo "unsupported" >&6; } ;; 3238 *) 3239 CC="$CC $ac_cv_prog_cc_c89" 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3241$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3242esac 3243if test "x$ac_cv_prog_cc_c89" != xno; then : 3244 3245fi 3246 3247ac_ext=c 3248ac_cpp='$CPP $CPPFLAGS' 3249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3251ac_compiler_gnu=$ac_cv_c_compiler_gnu 3252 3253ac_ext=c 3254ac_cpp='$CPP $CPPFLAGS' 3255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3257ac_compiler_gnu=$ac_cv_c_compiler_gnu 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3259$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3260if ${am_cv_prog_cc_c_o+:} false; then : 3261 $as_echo_n "(cached) " >&6 3262else 3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3264/* end confdefs.h. */ 3265 3266int 3267main () 3268{ 3269 3270 ; 3271 return 0; 3272} 3273_ACEOF 3274 # Make sure it works both with $CC and with simple cc. 3275 # Following AC_PROG_CC_C_O, we do the test twice because some 3276 # compilers refuse to overwrite an existing .o file with -o, 3277 # though they will create one. 3278 am_cv_prog_cc_c_o=yes 3279 for am_i in 1 2; do 3280 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3281 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3282 ac_status=$? 3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3284 (exit $ac_status); } \ 3285 && test -f conftest2.$ac_objext; then 3286 : OK 3287 else 3288 am_cv_prog_cc_c_o=no 3289 break 3290 fi 3291 done 3292 rm -f core conftest* 3293 unset am_i 3294fi 3295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3296$as_echo "$am_cv_prog_cc_c_o" >&6; } 3297if test "$am_cv_prog_cc_c_o" != yes; then 3298 # Losing compiler, so override with the script. 3299 # FIXME: It is wrong to rewrite CC. 3300 # But if we don't then we get into trouble of one sort or another. 3301 # A longer-term fix would be to have automake use am__CC in this case, 3302 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3303 CC="$am_aux_dir/compile $CC" 3304fi 3305ac_ext=c 3306ac_cpp='$CPP $CPPFLAGS' 3307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3309ac_compiler_gnu=$ac_cv_c_compiler_gnu 3310 3311 3312 3313ac_ext=c 3314ac_cpp='$CPP $CPPFLAGS' 3315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3317ac_compiler_gnu=$ac_cv_c_compiler_gnu 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3319$as_echo_n "checking how to run the C preprocessor... " >&6; } 3320# On Suns, sometimes $CPP names a directory. 3321if test -n "$CPP" && test -d "$CPP"; then 3322 CPP= 3323fi 3324if test -z "$CPP"; then 3325 if ${ac_cv_prog_CPP+:} false; then : 3326 $as_echo_n "(cached) " >&6 3327else 3328 # Double quotes because CPP needs to be expanded 3329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3330 do 3331 ac_preproc_ok=false 3332for ac_c_preproc_warn_flag in '' yes 3333do 3334 # Use a header file that comes with gcc, so configuring glibc 3335 # with a fresh cross-compiler works. 3336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3337 # <limits.h> exists even on freestanding compilers. 3338 # On the NeXT, cc -E runs the code through the compiler's parser, 3339 # not just through cpp. "Syntax error" is here to catch this case. 3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3341/* end confdefs.h. */ 3342#ifdef __STDC__ 3343# include <limits.h> 3344#else 3345# include <assert.h> 3346#endif 3347 Syntax error 3348_ACEOF 3349if ac_fn_c_try_cpp "$LINENO"; then : 3350 3351else 3352 # Broken: fails on valid input. 3353continue 3354fi 3355rm -f conftest.err conftest.i conftest.$ac_ext 3356 3357 # OK, works on sane cases. Now check whether nonexistent headers 3358 # can be detected and how. 3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3360/* end confdefs.h. */ 3361#include <ac_nonexistent.h> 3362_ACEOF 3363if ac_fn_c_try_cpp "$LINENO"; then : 3364 # Broken: success on invalid input. 3365continue 3366else 3367 # Passes both tests. 3368ac_preproc_ok=: 3369break 3370fi 3371rm -f conftest.err conftest.i conftest.$ac_ext 3372 3373done 3374# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3375rm -f conftest.i conftest.err conftest.$ac_ext 3376if $ac_preproc_ok; then : 3377 break 3378fi 3379 3380 done 3381 ac_cv_prog_CPP=$CPP 3382 3383fi 3384 CPP=$ac_cv_prog_CPP 3385else 3386 ac_cv_prog_CPP=$CPP 3387fi 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3389$as_echo "$CPP" >&6; } 3390ac_preproc_ok=false 3391for ac_c_preproc_warn_flag in '' yes 3392do 3393 # Use a header file that comes with gcc, so configuring glibc 3394 # with a fresh cross-compiler works. 3395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3396 # <limits.h> exists even on freestanding compilers. 3397 # On the NeXT, cc -E runs the code through the compiler's parser, 3398 # not just through cpp. "Syntax error" is here to catch this case. 3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3400/* end confdefs.h. */ 3401#ifdef __STDC__ 3402# include <limits.h> 3403#else 3404# include <assert.h> 3405#endif 3406 Syntax error 3407_ACEOF 3408if ac_fn_c_try_cpp "$LINENO"; then : 3409 3410else 3411 # Broken: fails on valid input. 3412continue 3413fi 3414rm -f conftest.err conftest.i conftest.$ac_ext 3415 3416 # OK, works on sane cases. Now check whether nonexistent headers 3417 # can be detected and how. 3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3419/* end confdefs.h. */ 3420#include <ac_nonexistent.h> 3421_ACEOF 3422if ac_fn_c_try_cpp "$LINENO"; then : 3423 # Broken: success on invalid input. 3424continue 3425else 3426 # Passes both tests. 3427ac_preproc_ok=: 3428break 3429fi 3430rm -f conftest.err conftest.i conftest.$ac_ext 3431 3432done 3433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3434rm -f conftest.i conftest.err conftest.$ac_ext 3435if $ac_preproc_ok; then : 3436 3437else 3438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3440as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3441See \`config.log' for more details" "$LINENO" 5; } 3442fi 3443 3444ac_ext=c 3445ac_cpp='$CPP $CPPFLAGS' 3446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3448ac_compiler_gnu=$ac_cv_c_compiler_gnu 3449 3450 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3452$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3453if ${ac_cv_path_GREP+:} false; then : 3454 $as_echo_n "(cached) " >&6 3455else 3456 if test -z "$GREP"; then 3457 ac_path_GREP_found=false 3458 # Loop through the user's path and test for each of PROGNAME-LIST 3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3460for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3461do 3462 IFS=$as_save_IFS 3463 test -z "$as_dir" && as_dir=. 3464 for ac_prog in grep ggrep; do 3465 for ac_exec_ext in '' $ac_executable_extensions; do 3466 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3467 as_fn_executable_p "$ac_path_GREP" || continue 3468# Check for GNU ac_path_GREP and select it if it is found. 3469 # Check for GNU $ac_path_GREP 3470case `"$ac_path_GREP" --version 2>&1` in 3471*GNU*) 3472 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3473*) 3474 ac_count=0 3475 $as_echo_n 0123456789 >"conftest.in" 3476 while : 3477 do 3478 cat "conftest.in" "conftest.in" >"conftest.tmp" 3479 mv "conftest.tmp" "conftest.in" 3480 cp "conftest.in" "conftest.nl" 3481 $as_echo 'GREP' >> "conftest.nl" 3482 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3484 as_fn_arith $ac_count + 1 && ac_count=$as_val 3485 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3486 # Best one so far, save it but keep looking for a better one 3487 ac_cv_path_GREP="$ac_path_GREP" 3488 ac_path_GREP_max=$ac_count 3489 fi 3490 # 10*(2^10) chars as input seems more than enough 3491 test $ac_count -gt 10 && break 3492 done 3493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3494esac 3495 3496 $ac_path_GREP_found && break 3 3497 done 3498 done 3499 done 3500IFS=$as_save_IFS 3501 if test -z "$ac_cv_path_GREP"; then 3502 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3503 fi 3504else 3505 ac_cv_path_GREP=$GREP 3506fi 3507 3508fi 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3510$as_echo "$ac_cv_path_GREP" >&6; } 3511 GREP="$ac_cv_path_GREP" 3512 3513 3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3515$as_echo_n "checking for egrep... " >&6; } 3516if ${ac_cv_path_EGREP+:} false; then : 3517 $as_echo_n "(cached) " >&6 3518else 3519 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3520 then ac_cv_path_EGREP="$GREP -E" 3521 else 3522 if test -z "$EGREP"; then 3523 ac_path_EGREP_found=false 3524 # Loop through the user's path and test for each of PROGNAME-LIST 3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3526for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3527do 3528 IFS=$as_save_IFS 3529 test -z "$as_dir" && as_dir=. 3530 for ac_prog in egrep; do 3531 for ac_exec_ext in '' $ac_executable_extensions; do 3532 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3533 as_fn_executable_p "$ac_path_EGREP" || continue 3534# Check for GNU ac_path_EGREP and select it if it is found. 3535 # Check for GNU $ac_path_EGREP 3536case `"$ac_path_EGREP" --version 2>&1` in 3537*GNU*) 3538 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3539*) 3540 ac_count=0 3541 $as_echo_n 0123456789 >"conftest.in" 3542 while : 3543 do 3544 cat "conftest.in" "conftest.in" >"conftest.tmp" 3545 mv "conftest.tmp" "conftest.in" 3546 cp "conftest.in" "conftest.nl" 3547 $as_echo 'EGREP' >> "conftest.nl" 3548 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3550 as_fn_arith $ac_count + 1 && ac_count=$as_val 3551 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3552 # Best one so far, save it but keep looking for a better one 3553 ac_cv_path_EGREP="$ac_path_EGREP" 3554 ac_path_EGREP_max=$ac_count 3555 fi 3556 # 10*(2^10) chars as input seems more than enough 3557 test $ac_count -gt 10 && break 3558 done 3559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3560esac 3561 3562 $ac_path_EGREP_found && break 3 3563 done 3564 done 3565 done 3566IFS=$as_save_IFS 3567 if test -z "$ac_cv_path_EGREP"; then 3568 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3569 fi 3570else 3571 ac_cv_path_EGREP=$EGREP 3572fi 3573 3574 fi 3575fi 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3577$as_echo "$ac_cv_path_EGREP" >&6; } 3578 EGREP="$ac_cv_path_EGREP" 3579 3580 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3582$as_echo_n "checking for ANSI C header files... " >&6; } 3583if ${ac_cv_header_stdc+:} false; then : 3584 $as_echo_n "(cached) " >&6 3585else 3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3587/* end confdefs.h. */ 3588#include <stdlib.h> 3589#include <stdarg.h> 3590#include <string.h> 3591#include <float.h> 3592 3593int 3594main () 3595{ 3596 3597 ; 3598 return 0; 3599} 3600_ACEOF 3601if ac_fn_c_try_compile "$LINENO"; then : 3602 ac_cv_header_stdc=yes 3603else 3604 ac_cv_header_stdc=no 3605fi 3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3607 3608if test $ac_cv_header_stdc = yes; then 3609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3611/* end confdefs.h. */ 3612#include <string.h> 3613 3614_ACEOF 3615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3616 $EGREP "memchr" >/dev/null 2>&1; then : 3617 3618else 3619 ac_cv_header_stdc=no 3620fi 3621rm -f conftest* 3622 3623fi 3624 3625if test $ac_cv_header_stdc = yes; then 3626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3628/* end confdefs.h. */ 3629#include <stdlib.h> 3630 3631_ACEOF 3632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3633 $EGREP "free" >/dev/null 2>&1; then : 3634 3635else 3636 ac_cv_header_stdc=no 3637fi 3638rm -f conftest* 3639 3640fi 3641 3642if test $ac_cv_header_stdc = yes; then 3643 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3644 if test "$cross_compiling" = yes; then : 3645 : 3646else 3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3648/* end confdefs.h. */ 3649#include <ctype.h> 3650#include <stdlib.h> 3651#if ((' ' & 0x0FF) == 0x020) 3652# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3653# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3654#else 3655# define ISLOWER(c) \ 3656 (('a' <= (c) && (c) <= 'i') \ 3657 || ('j' <= (c) && (c) <= 'r') \ 3658 || ('s' <= (c) && (c) <= 'z')) 3659# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3660#endif 3661 3662#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3663int 3664main () 3665{ 3666 int i; 3667 for (i = 0; i < 256; i++) 3668 if (XOR (islower (i), ISLOWER (i)) 3669 || toupper (i) != TOUPPER (i)) 3670 return 2; 3671 return 0; 3672} 3673_ACEOF 3674if ac_fn_c_try_run "$LINENO"; then : 3675 3676else 3677 ac_cv_header_stdc=no 3678fi 3679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3680 conftest.$ac_objext conftest.beam conftest.$ac_ext 3681fi 3682 3683fi 3684fi 3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3686$as_echo "$ac_cv_header_stdc" >&6; } 3687if test $ac_cv_header_stdc = yes; then 3688 3689$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3690 3691fi 3692 3693# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3694for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3695 inttypes.h stdint.h unistd.h 3696do : 3697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3698ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3699" 3700if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3701 cat >>confdefs.h <<_ACEOF 3702#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3703_ACEOF 3704 3705fi 3706 3707done 3708 3709 3710 3711 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3712if test "x$ac_cv_header_minix_config_h" = xyes; then : 3713 MINIX=yes 3714else 3715 MINIX= 3716fi 3717 3718 3719 if test "$MINIX" = yes; then 3720 3721$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3722 3723 3724$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3725 3726 3727$as_echo "#define _MINIX 1" >>confdefs.h 3728 3729 fi 3730 3731 3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3733$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3734if ${ac_cv_safe_to_define___extensions__+:} false; then : 3735 $as_echo_n "(cached) " >&6 3736else 3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3738/* end confdefs.h. */ 3739 3740# define __EXTENSIONS__ 1 3741 $ac_includes_default 3742int 3743main () 3744{ 3745 3746 ; 3747 return 0; 3748} 3749_ACEOF 3750if ac_fn_c_try_compile "$LINENO"; then : 3751 ac_cv_safe_to_define___extensions__=yes 3752else 3753 ac_cv_safe_to_define___extensions__=no 3754fi 3755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3756fi 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3758$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3759 test $ac_cv_safe_to_define___extensions__ = yes && 3760 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3761 3762 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3763 3764 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3765 3766 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3767 3768 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3769 3770 3771 3772am__api_version='1.15' 3773 3774# Find a good install program. We prefer a C program (faster), 3775# so one script is as good as another. But avoid the broken or 3776# incompatible versions: 3777# SysV /etc/install, /usr/sbin/install 3778# SunOS /usr/etc/install 3779# IRIX /sbin/install 3780# AIX /bin/install 3781# AmigaOS /C/install, which installs bootblocks on floppy discs 3782# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3783# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3784# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3785# OS/2's system install, which has a completely different semantic 3786# ./install, which can be erroneously created by make from ./install.sh. 3787# Reject install programs that cannot install multiple files. 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3789$as_echo_n "checking for a BSD-compatible install... " >&6; } 3790if test -z "$INSTALL"; then 3791if ${ac_cv_path_install+:} false; then : 3792 $as_echo_n "(cached) " >&6 3793else 3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3795for as_dir in $PATH 3796do 3797 IFS=$as_save_IFS 3798 test -z "$as_dir" && as_dir=. 3799 # Account for people who put trailing slashes in PATH elements. 3800case $as_dir/ in #(( 3801 ./ | .// | /[cC]/* | \ 3802 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3803 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3804 /usr/ucb/* ) ;; 3805 *) 3806 # OSF1 and SCO ODT 3.0 have their own names for install. 3807 # Don't use installbsd from OSF since it installs stuff as root 3808 # by default. 3809 for ac_prog in ginstall scoinst install; do 3810 for ac_exec_ext in '' $ac_executable_extensions; do 3811 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3812 if test $ac_prog = install && 3813 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3814 # AIX install. It has an incompatible calling convention. 3815 : 3816 elif test $ac_prog = install && 3817 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3818 # program-specific install script used by HP pwplus--don't use. 3819 : 3820 else 3821 rm -rf conftest.one conftest.two conftest.dir 3822 echo one > conftest.one 3823 echo two > conftest.two 3824 mkdir conftest.dir 3825 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3826 test -s conftest.one && test -s conftest.two && 3827 test -s conftest.dir/conftest.one && 3828 test -s conftest.dir/conftest.two 3829 then 3830 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3831 break 3 3832 fi 3833 fi 3834 fi 3835 done 3836 done 3837 ;; 3838esac 3839 3840 done 3841IFS=$as_save_IFS 3842 3843rm -rf conftest.one conftest.two conftest.dir 3844 3845fi 3846 if test "${ac_cv_path_install+set}" = set; then 3847 INSTALL=$ac_cv_path_install 3848 else 3849 # As a last resort, use the slow shell script. Don't cache a 3850 # value for INSTALL within a source directory, because that will 3851 # break other packages using the cache if that directory is 3852 # removed, or if the value is a relative name. 3853 INSTALL=$ac_install_sh 3854 fi 3855fi 3856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3857$as_echo "$INSTALL" >&6; } 3858 3859# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3860# It thinks the first close brace ends the variable substitution. 3861test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3862 3863test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3864 3865test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3866 3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3868$as_echo_n "checking whether build environment is sane... " >&6; } 3869# Reject unsafe characters in $srcdir or the absolute working directory 3870# name. Accept space and tab only in the latter. 3871am_lf=' 3872' 3873case `pwd` in 3874 *[\\\"\#\$\&\'\`$am_lf]*) 3875 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3876esac 3877case $srcdir in 3878 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3879 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3880esac 3881 3882# Do 'set' in a subshell so we don't clobber the current shell's 3883# arguments. Must try -L first in case configure is actually a 3884# symlink; some systems play weird games with the mod time of symlinks 3885# (eg FreeBSD returns the mod time of the symlink's containing 3886# directory). 3887if ( 3888 am_has_slept=no 3889 for am_try in 1 2; do 3890 echo "timestamp, slept: $am_has_slept" > conftest.file 3891 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3892 if test "$*" = "X"; then 3893 # -L didn't work. 3894 set X `ls -t "$srcdir/configure" conftest.file` 3895 fi 3896 if test "$*" != "X $srcdir/configure conftest.file" \ 3897 && test "$*" != "X conftest.file $srcdir/configure"; then 3898 3899 # If neither matched, then we have a broken ls. This can happen 3900 # if, for instance, CONFIG_SHELL is bash and it inherits a 3901 # broken ls alias from the environment. This has actually 3902 # happened. Such a system could not be considered "sane". 3903 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3904 alias in your environment" "$LINENO" 5 3905 fi 3906 if test "$2" = conftest.file || test $am_try -eq 2; then 3907 break 3908 fi 3909 # Just in case. 3910 sleep 1 3911 am_has_slept=yes 3912 done 3913 test "$2" = conftest.file 3914 ) 3915then 3916 # Ok. 3917 : 3918else 3919 as_fn_error $? "newly created file is older than distributed files! 3920Check your system clock" "$LINENO" 5 3921fi 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3923$as_echo "yes" >&6; } 3924# If we didn't sleep, we still need to ensure time stamps of config.status and 3925# generated files are strictly newer. 3926am_sleep_pid= 3927if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3928 ( sleep 1 ) & 3929 am_sleep_pid=$! 3930fi 3931 3932rm -f conftest.file 3933 3934test "$program_prefix" != NONE && 3935 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3936# Use a double $ so make ignores it. 3937test "$program_suffix" != NONE && 3938 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3939# Double any \ or $. 3940# By default was `s,x,x', remove it if useless. 3941ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3942program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3943 3944if test x"${MISSING+set}" != xset; then 3945 case $am_aux_dir in 3946 *\ * | *\ *) 3947 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3948 *) 3949 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3950 esac 3951fi 3952# Use eval to expand $SHELL 3953if eval "$MISSING --is-lightweight"; then 3954 am_missing_run="$MISSING " 3955else 3956 am_missing_run= 3957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3958$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3959fi 3960 3961if test x"${install_sh+set}" != xset; then 3962 case $am_aux_dir in 3963 *\ * | *\ *) 3964 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3965 *) 3966 install_sh="\${SHELL} $am_aux_dir/install-sh" 3967 esac 3968fi 3969 3970# Installed binaries are usually stripped using 'strip' when the user 3971# run "make install-strip". However 'strip' might not be the right 3972# tool to use in cross-compilation environments, therefore Automake 3973# will honor the 'STRIP' environment variable to overrule this program. 3974if test "$cross_compiling" != no; then 3975 if test -n "$ac_tool_prefix"; then 3976 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3977set dummy ${ac_tool_prefix}strip; ac_word=$2 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3979$as_echo_n "checking for $ac_word... " >&6; } 3980if ${ac_cv_prog_STRIP+:} false; then : 3981 $as_echo_n "(cached) " >&6 3982else 3983 if test -n "$STRIP"; then 3984 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3985else 3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3987for as_dir in $PATH 3988do 3989 IFS=$as_save_IFS 3990 test -z "$as_dir" && as_dir=. 3991 for ac_exec_ext in '' $ac_executable_extensions; do 3992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3993 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3995 break 2 3996 fi 3997done 3998 done 3999IFS=$as_save_IFS 4000 4001fi 4002fi 4003STRIP=$ac_cv_prog_STRIP 4004if test -n "$STRIP"; then 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4006$as_echo "$STRIP" >&6; } 4007else 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4009$as_echo "no" >&6; } 4010fi 4011 4012 4013fi 4014if test -z "$ac_cv_prog_STRIP"; then 4015 ac_ct_STRIP=$STRIP 4016 # Extract the first word of "strip", so it can be a program name with args. 4017set dummy strip; ac_word=$2 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4019$as_echo_n "checking for $ac_word... " >&6; } 4020if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4021 $as_echo_n "(cached) " >&6 4022else 4023 if test -n "$ac_ct_STRIP"; then 4024 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4025else 4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4027for as_dir in $PATH 4028do 4029 IFS=$as_save_IFS 4030 test -z "$as_dir" && as_dir=. 4031 for ac_exec_ext in '' $ac_executable_extensions; do 4032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4033 ac_cv_prog_ac_ct_STRIP="strip" 4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4035 break 2 4036 fi 4037done 4038 done 4039IFS=$as_save_IFS 4040 4041fi 4042fi 4043ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4044if test -n "$ac_ct_STRIP"; then 4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4046$as_echo "$ac_ct_STRIP" >&6; } 4047else 4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4049$as_echo "no" >&6; } 4050fi 4051 4052 if test "x$ac_ct_STRIP" = x; then 4053 STRIP=":" 4054 else 4055 case $cross_compiling:$ac_tool_warned in 4056yes:) 4057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4059ac_tool_warned=yes ;; 4060esac 4061 STRIP=$ac_ct_STRIP 4062 fi 4063else 4064 STRIP="$ac_cv_prog_STRIP" 4065fi 4066 4067fi 4068INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4069 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4071$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4072if test -z "$MKDIR_P"; then 4073 if ${ac_cv_path_mkdir+:} false; then : 4074 $as_echo_n "(cached) " >&6 4075else 4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4077for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4078do 4079 IFS=$as_save_IFS 4080 test -z "$as_dir" && as_dir=. 4081 for ac_prog in mkdir gmkdir; do 4082 for ac_exec_ext in '' $ac_executable_extensions; do 4083 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4084 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4085 'mkdir (GNU coreutils) '* | \ 4086 'mkdir (coreutils) '* | \ 4087 'mkdir (fileutils) '4.1*) 4088 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4089 break 3;; 4090 esac 4091 done 4092 done 4093 done 4094IFS=$as_save_IFS 4095 4096fi 4097 4098 test -d ./--version && rmdir ./--version 4099 if test "${ac_cv_path_mkdir+set}" = set; then 4100 MKDIR_P="$ac_cv_path_mkdir -p" 4101 else 4102 # As a last resort, use the slow shell script. Don't cache a 4103 # value for MKDIR_P within a source directory, because that will 4104 # break other packages using the cache if that directory is 4105 # removed, or if the value is a relative name. 4106 MKDIR_P="$ac_install_sh -d" 4107 fi 4108fi 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4110$as_echo "$MKDIR_P" >&6; } 4111 4112for ac_prog in gawk mawk nawk awk 4113do 4114 # Extract the first word of "$ac_prog", so it can be a program name with args. 4115set dummy $ac_prog; ac_word=$2 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4117$as_echo_n "checking for $ac_word... " >&6; } 4118if ${ac_cv_prog_AWK+:} false; then : 4119 $as_echo_n "(cached) " >&6 4120else 4121 if test -n "$AWK"; then 4122 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4123else 4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4125for as_dir in $PATH 4126do 4127 IFS=$as_save_IFS 4128 test -z "$as_dir" && as_dir=. 4129 for ac_exec_ext in '' $ac_executable_extensions; do 4130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4131 ac_cv_prog_AWK="$ac_prog" 4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4133 break 2 4134 fi 4135done 4136 done 4137IFS=$as_save_IFS 4138 4139fi 4140fi 4141AWK=$ac_cv_prog_AWK 4142if test -n "$AWK"; then 4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4144$as_echo "$AWK" >&6; } 4145else 4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4147$as_echo "no" >&6; } 4148fi 4149 4150 4151 test -n "$AWK" && break 4152done 4153 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4155$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4156set x ${MAKE-make} 4157ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4158if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4159 $as_echo_n "(cached) " >&6 4160else 4161 cat >conftest.make <<\_ACEOF 4162SHELL = /bin/sh 4163all: 4164 @echo '@@@%%%=$(MAKE)=@@@%%%' 4165_ACEOF 4166# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4167case `${MAKE-make} -f conftest.make 2>/dev/null` in 4168 *@@@%%%=?*=@@@%%%*) 4169 eval ac_cv_prog_make_${ac_make}_set=yes;; 4170 *) 4171 eval ac_cv_prog_make_${ac_make}_set=no;; 4172esac 4173rm -f conftest.make 4174fi 4175if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4177$as_echo "yes" >&6; } 4178 SET_MAKE= 4179else 4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4181$as_echo "no" >&6; } 4182 SET_MAKE="MAKE=${MAKE-make}" 4183fi 4184 4185rm -rf .tst 2>/dev/null 4186mkdir .tst 2>/dev/null 4187if test -d .tst; then 4188 am__leading_dot=. 4189else 4190 am__leading_dot=_ 4191fi 4192rmdir .tst 2>/dev/null 4193 4194DEPDIR="${am__leading_dot}deps" 4195 4196ac_config_commands="$ac_config_commands depfiles" 4197 4198 4199am_make=${MAKE-make} 4200cat > confinc << 'END' 4201am__doit: 4202 @echo this is the am__doit target 4203.PHONY: am__doit 4204END 4205# If we don't find an include directive, just comment out the code. 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4207$as_echo_n "checking for style of include used by $am_make... " >&6; } 4208am__include="#" 4209am__quote= 4210_am_result=none 4211# First try GNU make style include. 4212echo "include confinc" > confmf 4213# Ignore all kinds of additional output from 'make'. 4214case `$am_make -s -f confmf 2> /dev/null` in #( 4215*the\ am__doit\ target*) 4216 am__include=include 4217 am__quote= 4218 _am_result=GNU 4219 ;; 4220esac 4221# Now try BSD make style include. 4222if test "$am__include" = "#"; then 4223 echo '.include "confinc"' > confmf 4224 case `$am_make -s -f confmf 2> /dev/null` in #( 4225 *the\ am__doit\ target*) 4226 am__include=.include 4227 am__quote="\"" 4228 _am_result=BSD 4229 ;; 4230 esac 4231fi 4232 4233 4234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4235$as_echo "$_am_result" >&6; } 4236rm -f confinc confmf 4237 4238# Check whether --enable-dependency-tracking was given. 4239if test "${enable_dependency_tracking+set}" = set; then : 4240 enableval=$enable_dependency_tracking; 4241fi 4242 4243if test "x$enable_dependency_tracking" != xno; then 4244 am_depcomp="$ac_aux_dir/depcomp" 4245 AMDEPBACKSLASH='\' 4246 am__nodep='_no' 4247fi 4248 if test "x$enable_dependency_tracking" != xno; then 4249 AMDEP_TRUE= 4250 AMDEP_FALSE='#' 4251else 4252 AMDEP_TRUE='#' 4253 AMDEP_FALSE= 4254fi 4255 4256 4257# Check whether --enable-silent-rules was given. 4258if test "${enable_silent_rules+set}" = set; then : 4259 enableval=$enable_silent_rules; 4260fi 4261 4262case $enable_silent_rules in # ((( 4263 yes) AM_DEFAULT_VERBOSITY=0;; 4264 no) AM_DEFAULT_VERBOSITY=1;; 4265 *) AM_DEFAULT_VERBOSITY=1;; 4266esac 4267am_make=${MAKE-make} 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4269$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4270if ${am_cv_make_support_nested_variables+:} false; then : 4271 $as_echo_n "(cached) " >&6 4272else 4273 if $as_echo 'TRUE=$(BAR$(V)) 4274BAR0=false 4275BAR1=true 4276V=1 4277am__doit: 4278 @$(TRUE) 4279.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4280 am_cv_make_support_nested_variables=yes 4281else 4282 am_cv_make_support_nested_variables=no 4283fi 4284fi 4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4286$as_echo "$am_cv_make_support_nested_variables" >&6; } 4287if test $am_cv_make_support_nested_variables = yes; then 4288 AM_V='$(V)' 4289 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4290else 4291 AM_V=$AM_DEFAULT_VERBOSITY 4292 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4293fi 4294AM_BACKSLASH='\' 4295 4296if test "`cd $srcdir && pwd`" != "`pwd`"; then 4297 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4298 # is not polluted with repeated "-I." 4299 am__isrc=' -I$(srcdir)' 4300 # test to see if srcdir already configured 4301 if test -f $srcdir/config.status; then 4302 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4303 fi 4304fi 4305 4306# test whether we have cygpath 4307if test -z "$CYGPATH_W"; then 4308 if (cygpath --version) >/dev/null 2>/dev/null; then 4309 CYGPATH_W='cygpath -w' 4310 else 4311 CYGPATH_W=echo 4312 fi 4313fi 4314 4315 4316# Define the identity of the package. 4317 PACKAGE='xcb-util-cursor' 4318 VERSION='0.1.3' 4319 4320 4321cat >>confdefs.h <<_ACEOF 4322#define PACKAGE "$PACKAGE" 4323_ACEOF 4324 4325 4326cat >>confdefs.h <<_ACEOF 4327#define VERSION "$VERSION" 4328_ACEOF 4329 4330# Some tools Automake needs. 4331 4332ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4333 4334 4335AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4336 4337 4338AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4339 4340 4341AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4342 4343 4344MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4345 4346# For better backward compatibility. To be removed once Automake 1.9.x 4347# dies out for good. For more background, see: 4348# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4349# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4350mkdir_p='$(MKDIR_P)' 4351 4352# We need awk for the "check" target (and possibly the TAP driver). The 4353# system "awk" is bad on some platforms. 4354# Always define AMTAR for backward compatibility. Yes, it's still used 4355# in the wild :-( We should find a proper way to deprecate it ... 4356AMTAR='$${TAR-tar}' 4357 4358 4359# We'll loop over all known methods to create a tar archive until one works. 4360_am_tools='gnutar pax cpio none' 4361 4362am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4363 4364 4365 4366 4367 4368depcc="$CC" am_compiler_list= 4369 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4371$as_echo_n "checking dependency style of $depcc... " >&6; } 4372if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4373 $as_echo_n "(cached) " >&6 4374else 4375 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4376 # We make a subdir and do the tests there. Otherwise we can end up 4377 # making bogus files that we don't know about and never remove. For 4378 # instance it was reported that on HP-UX the gcc test will end up 4379 # making a dummy file named 'D' -- because '-MD' means "put the output 4380 # in D". 4381 rm -rf conftest.dir 4382 mkdir conftest.dir 4383 # Copy depcomp to subdir because otherwise we won't find it if we're 4384 # using a relative directory. 4385 cp "$am_depcomp" conftest.dir 4386 cd conftest.dir 4387 # We will build objects and dependencies in a subdirectory because 4388 # it helps to detect inapplicable dependency modes. For instance 4389 # both Tru64's cc and ICC support -MD to output dependencies as a 4390 # side effect of compilation, but ICC will put the dependencies in 4391 # the current directory while Tru64 will put them in the object 4392 # directory. 4393 mkdir sub 4394 4395 am_cv_CC_dependencies_compiler_type=none 4396 if test "$am_compiler_list" = ""; then 4397 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4398 fi 4399 am__universal=false 4400 case " $depcc " in #( 4401 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4402 esac 4403 4404 for depmode in $am_compiler_list; do 4405 # Setup a source with many dependencies, because some compilers 4406 # like to wrap large dependency lists on column 80 (with \), and 4407 # we should not choose a depcomp mode which is confused by this. 4408 # 4409 # We need to recreate these files for each test, as the compiler may 4410 # overwrite some of them when testing with obscure command lines. 4411 # This happens at least with the AIX C compiler. 4412 : > sub/conftest.c 4413 for i in 1 2 3 4 5 6; do 4414 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4415 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4416 # Solaris 10 /bin/sh. 4417 echo '/* dummy */' > sub/conftst$i.h 4418 done 4419 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4420 4421 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4422 # mode. It turns out that the SunPro C++ compiler does not properly 4423 # handle '-M -o', and we need to detect this. Also, some Intel 4424 # versions had trouble with output in subdirs. 4425 am__obj=sub/conftest.${OBJEXT-o} 4426 am__minus_obj="-o $am__obj" 4427 case $depmode in 4428 gcc) 4429 # This depmode causes a compiler race in universal mode. 4430 test "$am__universal" = false || continue 4431 ;; 4432 nosideeffect) 4433 # After this tag, mechanisms are not by side-effect, so they'll 4434 # only be used when explicitly requested. 4435 if test "x$enable_dependency_tracking" = xyes; then 4436 continue 4437 else 4438 break 4439 fi 4440 ;; 4441 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4442 # This compiler won't grok '-c -o', but also, the minuso test has 4443 # not run yet. These depmodes are late enough in the game, and 4444 # so weak that their functioning should not be impacted. 4445 am__obj=conftest.${OBJEXT-o} 4446 am__minus_obj= 4447 ;; 4448 none) break ;; 4449 esac 4450 if depmode=$depmode \ 4451 source=sub/conftest.c object=$am__obj \ 4452 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4453 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4454 >/dev/null 2>conftest.err && 4455 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4456 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4457 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4458 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4459 # icc doesn't choke on unknown options, it will just issue warnings 4460 # or remarks (even with -Werror). So we grep stderr for any message 4461 # that says an option was ignored or not supported. 4462 # When given -MP, icc 7.0 and 7.1 complain thusly: 4463 # icc: Command line warning: ignoring option '-M'; no argument required 4464 # The diagnosis changed in icc 8.0: 4465 # icc: Command line remark: option '-MP' not supported 4466 if (grep 'ignoring option' conftest.err || 4467 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4468 am_cv_CC_dependencies_compiler_type=$depmode 4469 break 4470 fi 4471 fi 4472 done 4473 4474 cd .. 4475 rm -rf conftest.dir 4476else 4477 am_cv_CC_dependencies_compiler_type=none 4478fi 4479 4480fi 4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4482$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4483CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4484 4485 if 4486 test "x$enable_dependency_tracking" != xno \ 4487 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4488 am__fastdepCC_TRUE= 4489 am__fastdepCC_FALSE='#' 4490else 4491 am__fastdepCC_TRUE='#' 4492 am__fastdepCC_FALSE= 4493fi 4494 4495 4496 4497# POSIX will say in a future version that running "rm -f" with no argument 4498# is OK; and we want to be able to make that assumption in our Makefile 4499# recipes. So use an aggressive probe to check that the usage we want is 4500# actually supported "in the wild" to an acceptable degree. 4501# See automake bug#10828. 4502# To make any issue more visible, cause the running configure to be aborted 4503# by default if the 'rm' program in use doesn't match our expectations; the 4504# user can still override this though. 4505if rm -f && rm -fr && rm -rf; then : OK; else 4506 cat >&2 <<'END' 4507Oops! 4508 4509Your 'rm' program seems unable to run without file operands specified 4510on the command line, even when the '-f' option is present. This is contrary 4511to the behaviour of most rm programs out there, and not conforming with 4512the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4513 4514Please tell bug-automake@gnu.org about your system, including the value 4515of your $PATH and any error possibly output before this message. This 4516can help us improve future automake versions. 4517 4518END 4519 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4520 echo 'Configuration will proceed anyway, since you have set the' >&2 4521 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4522 echo >&2 4523 else 4524 cat >&2 <<'END' 4525Aborting the configuration process, to ensure you take notice of the issue. 4526 4527You can download and install GNU coreutils to get an 'rm' implementation 4528that behaves properly: <http://www.gnu.org/software/coreutils/>. 4529 4530If you want to complete the configuration process using your problematic 4531'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4532to "yes", and re-run configure. 4533 4534END 4535 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4536 fi 4537fi 4538 4539 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4541$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4542 # Check whether --enable-maintainer-mode was given. 4543if test "${enable_maintainer_mode+set}" = set; then : 4544 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4545else 4546 USE_MAINTAINER_MODE=no 4547fi 4548 4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4550$as_echo "$USE_MAINTAINER_MODE" >&6; } 4551 if test $USE_MAINTAINER_MODE = yes; then 4552 MAINTAINER_MODE_TRUE= 4553 MAINTAINER_MODE_FALSE='#' 4554else 4555 MAINTAINER_MODE_TRUE='#' 4556 MAINTAINER_MODE_FALSE= 4557fi 4558 4559 MAINT=$MAINTAINER_MODE_TRUE 4560 4561 4562 4563ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 4564if test "x$ac_cv_type_ssize_t" = xyes; then : 4565 4566else 4567 4568cat >>confdefs.h <<_ACEOF 4569#define ssize_t int 4570_ACEOF 4571 4572fi 4573 4574 4575 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 that supports -I option" >&5 4577$as_echo_n "checking for m4 that supports -I option... " >&6; } 4578if ${ac_cv_path_M4+:} false; then : 4579 $as_echo_n "(cached) " >&6 4580else 4581 if test -z "$M4"; then 4582 ac_path_M4_found=false 4583 # Loop through the user's path and test for each of PROGNAME-LIST 4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4585as_dummy="$PATH:/usr/gnu/bin" 4586for as_dir in $as_dummy 4587do 4588 IFS=$as_save_IFS 4589 test -z "$as_dir" && as_dir=. 4590 for ac_prog in m4 gm4; do 4591 for ac_exec_ext in '' $ac_executable_extensions; do 4592 ac_path_M4="$as_dir/$ac_prog$ac_exec_ext" 4593 as_fn_executable_p "$ac_path_M4" || continue 4594$ac_path_M4 -I. /dev/null > /dev/null 2>&1 && \ 4595 ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=: 4596 $ac_path_M4_found && break 3 4597 done 4598 done 4599 done 4600IFS=$as_save_IFS 4601 if test -z "$ac_cv_path_M4"; then 4602 as_fn_error $? "could not find m4 that supports -I option" "$LINENO" 5 4603 fi 4604else 4605 ac_cv_path_M4=$M4 4606fi 4607 4608fi 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5 4610$as_echo "$ac_cv_path_M4" >&6; } 4611 4612M4=$ac_cv_path_M4 4613 4614 4615case `pwd` in 4616 *\ * | *\ *) 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4618$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4619esac 4620 4621 4622 4623macro_version='2.4.6' 4624macro_revision='2.4.6' 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638ltmain=$ac_aux_dir/ltmain.sh 4639 4640# Make sure we can run config.sub. 4641$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4642 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4643 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4645$as_echo_n "checking build system type... " >&6; } 4646if ${ac_cv_build+:} false; then : 4647 $as_echo_n "(cached) " >&6 4648else 4649 ac_build_alias=$build_alias 4650test "x$ac_build_alias" = x && 4651 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4652test "x$ac_build_alias" = x && 4653 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4654ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4655 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4656 4657fi 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4659$as_echo "$ac_cv_build" >&6; } 4660case $ac_cv_build in 4661*-*-*) ;; 4662*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4663esac 4664build=$ac_cv_build 4665ac_save_IFS=$IFS; IFS='-' 4666set x $ac_cv_build 4667shift 4668build_cpu=$1 4669build_vendor=$2 4670shift; shift 4671# Remember, the first character of IFS is used to create $*, 4672# except with old shells: 4673build_os=$* 4674IFS=$ac_save_IFS 4675case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4676 4677 4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4679$as_echo_n "checking host system type... " >&6; } 4680if ${ac_cv_host+:} false; then : 4681 $as_echo_n "(cached) " >&6 4682else 4683 if test "x$host_alias" = x; then 4684 ac_cv_host=$ac_cv_build 4685else 4686 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4687 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4688fi 4689 4690fi 4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4692$as_echo "$ac_cv_host" >&6; } 4693case $ac_cv_host in 4694*-*-*) ;; 4695*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4696esac 4697host=$ac_cv_host 4698ac_save_IFS=$IFS; IFS='-' 4699set x $ac_cv_host 4700shift 4701host_cpu=$1 4702host_vendor=$2 4703shift; shift 4704# Remember, the first character of IFS is used to create $*, 4705# except with old shells: 4706host_os=$* 4707IFS=$ac_save_IFS 4708case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4709 4710 4711# Backslashify metacharacters that are still active within 4712# double-quoted strings. 4713sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4714 4715# Same as above, but do not quote variable references. 4716double_quote_subst='s/\(["`\\]\)/\\\1/g' 4717 4718# Sed substitution to delay expansion of an escaped shell variable in a 4719# double_quote_subst'ed string. 4720delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4721 4722# Sed substitution to delay expansion of an escaped single quote. 4723delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4724 4725# Sed substitution to avoid accidental globbing in evaled expressions 4726no_glob_subst='s/\*/\\\*/g' 4727 4728ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4729ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4730ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4731 4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4733$as_echo_n "checking how to print strings... " >&6; } 4734# Test print first, because it will be a builtin if present. 4735if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4736 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4737 ECHO='print -r --' 4738elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4739 ECHO='printf %s\n' 4740else 4741 # Use this function as a fallback that always works. 4742 func_fallback_echo () 4743 { 4744 eval 'cat <<_LTECHO_EOF 4745$1 4746_LTECHO_EOF' 4747 } 4748 ECHO='func_fallback_echo' 4749fi 4750 4751# func_echo_all arg... 4752# Invoke $ECHO with all args, space-separated. 4753func_echo_all () 4754{ 4755 $ECHO "" 4756} 4757 4758case $ECHO in 4759 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4760$as_echo "printf" >&6; } ;; 4761 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4762$as_echo "print -r" >&6; } ;; 4763 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4764$as_echo "cat" >&6; } ;; 4765esac 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4781$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4782if ${ac_cv_path_SED+:} false; then : 4783 $as_echo_n "(cached) " >&6 4784else 4785 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4786 for ac_i in 1 2 3 4 5 6 7; do 4787 ac_script="$ac_script$as_nl$ac_script" 4788 done 4789 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4790 { ac_script=; unset ac_script;} 4791 if test -z "$SED"; then 4792 ac_path_SED_found=false 4793 # Loop through the user's path and test for each of PROGNAME-LIST 4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4795for as_dir in $PATH 4796do 4797 IFS=$as_save_IFS 4798 test -z "$as_dir" && as_dir=. 4799 for ac_prog in sed gsed; do 4800 for ac_exec_ext in '' $ac_executable_extensions; do 4801 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4802 as_fn_executable_p "$ac_path_SED" || continue 4803# Check for GNU ac_path_SED and select it if it is found. 4804 # Check for GNU $ac_path_SED 4805case `"$ac_path_SED" --version 2>&1` in 4806*GNU*) 4807 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4808*) 4809 ac_count=0 4810 $as_echo_n 0123456789 >"conftest.in" 4811 while : 4812 do 4813 cat "conftest.in" "conftest.in" >"conftest.tmp" 4814 mv "conftest.tmp" "conftest.in" 4815 cp "conftest.in" "conftest.nl" 4816 $as_echo '' >> "conftest.nl" 4817 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4819 as_fn_arith $ac_count + 1 && ac_count=$as_val 4820 if test $ac_count -gt ${ac_path_SED_max-0}; then 4821 # Best one so far, save it but keep looking for a better one 4822 ac_cv_path_SED="$ac_path_SED" 4823 ac_path_SED_max=$ac_count 4824 fi 4825 # 10*(2^10) chars as input seems more than enough 4826 test $ac_count -gt 10 && break 4827 done 4828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4829esac 4830 4831 $ac_path_SED_found && break 3 4832 done 4833 done 4834 done 4835IFS=$as_save_IFS 4836 if test -z "$ac_cv_path_SED"; then 4837 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4838 fi 4839else 4840 ac_cv_path_SED=$SED 4841fi 4842 4843fi 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4845$as_echo "$ac_cv_path_SED" >&6; } 4846 SED="$ac_cv_path_SED" 4847 rm -f conftest.sed 4848 4849test -z "$SED" && SED=sed 4850Xsed="$SED -e 1s/^X//" 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4863$as_echo_n "checking for fgrep... " >&6; } 4864if ${ac_cv_path_FGREP+:} false; then : 4865 $as_echo_n "(cached) " >&6 4866else 4867 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4868 then ac_cv_path_FGREP="$GREP -F" 4869 else 4870 if test -z "$FGREP"; then 4871 ac_path_FGREP_found=false 4872 # Loop through the user's path and test for each of PROGNAME-LIST 4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4874for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4875do 4876 IFS=$as_save_IFS 4877 test -z "$as_dir" && as_dir=. 4878 for ac_prog in fgrep; do 4879 for ac_exec_ext in '' $ac_executable_extensions; do 4880 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4881 as_fn_executable_p "$ac_path_FGREP" || continue 4882# Check for GNU ac_path_FGREP and select it if it is found. 4883 # Check for GNU $ac_path_FGREP 4884case `"$ac_path_FGREP" --version 2>&1` in 4885*GNU*) 4886 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4887*) 4888 ac_count=0 4889 $as_echo_n 0123456789 >"conftest.in" 4890 while : 4891 do 4892 cat "conftest.in" "conftest.in" >"conftest.tmp" 4893 mv "conftest.tmp" "conftest.in" 4894 cp "conftest.in" "conftest.nl" 4895 $as_echo 'FGREP' >> "conftest.nl" 4896 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4898 as_fn_arith $ac_count + 1 && ac_count=$as_val 4899 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4900 # Best one so far, save it but keep looking for a better one 4901 ac_cv_path_FGREP="$ac_path_FGREP" 4902 ac_path_FGREP_max=$ac_count 4903 fi 4904 # 10*(2^10) chars as input seems more than enough 4905 test $ac_count -gt 10 && break 4906 done 4907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4908esac 4909 4910 $ac_path_FGREP_found && break 3 4911 done 4912 done 4913 done 4914IFS=$as_save_IFS 4915 if test -z "$ac_cv_path_FGREP"; then 4916 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4917 fi 4918else 4919 ac_cv_path_FGREP=$FGREP 4920fi 4921 4922 fi 4923fi 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4925$as_echo "$ac_cv_path_FGREP" >&6; } 4926 FGREP="$ac_cv_path_FGREP" 4927 4928 4929test -z "$GREP" && GREP=grep 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949# Check whether --with-gnu-ld was given. 4950if test "${with_gnu_ld+set}" = set; then : 4951 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4952else 4953 with_gnu_ld=no 4954fi 4955 4956ac_prog=ld 4957if test yes = "$GCC"; then 4958 # Check if gcc -print-prog-name=ld gives a path. 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4960$as_echo_n "checking for ld used by $CC... " >&6; } 4961 case $host in 4962 *-*-mingw*) 4963 # gcc leaves a trailing carriage return, which upsets mingw 4964 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4965 *) 4966 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4967 esac 4968 case $ac_prog in 4969 # Accept absolute paths. 4970 [\\/]* | ?:[\\/]*) 4971 re_direlt='/[^/][^/]*/\.\./' 4972 # Canonicalize the pathname of ld 4973 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4974 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4975 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4976 done 4977 test -z "$LD" && LD=$ac_prog 4978 ;; 4979 "") 4980 # If it fails, then pretend we aren't using GCC. 4981 ac_prog=ld 4982 ;; 4983 *) 4984 # If it is relative, then search for the first ld in PATH. 4985 with_gnu_ld=unknown 4986 ;; 4987 esac 4988elif test yes = "$with_gnu_ld"; then 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4990$as_echo_n "checking for GNU ld... " >&6; } 4991else 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4993$as_echo_n "checking for non-GNU ld... " >&6; } 4994fi 4995if ${lt_cv_path_LD+:} false; then : 4996 $as_echo_n "(cached) " >&6 4997else 4998 if test -z "$LD"; then 4999 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5000 for ac_dir in $PATH; do 5001 IFS=$lt_save_ifs 5002 test -z "$ac_dir" && ac_dir=. 5003 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5004 lt_cv_path_LD=$ac_dir/$ac_prog 5005 # Check to see if the program is GNU ld. I'd rather use --version, 5006 # but apparently some variants of GNU ld only accept -v. 5007 # Break only if it was the GNU/non-GNU ld that we prefer. 5008 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5009 *GNU* | *'with BFD'*) 5010 test no != "$with_gnu_ld" && break 5011 ;; 5012 *) 5013 test yes != "$with_gnu_ld" && break 5014 ;; 5015 esac 5016 fi 5017 done 5018 IFS=$lt_save_ifs 5019else 5020 lt_cv_path_LD=$LD # Let the user override the test with a path. 5021fi 5022fi 5023 5024LD=$lt_cv_path_LD 5025if test -n "$LD"; then 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5027$as_echo "$LD" >&6; } 5028else 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5030$as_echo "no" >&6; } 5031fi 5032test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5034$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5035if ${lt_cv_prog_gnu_ld+:} false; then : 5036 $as_echo_n "(cached) " >&6 5037else 5038 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5039case `$LD -v 2>&1 </dev/null` in 5040*GNU* | *'with BFD'*) 5041 lt_cv_prog_gnu_ld=yes 5042 ;; 5043*) 5044 lt_cv_prog_gnu_ld=no 5045 ;; 5046esac 5047fi 5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5049$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5050with_gnu_ld=$lt_cv_prog_gnu_ld 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5061$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5062if ${lt_cv_path_NM+:} false; then : 5063 $as_echo_n "(cached) " >&6 5064else 5065 if test -n "$NM"; then 5066 # Let the user override the test. 5067 lt_cv_path_NM=$NM 5068else 5069 lt_nm_to_check=${ac_tool_prefix}nm 5070 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5071 lt_nm_to_check="$lt_nm_to_check nm" 5072 fi 5073 for lt_tmp_nm in $lt_nm_to_check; do 5074 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5075 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5076 IFS=$lt_save_ifs 5077 test -z "$ac_dir" && ac_dir=. 5078 tmp_nm=$ac_dir/$lt_tmp_nm 5079 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5080 # Check to see if the nm accepts a BSD-compat flag. 5081 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5082 # nm: unknown option "B" ignored 5083 # Tru64's nm complains that /dev/null is an invalid object file 5084 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5085 case $build_os in 5086 mingw*) lt_bad_file=conftest.nm/nofile ;; 5087 *) lt_bad_file=/dev/null ;; 5088 esac 5089 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5090 *$lt_bad_file* | *'Invalid file or object type'*) 5091 lt_cv_path_NM="$tmp_nm -B" 5092 break 2 5093 ;; 5094 *) 5095 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5096 */dev/null*) 5097 lt_cv_path_NM="$tmp_nm -p" 5098 break 2 5099 ;; 5100 *) 5101 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5102 continue # so that we can try to find one that supports BSD flags 5103 ;; 5104 esac 5105 ;; 5106 esac 5107 fi 5108 done 5109 IFS=$lt_save_ifs 5110 done 5111 : ${lt_cv_path_NM=no} 5112fi 5113fi 5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5115$as_echo "$lt_cv_path_NM" >&6; } 5116if test no != "$lt_cv_path_NM"; then 5117 NM=$lt_cv_path_NM 5118else 5119 # Didn't find any BSD compatible name lister, look for dumpbin. 5120 if test -n "$DUMPBIN"; then : 5121 # Let the user override the test. 5122 else 5123 if test -n "$ac_tool_prefix"; then 5124 for ac_prog in dumpbin "link -dump" 5125 do 5126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5127set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5129$as_echo_n "checking for $ac_word... " >&6; } 5130if ${ac_cv_prog_DUMPBIN+:} false; then : 5131 $as_echo_n "(cached) " >&6 5132else 5133 if test -n "$DUMPBIN"; then 5134 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5135else 5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5137for as_dir in $PATH 5138do 5139 IFS=$as_save_IFS 5140 test -z "$as_dir" && as_dir=. 5141 for ac_exec_ext in '' $ac_executable_extensions; do 5142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5143 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5145 break 2 5146 fi 5147done 5148 done 5149IFS=$as_save_IFS 5150 5151fi 5152fi 5153DUMPBIN=$ac_cv_prog_DUMPBIN 5154if test -n "$DUMPBIN"; then 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5156$as_echo "$DUMPBIN" >&6; } 5157else 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5159$as_echo "no" >&6; } 5160fi 5161 5162 5163 test -n "$DUMPBIN" && break 5164 done 5165fi 5166if test -z "$DUMPBIN"; then 5167 ac_ct_DUMPBIN=$DUMPBIN 5168 for ac_prog in dumpbin "link -dump" 5169do 5170 # Extract the first word of "$ac_prog", so it can be a program name with args. 5171set dummy $ac_prog; ac_word=$2 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5173$as_echo_n "checking for $ac_word... " >&6; } 5174if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5175 $as_echo_n "(cached) " >&6 5176else 5177 if test -n "$ac_ct_DUMPBIN"; then 5178 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5179else 5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5181for as_dir in $PATH 5182do 5183 IFS=$as_save_IFS 5184 test -z "$as_dir" && as_dir=. 5185 for ac_exec_ext in '' $ac_executable_extensions; do 5186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5187 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5189 break 2 5190 fi 5191done 5192 done 5193IFS=$as_save_IFS 5194 5195fi 5196fi 5197ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5198if test -n "$ac_ct_DUMPBIN"; then 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5200$as_echo "$ac_ct_DUMPBIN" >&6; } 5201else 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5203$as_echo "no" >&6; } 5204fi 5205 5206 5207 test -n "$ac_ct_DUMPBIN" && break 5208done 5209 5210 if test "x$ac_ct_DUMPBIN" = x; then 5211 DUMPBIN=":" 5212 else 5213 case $cross_compiling:$ac_tool_warned in 5214yes:) 5215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5217ac_tool_warned=yes ;; 5218esac 5219 DUMPBIN=$ac_ct_DUMPBIN 5220 fi 5221fi 5222 5223 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5224 *COFF*) 5225 DUMPBIN="$DUMPBIN -symbols -headers" 5226 ;; 5227 *) 5228 DUMPBIN=: 5229 ;; 5230 esac 5231 fi 5232 5233 if test : != "$DUMPBIN"; then 5234 NM=$DUMPBIN 5235 fi 5236fi 5237test -z "$NM" && NM=nm 5238 5239 5240 5241 5242 5243 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5245$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5246if ${lt_cv_nm_interface+:} false; then : 5247 $as_echo_n "(cached) " >&6 5248else 5249 lt_cv_nm_interface="BSD nm" 5250 echo "int some_variable = 0;" > conftest.$ac_ext 5251 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5252 (eval "$ac_compile" 2>conftest.err) 5253 cat conftest.err >&5 5254 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5255 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5256 cat conftest.err >&5 5257 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5258 cat conftest.out >&5 5259 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5260 lt_cv_nm_interface="MS dumpbin" 5261 fi 5262 rm -f conftest* 5263fi 5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5265$as_echo "$lt_cv_nm_interface" >&6; } 5266 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5268$as_echo_n "checking whether ln -s works... " >&6; } 5269LN_S=$as_ln_s 5270if test "$LN_S" = "ln -s"; then 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5272$as_echo "yes" >&6; } 5273else 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5275$as_echo "no, using $LN_S" >&6; } 5276fi 5277 5278# find the maximum length of command line arguments 5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5280$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5281if ${lt_cv_sys_max_cmd_len+:} false; then : 5282 $as_echo_n "(cached) " >&6 5283else 5284 i=0 5285 teststring=ABCD 5286 5287 case $build_os in 5288 msdosdjgpp*) 5289 # On DJGPP, this test can blow up pretty badly due to problems in libc 5290 # (any single argument exceeding 2000 bytes causes a buffer overrun 5291 # during glob expansion). Even if it were fixed, the result of this 5292 # check would be larger than it should be. 5293 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5294 ;; 5295 5296 gnu*) 5297 # Under GNU Hurd, this test is not required because there is 5298 # no limit to the length of command line arguments. 5299 # Libtool will interpret -1 as no limit whatsoever 5300 lt_cv_sys_max_cmd_len=-1; 5301 ;; 5302 5303 cygwin* | mingw* | cegcc*) 5304 # On Win9x/ME, this test blows up -- it succeeds, but takes 5305 # about 5 minutes as the teststring grows exponentially. 5306 # Worse, since 9x/ME are not pre-emptively multitasking, 5307 # you end up with a "frozen" computer, even though with patience 5308 # the test eventually succeeds (with a max line length of 256k). 5309 # Instead, let's just punt: use the minimum linelength reported by 5310 # all of the supported platforms: 8192 (on NT/2K/XP). 5311 lt_cv_sys_max_cmd_len=8192; 5312 ;; 5313 5314 mint*) 5315 # On MiNT this can take a long time and run out of memory. 5316 lt_cv_sys_max_cmd_len=8192; 5317 ;; 5318 5319 amigaos*) 5320 # On AmigaOS with pdksh, this test takes hours, literally. 5321 # So we just punt and use a minimum line length of 8192. 5322 lt_cv_sys_max_cmd_len=8192; 5323 ;; 5324 5325 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5326 # This has been around since 386BSD, at least. Likely further. 5327 if test -x /sbin/sysctl; then 5328 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5329 elif test -x /usr/sbin/sysctl; then 5330 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5331 else 5332 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5333 fi 5334 # And add a safety zone 5335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5337 ;; 5338 5339 interix*) 5340 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5341 lt_cv_sys_max_cmd_len=196608 5342 ;; 5343 5344 os2*) 5345 # The test takes a long time on OS/2. 5346 lt_cv_sys_max_cmd_len=8192 5347 ;; 5348 5349 osf*) 5350 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5351 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5352 # nice to cause kernel panics so lets avoid the loop below. 5353 # First set a reasonable default. 5354 lt_cv_sys_max_cmd_len=16384 5355 # 5356 if test -x /sbin/sysconfig; then 5357 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5358 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5359 esac 5360 fi 5361 ;; 5362 sco3.2v5*) 5363 lt_cv_sys_max_cmd_len=102400 5364 ;; 5365 sysv5* | sco5v6* | sysv4.2uw2*) 5366 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5367 if test -n "$kargmax"; then 5368 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5369 else 5370 lt_cv_sys_max_cmd_len=32768 5371 fi 5372 ;; 5373 *) 5374 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5375 if test -n "$lt_cv_sys_max_cmd_len" && \ 5376 test undefined != "$lt_cv_sys_max_cmd_len"; then 5377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5379 else 5380 # Make teststring a little bigger before we do anything with it. 5381 # a 1K string should be a reasonable start. 5382 for i in 1 2 3 4 5 6 7 8; do 5383 teststring=$teststring$teststring 5384 done 5385 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5386 # If test is not a shell built-in, we'll probably end up computing a 5387 # maximum length that is only half of the actual maximum length, but 5388 # we can't tell. 5389 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5390 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5391 test 17 != "$i" # 1/2 MB should be enough 5392 do 5393 i=`expr $i + 1` 5394 teststring=$teststring$teststring 5395 done 5396 # Only check the string length outside the loop. 5397 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5398 teststring= 5399 # Add a significant safety factor because C++ compilers can tack on 5400 # massive amounts of additional arguments before passing them to the 5401 # linker. It appears as though 1/2 is a usable value. 5402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5403 fi 5404 ;; 5405 esac 5406 5407fi 5408 5409if test -n "$lt_cv_sys_max_cmd_len"; then 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5411$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5412else 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5414$as_echo "none" >&6; } 5415fi 5416max_cmd_len=$lt_cv_sys_max_cmd_len 5417 5418 5419 5420 5421 5422 5423: ${CP="cp -f"} 5424: ${MV="mv -f"} 5425: ${RM="rm -f"} 5426 5427if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5428 lt_unset=unset 5429else 5430 lt_unset=false 5431fi 5432 5433 5434 5435 5436 5437# test EBCDIC or ASCII 5438case `echo X|tr X '\101'` in 5439 A) # ASCII based system 5440 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5441 lt_SP2NL='tr \040 \012' 5442 lt_NL2SP='tr \015\012 \040\040' 5443 ;; 5444 *) # EBCDIC based system 5445 lt_SP2NL='tr \100 \n' 5446 lt_NL2SP='tr \r\n \100\100' 5447 ;; 5448esac 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5459$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5460if ${lt_cv_to_host_file_cmd+:} false; then : 5461 $as_echo_n "(cached) " >&6 5462else 5463 case $host in 5464 *-*-mingw* ) 5465 case $build in 5466 *-*-mingw* ) # actually msys 5467 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5468 ;; 5469 *-*-cygwin* ) 5470 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5471 ;; 5472 * ) # otherwise, assume *nix 5473 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5474 ;; 5475 esac 5476 ;; 5477 *-*-cygwin* ) 5478 case $build in 5479 *-*-mingw* ) # actually msys 5480 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5481 ;; 5482 *-*-cygwin* ) 5483 lt_cv_to_host_file_cmd=func_convert_file_noop 5484 ;; 5485 * ) # otherwise, assume *nix 5486 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5487 ;; 5488 esac 5489 ;; 5490 * ) # unhandled hosts (and "normal" native builds) 5491 lt_cv_to_host_file_cmd=func_convert_file_noop 5492 ;; 5493esac 5494 5495fi 5496 5497to_host_file_cmd=$lt_cv_to_host_file_cmd 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5499$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5500 5501 5502 5503 5504 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5506$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5507if ${lt_cv_to_tool_file_cmd+:} false; then : 5508 $as_echo_n "(cached) " >&6 5509else 5510 #assume ordinary cross tools, or native build. 5511lt_cv_to_tool_file_cmd=func_convert_file_noop 5512case $host in 5513 *-*-mingw* ) 5514 case $build in 5515 *-*-mingw* ) # actually msys 5516 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5517 ;; 5518 esac 5519 ;; 5520esac 5521 5522fi 5523 5524to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5526$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5527 5528 5529 5530 5531 5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5533$as_echo_n "checking for $LD option to reload object files... " >&6; } 5534if ${lt_cv_ld_reload_flag+:} false; then : 5535 $as_echo_n "(cached) " >&6 5536else 5537 lt_cv_ld_reload_flag='-r' 5538fi 5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5540$as_echo "$lt_cv_ld_reload_flag" >&6; } 5541reload_flag=$lt_cv_ld_reload_flag 5542case $reload_flag in 5543"" | " "*) ;; 5544*) reload_flag=" $reload_flag" ;; 5545esac 5546reload_cmds='$LD$reload_flag -o $output$reload_objs' 5547case $host_os in 5548 cygwin* | mingw* | pw32* | cegcc*) 5549 if test yes != "$GCC"; then 5550 reload_cmds=false 5551 fi 5552 ;; 5553 darwin*) 5554 if test yes = "$GCC"; then 5555 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5556 else 5557 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5558 fi 5559 ;; 5560esac 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570if test -n "$ac_tool_prefix"; then 5571 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5572set dummy ${ac_tool_prefix}objdump; ac_word=$2 5573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5574$as_echo_n "checking for $ac_word... " >&6; } 5575if ${ac_cv_prog_OBJDUMP+:} false; then : 5576 $as_echo_n "(cached) " >&6 5577else 5578 if test -n "$OBJDUMP"; then 5579 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5580else 5581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5582for as_dir in $PATH 5583do 5584 IFS=$as_save_IFS 5585 test -z "$as_dir" && as_dir=. 5586 for ac_exec_ext in '' $ac_executable_extensions; do 5587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5588 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5590 break 2 5591 fi 5592done 5593 done 5594IFS=$as_save_IFS 5595 5596fi 5597fi 5598OBJDUMP=$ac_cv_prog_OBJDUMP 5599if test -n "$OBJDUMP"; then 5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5601$as_echo "$OBJDUMP" >&6; } 5602else 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5604$as_echo "no" >&6; } 5605fi 5606 5607 5608fi 5609if test -z "$ac_cv_prog_OBJDUMP"; then 5610 ac_ct_OBJDUMP=$OBJDUMP 5611 # Extract the first word of "objdump", so it can be a program name with args. 5612set dummy objdump; ac_word=$2 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5614$as_echo_n "checking for $ac_word... " >&6; } 5615if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5616 $as_echo_n "(cached) " >&6 5617else 5618 if test -n "$ac_ct_OBJDUMP"; then 5619 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5620else 5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5622for as_dir in $PATH 5623do 5624 IFS=$as_save_IFS 5625 test -z "$as_dir" && as_dir=. 5626 for ac_exec_ext in '' $ac_executable_extensions; do 5627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5628 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5630 break 2 5631 fi 5632done 5633 done 5634IFS=$as_save_IFS 5635 5636fi 5637fi 5638ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5639if test -n "$ac_ct_OBJDUMP"; then 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5641$as_echo "$ac_ct_OBJDUMP" >&6; } 5642else 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5644$as_echo "no" >&6; } 5645fi 5646 5647 if test "x$ac_ct_OBJDUMP" = x; then 5648 OBJDUMP="false" 5649 else 5650 case $cross_compiling:$ac_tool_warned in 5651yes:) 5652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5654ac_tool_warned=yes ;; 5655esac 5656 OBJDUMP=$ac_ct_OBJDUMP 5657 fi 5658else 5659 OBJDUMP="$ac_cv_prog_OBJDUMP" 5660fi 5661 5662test -z "$OBJDUMP" && OBJDUMP=objdump 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5673$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5674if ${lt_cv_deplibs_check_method+:} false; then : 5675 $as_echo_n "(cached) " >&6 5676else 5677 lt_cv_file_magic_cmd='$MAGIC_CMD' 5678lt_cv_file_magic_test_file= 5679lt_cv_deplibs_check_method='unknown' 5680# Need to set the preceding variable on all platforms that support 5681# interlibrary dependencies. 5682# 'none' -- dependencies not supported. 5683# 'unknown' -- same as none, but documents that we really don't know. 5684# 'pass_all' -- all dependencies passed with no checks. 5685# 'test_compile' -- check by making test program. 5686# 'file_magic [[regex]]' -- check by looking for files in library path 5687# that responds to the $file_magic_cmd with a given extended regex. 5688# If you have 'file' or equivalent on your system and you're not sure 5689# whether 'pass_all' will *always* work, you probably want this one. 5690 5691case $host_os in 5692aix[4-9]*) 5693 lt_cv_deplibs_check_method=pass_all 5694 ;; 5695 5696beos*) 5697 lt_cv_deplibs_check_method=pass_all 5698 ;; 5699 5700bsdi[45]*) 5701 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5702 lt_cv_file_magic_cmd='/usr/bin/file -L' 5703 lt_cv_file_magic_test_file=/shlib/libc.so 5704 ;; 5705 5706cygwin*) 5707 # func_win32_libid is a shell function defined in ltmain.sh 5708 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5709 lt_cv_file_magic_cmd='func_win32_libid' 5710 ;; 5711 5712mingw* | pw32*) 5713 # Base MSYS/MinGW do not provide the 'file' command needed by 5714 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5715 # unless we find 'file', for example because we are cross-compiling. 5716 if ( file / ) >/dev/null 2>&1; then 5717 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5718 lt_cv_file_magic_cmd='func_win32_libid' 5719 else 5720 # Keep this pattern in sync with the one in func_win32_libid. 5721 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5722 lt_cv_file_magic_cmd='$OBJDUMP -f' 5723 fi 5724 ;; 5725 5726cegcc*) 5727 # use the weaker test based on 'objdump'. See mingw*. 5728 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5729 lt_cv_file_magic_cmd='$OBJDUMP -f' 5730 ;; 5731 5732darwin* | rhapsody*) 5733 lt_cv_deplibs_check_method=pass_all 5734 ;; 5735 5736freebsd* | dragonfly*) 5737 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5738 case $host_cpu in 5739 i*86 ) 5740 # Not sure whether the presence of OpenBSD here was a mistake. 5741 # Let's accept both of them until this is cleared up. 5742 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5743 lt_cv_file_magic_cmd=/usr/bin/file 5744 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5745 ;; 5746 esac 5747 else 5748 lt_cv_deplibs_check_method=pass_all 5749 fi 5750 ;; 5751 5752haiku*) 5753 lt_cv_deplibs_check_method=pass_all 5754 ;; 5755 5756hpux10.20* | hpux11*) 5757 lt_cv_file_magic_cmd=/usr/bin/file 5758 case $host_cpu in 5759 ia64*) 5760 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5761 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5762 ;; 5763 hppa*64*) 5764 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]' 5765 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5766 ;; 5767 *) 5768 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5769 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5770 ;; 5771 esac 5772 ;; 5773 5774interix[3-9]*) 5775 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5777 ;; 5778 5779irix5* | irix6* | nonstopux*) 5780 case $LD in 5781 *-32|*"-32 ") libmagic=32-bit;; 5782 *-n32|*"-n32 ") libmagic=N32;; 5783 *-64|*"-64 ") libmagic=64-bit;; 5784 *) libmagic=never-match;; 5785 esac 5786 lt_cv_deplibs_check_method=pass_all 5787 ;; 5788 5789# This must be glibc/ELF. 5790linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5791 lt_cv_deplibs_check_method=pass_all 5792 ;; 5793 5794netbsd* | netbsdelf*-gnu) 5795 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5797 else 5798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5799 fi 5800 ;; 5801 5802newos6*) 5803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5804 lt_cv_file_magic_cmd=/usr/bin/file 5805 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5806 ;; 5807 5808*nto* | *qnx*) 5809 lt_cv_deplibs_check_method=pass_all 5810 ;; 5811 5812openbsd* | bitrig*) 5813 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5815 else 5816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5817 fi 5818 ;; 5819 5820osf3* | osf4* | osf5*) 5821 lt_cv_deplibs_check_method=pass_all 5822 ;; 5823 5824rdos*) 5825 lt_cv_deplibs_check_method=pass_all 5826 ;; 5827 5828solaris*) 5829 lt_cv_deplibs_check_method=pass_all 5830 ;; 5831 5832sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5833 lt_cv_deplibs_check_method=pass_all 5834 ;; 5835 5836sysv4 | sysv4.3*) 5837 case $host_vendor in 5838 motorola) 5839 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]' 5840 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5841 ;; 5842 ncr) 5843 lt_cv_deplibs_check_method=pass_all 5844 ;; 5845 sequent) 5846 lt_cv_file_magic_cmd='/bin/file' 5847 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5848 ;; 5849 sni) 5850 lt_cv_file_magic_cmd='/bin/file' 5851 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5852 lt_cv_file_magic_test_file=/lib/libc.so 5853 ;; 5854 siemens) 5855 lt_cv_deplibs_check_method=pass_all 5856 ;; 5857 pc) 5858 lt_cv_deplibs_check_method=pass_all 5859 ;; 5860 esac 5861 ;; 5862 5863tpf*) 5864 lt_cv_deplibs_check_method=pass_all 5865 ;; 5866os2*) 5867 lt_cv_deplibs_check_method=pass_all 5868 ;; 5869esac 5870 5871fi 5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5873$as_echo "$lt_cv_deplibs_check_method" >&6; } 5874 5875file_magic_glob= 5876want_nocaseglob=no 5877if test "$build" = "$host"; then 5878 case $host_os in 5879 mingw* | pw32*) 5880 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5881 want_nocaseglob=yes 5882 else 5883 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5884 fi 5885 ;; 5886 esac 5887fi 5888 5889file_magic_cmd=$lt_cv_file_magic_cmd 5890deplibs_check_method=$lt_cv_deplibs_check_method 5891test -z "$deplibs_check_method" && deplibs_check_method=unknown 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914if test -n "$ac_tool_prefix"; then 5915 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5916set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5918$as_echo_n "checking for $ac_word... " >&6; } 5919if ${ac_cv_prog_DLLTOOL+:} false; then : 5920 $as_echo_n "(cached) " >&6 5921else 5922 if test -n "$DLLTOOL"; then 5923 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5924else 5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5926for as_dir in $PATH 5927do 5928 IFS=$as_save_IFS 5929 test -z "$as_dir" && as_dir=. 5930 for ac_exec_ext in '' $ac_executable_extensions; do 5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5932 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5934 break 2 5935 fi 5936done 5937 done 5938IFS=$as_save_IFS 5939 5940fi 5941fi 5942DLLTOOL=$ac_cv_prog_DLLTOOL 5943if test -n "$DLLTOOL"; then 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5945$as_echo "$DLLTOOL" >&6; } 5946else 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5948$as_echo "no" >&6; } 5949fi 5950 5951 5952fi 5953if test -z "$ac_cv_prog_DLLTOOL"; then 5954 ac_ct_DLLTOOL=$DLLTOOL 5955 # Extract the first word of "dlltool", so it can be a program name with args. 5956set dummy dlltool; ac_word=$2 5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5958$as_echo_n "checking for $ac_word... " >&6; } 5959if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5960 $as_echo_n "(cached) " >&6 5961else 5962 if test -n "$ac_ct_DLLTOOL"; then 5963 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5964else 5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5966for as_dir in $PATH 5967do 5968 IFS=$as_save_IFS 5969 test -z "$as_dir" && as_dir=. 5970 for ac_exec_ext in '' $ac_executable_extensions; do 5971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5972 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5974 break 2 5975 fi 5976done 5977 done 5978IFS=$as_save_IFS 5979 5980fi 5981fi 5982ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5983if test -n "$ac_ct_DLLTOOL"; then 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5985$as_echo "$ac_ct_DLLTOOL" >&6; } 5986else 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5988$as_echo "no" >&6; } 5989fi 5990 5991 if test "x$ac_ct_DLLTOOL" = x; then 5992 DLLTOOL="false" 5993 else 5994 case $cross_compiling:$ac_tool_warned in 5995yes:) 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5998ac_tool_warned=yes ;; 5999esac 6000 DLLTOOL=$ac_ct_DLLTOOL 6001 fi 6002else 6003 DLLTOOL="$ac_cv_prog_DLLTOOL" 6004fi 6005 6006test -z "$DLLTOOL" && DLLTOOL=dlltool 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6018$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6019if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6020 $as_echo_n "(cached) " >&6 6021else 6022 lt_cv_sharedlib_from_linklib_cmd='unknown' 6023 6024case $host_os in 6025cygwin* | mingw* | pw32* | cegcc*) 6026 # two different shell functions defined in ltmain.sh; 6027 # decide which one to use based on capabilities of $DLLTOOL 6028 case `$DLLTOOL --help 2>&1` in 6029 *--identify-strict*) 6030 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6031 ;; 6032 *) 6033 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6034 ;; 6035 esac 6036 ;; 6037*) 6038 # fallback: assume linklib IS sharedlib 6039 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6040 ;; 6041esac 6042 6043fi 6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6045$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6046sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6047test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6048 6049 6050 6051 6052 6053 6054 6055if test -n "$ac_tool_prefix"; then 6056 for ac_prog in ar 6057 do 6058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6059set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6061$as_echo_n "checking for $ac_word... " >&6; } 6062if ${ac_cv_prog_AR+:} false; then : 6063 $as_echo_n "(cached) " >&6 6064else 6065 if test -n "$AR"; then 6066 ac_cv_prog_AR="$AR" # Let the user override the test. 6067else 6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6069for as_dir in $PATH 6070do 6071 IFS=$as_save_IFS 6072 test -z "$as_dir" && as_dir=. 6073 for ac_exec_ext in '' $ac_executable_extensions; do 6074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6075 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6077 break 2 6078 fi 6079done 6080 done 6081IFS=$as_save_IFS 6082 6083fi 6084fi 6085AR=$ac_cv_prog_AR 6086if test -n "$AR"; then 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6088$as_echo "$AR" >&6; } 6089else 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6091$as_echo "no" >&6; } 6092fi 6093 6094 6095 test -n "$AR" && break 6096 done 6097fi 6098if test -z "$AR"; then 6099 ac_ct_AR=$AR 6100 for ac_prog in ar 6101do 6102 # Extract the first word of "$ac_prog", so it can be a program name with args. 6103set dummy $ac_prog; ac_word=$2 6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6105$as_echo_n "checking for $ac_word... " >&6; } 6106if ${ac_cv_prog_ac_ct_AR+:} false; then : 6107 $as_echo_n "(cached) " >&6 6108else 6109 if test -n "$ac_ct_AR"; then 6110 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6111else 6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6113for as_dir in $PATH 6114do 6115 IFS=$as_save_IFS 6116 test -z "$as_dir" && as_dir=. 6117 for ac_exec_ext in '' $ac_executable_extensions; do 6118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6119 ac_cv_prog_ac_ct_AR="$ac_prog" 6120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6121 break 2 6122 fi 6123done 6124 done 6125IFS=$as_save_IFS 6126 6127fi 6128fi 6129ac_ct_AR=$ac_cv_prog_ac_ct_AR 6130if test -n "$ac_ct_AR"; then 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6132$as_echo "$ac_ct_AR" >&6; } 6133else 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6135$as_echo "no" >&6; } 6136fi 6137 6138 6139 test -n "$ac_ct_AR" && break 6140done 6141 6142 if test "x$ac_ct_AR" = x; then 6143 AR="false" 6144 else 6145 case $cross_compiling:$ac_tool_warned in 6146yes:) 6147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6149ac_tool_warned=yes ;; 6150esac 6151 AR=$ac_ct_AR 6152 fi 6153fi 6154 6155: ${AR=ar} 6156: ${AR_FLAGS=cru} 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6169$as_echo_n "checking for archiver @FILE support... " >&6; } 6170if ${lt_cv_ar_at_file+:} false; then : 6171 $as_echo_n "(cached) " >&6 6172else 6173 lt_cv_ar_at_file=no 6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6175/* end confdefs.h. */ 6176 6177int 6178main () 6179{ 6180 6181 ; 6182 return 0; 6183} 6184_ACEOF 6185if ac_fn_c_try_compile "$LINENO"; then : 6186 echo conftest.$ac_objext > conftest.lst 6187 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6189 (eval $lt_ar_try) 2>&5 6190 ac_status=$? 6191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6192 test $ac_status = 0; } 6193 if test 0 -eq "$ac_status"; then 6194 # Ensure the archiver fails upon bogus file names. 6195 rm -f conftest.$ac_objext libconftest.a 6196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6197 (eval $lt_ar_try) 2>&5 6198 ac_status=$? 6199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6200 test $ac_status = 0; } 6201 if test 0 -ne "$ac_status"; then 6202 lt_cv_ar_at_file=@ 6203 fi 6204 fi 6205 rm -f conftest.* libconftest.a 6206 6207fi 6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6209 6210fi 6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6212$as_echo "$lt_cv_ar_at_file" >&6; } 6213 6214if test no = "$lt_cv_ar_at_file"; then 6215 archiver_list_spec= 6216else 6217 archiver_list_spec=$lt_cv_ar_at_file 6218fi 6219 6220 6221 6222 6223 6224 6225 6226if test -n "$ac_tool_prefix"; then 6227 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6228set dummy ${ac_tool_prefix}strip; ac_word=$2 6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6230$as_echo_n "checking for $ac_word... " >&6; } 6231if ${ac_cv_prog_STRIP+:} false; then : 6232 $as_echo_n "(cached) " >&6 6233else 6234 if test -n "$STRIP"; then 6235 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6236else 6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6238for as_dir in $PATH 6239do 6240 IFS=$as_save_IFS 6241 test -z "$as_dir" && as_dir=. 6242 for ac_exec_ext in '' $ac_executable_extensions; do 6243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6244 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6246 break 2 6247 fi 6248done 6249 done 6250IFS=$as_save_IFS 6251 6252fi 6253fi 6254STRIP=$ac_cv_prog_STRIP 6255if test -n "$STRIP"; then 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6257$as_echo "$STRIP" >&6; } 6258else 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6260$as_echo "no" >&6; } 6261fi 6262 6263 6264fi 6265if test -z "$ac_cv_prog_STRIP"; then 6266 ac_ct_STRIP=$STRIP 6267 # Extract the first word of "strip", so it can be a program name with args. 6268set dummy strip; ac_word=$2 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6270$as_echo_n "checking for $ac_word... " >&6; } 6271if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273else 6274 if test -n "$ac_ct_STRIP"; then 6275 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6276else 6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6278for as_dir in $PATH 6279do 6280 IFS=$as_save_IFS 6281 test -z "$as_dir" && as_dir=. 6282 for ac_exec_ext in '' $ac_executable_extensions; do 6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6284 ac_cv_prog_ac_ct_STRIP="strip" 6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6286 break 2 6287 fi 6288done 6289 done 6290IFS=$as_save_IFS 6291 6292fi 6293fi 6294ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6295if test -n "$ac_ct_STRIP"; then 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6297$as_echo "$ac_ct_STRIP" >&6; } 6298else 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6300$as_echo "no" >&6; } 6301fi 6302 6303 if test "x$ac_ct_STRIP" = x; then 6304 STRIP=":" 6305 else 6306 case $cross_compiling:$ac_tool_warned in 6307yes:) 6308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6310ac_tool_warned=yes ;; 6311esac 6312 STRIP=$ac_ct_STRIP 6313 fi 6314else 6315 STRIP="$ac_cv_prog_STRIP" 6316fi 6317 6318test -z "$STRIP" && STRIP=: 6319 6320 6321 6322 6323 6324 6325if test -n "$ac_tool_prefix"; then 6326 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6327set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6329$as_echo_n "checking for $ac_word... " >&6; } 6330if ${ac_cv_prog_RANLIB+:} false; then : 6331 $as_echo_n "(cached) " >&6 6332else 6333 if test -n "$RANLIB"; then 6334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6335else 6336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6337for as_dir in $PATH 6338do 6339 IFS=$as_save_IFS 6340 test -z "$as_dir" && as_dir=. 6341 for ac_exec_ext in '' $ac_executable_extensions; do 6342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6343 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6345 break 2 6346 fi 6347done 6348 done 6349IFS=$as_save_IFS 6350 6351fi 6352fi 6353RANLIB=$ac_cv_prog_RANLIB 6354if test -n "$RANLIB"; then 6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6356$as_echo "$RANLIB" >&6; } 6357else 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6359$as_echo "no" >&6; } 6360fi 6361 6362 6363fi 6364if test -z "$ac_cv_prog_RANLIB"; then 6365 ac_ct_RANLIB=$RANLIB 6366 # Extract the first word of "ranlib", so it can be a program name with args. 6367set dummy ranlib; ac_word=$2 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6369$as_echo_n "checking for $ac_word... " >&6; } 6370if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6371 $as_echo_n "(cached) " >&6 6372else 6373 if test -n "$ac_ct_RANLIB"; then 6374 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6375else 6376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6377for as_dir in $PATH 6378do 6379 IFS=$as_save_IFS 6380 test -z "$as_dir" && as_dir=. 6381 for ac_exec_ext in '' $ac_executable_extensions; do 6382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6383 ac_cv_prog_ac_ct_RANLIB="ranlib" 6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6385 break 2 6386 fi 6387done 6388 done 6389IFS=$as_save_IFS 6390 6391fi 6392fi 6393ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6394if test -n "$ac_ct_RANLIB"; then 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6396$as_echo "$ac_ct_RANLIB" >&6; } 6397else 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6399$as_echo "no" >&6; } 6400fi 6401 6402 if test "x$ac_ct_RANLIB" = x; then 6403 RANLIB=":" 6404 else 6405 case $cross_compiling:$ac_tool_warned in 6406yes:) 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6409ac_tool_warned=yes ;; 6410esac 6411 RANLIB=$ac_ct_RANLIB 6412 fi 6413else 6414 RANLIB="$ac_cv_prog_RANLIB" 6415fi 6416 6417test -z "$RANLIB" && RANLIB=: 6418 6419 6420 6421 6422 6423 6424# Determine commands to create old-style static archives. 6425old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6426old_postinstall_cmds='chmod 644 $oldlib' 6427old_postuninstall_cmds= 6428 6429if test -n "$RANLIB"; then 6430 case $host_os in 6431 bitrig* | openbsd*) 6432 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6433 ;; 6434 *) 6435 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6436 ;; 6437 esac 6438 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6439fi 6440 6441case $host_os in 6442 darwin*) 6443 lock_old_archive_extraction=yes ;; 6444 *) 6445 lock_old_archive_extraction=no ;; 6446esac 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486# If no C compiler was specified, use CC. 6487LTCC=${LTCC-"$CC"} 6488 6489# If no C compiler flags were specified, use CFLAGS. 6490LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6491 6492# Allow CC to be a program name with arguments. 6493compiler=$CC 6494 6495 6496# Check for command to grab the raw symbol name followed by C symbol from nm. 6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6498$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6499if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6500 $as_echo_n "(cached) " >&6 6501else 6502 6503# These are sane defaults that work on at least a few old systems. 6504# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6505 6506# Character class describing NM global symbol codes. 6507symcode='[BCDEGRST]' 6508 6509# Regexp to match symbols that can be accessed directly from C. 6510sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6511 6512# Define system-specific variables. 6513case $host_os in 6514aix*) 6515 symcode='[BCDT]' 6516 ;; 6517cygwin* | mingw* | pw32* | cegcc*) 6518 symcode='[ABCDGISTW]' 6519 ;; 6520hpux*) 6521 if test ia64 = "$host_cpu"; then 6522 symcode='[ABCDEGRST]' 6523 fi 6524 ;; 6525irix* | nonstopux*) 6526 symcode='[BCDEGRST]' 6527 ;; 6528osf*) 6529 symcode='[BCDEGQRST]' 6530 ;; 6531solaris*) 6532 symcode='[BDRT]' 6533 ;; 6534sco3.2v5*) 6535 symcode='[DT]' 6536 ;; 6537sysv4.2uw2*) 6538 symcode='[DT]' 6539 ;; 6540sysv5* | sco5v6* | unixware* | OpenUNIX*) 6541 symcode='[ABDT]' 6542 ;; 6543sysv4) 6544 symcode='[DFNSTU]' 6545 ;; 6546esac 6547 6548# If we're using GNU nm, then use its standard symbol codes. 6549case `$NM -V 2>&1` in 6550*GNU* | *'with BFD'*) 6551 symcode='[ABCDGIRSTW]' ;; 6552esac 6553 6554if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6555 # Gets list of data symbols to import. 6556 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6557 # Adjust the below global symbol transforms to fixup imported variables. 6558 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6559 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6560 lt_c_name_lib_hook="\ 6561 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6562 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6563else 6564 # Disable hooks by default. 6565 lt_cv_sys_global_symbol_to_import= 6566 lt_cdecl_hook= 6567 lt_c_name_hook= 6568 lt_c_name_lib_hook= 6569fi 6570 6571# Transform an extracted symbol line into a proper C declaration. 6572# Some systems (esp. on ia64) link data and code symbols differently, 6573# so use this general approach. 6574lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6575$lt_cdecl_hook\ 6576" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6577" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6578 6579# Transform an extracted symbol line into symbol name and symbol address 6580lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6581$lt_c_name_hook\ 6582" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6583" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6584 6585# Transform an extracted symbol line into symbol name with lib prefix and 6586# symbol address. 6587lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6588$lt_c_name_lib_hook\ 6589" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6590" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6591" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6592 6593# Handle CRLF in mingw tool chain 6594opt_cr= 6595case $build_os in 6596mingw*) 6597 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6598 ;; 6599esac 6600 6601# Try without a prefix underscore, then with it. 6602for ac_symprfx in "" "_"; do 6603 6604 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6605 symxfrm="\\1 $ac_symprfx\\2 \\2" 6606 6607 # Write the raw and C identifiers. 6608 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6609 # Fake it for dumpbin and say T for any non-static function, 6610 # D for any global variable and I for any imported variable. 6611 # Also find C++ and __fastcall symbols from MSVC++, 6612 # which start with @ or ?. 6613 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6614" {last_section=section; section=\$ 3};"\ 6615" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6616" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6617" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6618" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6619" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6620" \$ 0!~/External *\|/{next};"\ 6621" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6622" {if(hide[section]) next};"\ 6623" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6624" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6625" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6626" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6627" ' prfx=^$ac_symprfx" 6628 else 6629 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6630 fi 6631 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6632 6633 # Check to see that the pipe works correctly. 6634 pipe_works=no 6635 6636 rm -f conftest* 6637 cat > conftest.$ac_ext <<_LT_EOF 6638#ifdef __cplusplus 6639extern "C" { 6640#endif 6641char nm_test_var; 6642void nm_test_func(void); 6643void nm_test_func(void){} 6644#ifdef __cplusplus 6645} 6646#endif 6647int main(){nm_test_var='a';nm_test_func();return(0);} 6648_LT_EOF 6649 6650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6651 (eval $ac_compile) 2>&5 6652 ac_status=$? 6653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6654 test $ac_status = 0; }; then 6655 # Now try to grab the symbols. 6656 nlist=conftest.nm 6657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6658 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6659 ac_status=$? 6660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6661 test $ac_status = 0; } && test -s "$nlist"; then 6662 # Try sorting and uniquifying the output. 6663 if sort "$nlist" | uniq > "$nlist"T; then 6664 mv -f "$nlist"T "$nlist" 6665 else 6666 rm -f "$nlist"T 6667 fi 6668 6669 # Make sure that we snagged all the symbols we need. 6670 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6671 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6672 cat <<_LT_EOF > conftest.$ac_ext 6673/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6674#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6675/* DATA imports from DLLs on WIN32 can't be const, because runtime 6676 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6677# define LT_DLSYM_CONST 6678#elif defined __osf__ 6679/* This system does not cope well with relocations in const data. */ 6680# define LT_DLSYM_CONST 6681#else 6682# define LT_DLSYM_CONST const 6683#endif 6684 6685#ifdef __cplusplus 6686extern "C" { 6687#endif 6688 6689_LT_EOF 6690 # Now generate the symbol file. 6691 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6692 6693 cat <<_LT_EOF >> conftest.$ac_ext 6694 6695/* The mapping between symbol names and symbols. */ 6696LT_DLSYM_CONST struct { 6697 const char *name; 6698 void *address; 6699} 6700lt__PROGRAM__LTX_preloaded_symbols[] = 6701{ 6702 { "@PROGRAM@", (void *) 0 }, 6703_LT_EOF 6704 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6705 cat <<\_LT_EOF >> conftest.$ac_ext 6706 {0, (void *) 0} 6707}; 6708 6709/* This works around a problem in FreeBSD linker */ 6710#ifdef FREEBSD_WORKAROUND 6711static const void *lt_preloaded_setup() { 6712 return lt__PROGRAM__LTX_preloaded_symbols; 6713} 6714#endif 6715 6716#ifdef __cplusplus 6717} 6718#endif 6719_LT_EOF 6720 # Now try linking the two files. 6721 mv conftest.$ac_objext conftstm.$ac_objext 6722 lt_globsym_save_LIBS=$LIBS 6723 lt_globsym_save_CFLAGS=$CFLAGS 6724 LIBS=conftstm.$ac_objext 6725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6727 (eval $ac_link) 2>&5 6728 ac_status=$? 6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6730 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6731 pipe_works=yes 6732 fi 6733 LIBS=$lt_globsym_save_LIBS 6734 CFLAGS=$lt_globsym_save_CFLAGS 6735 else 6736 echo "cannot find nm_test_func in $nlist" >&5 6737 fi 6738 else 6739 echo "cannot find nm_test_var in $nlist" >&5 6740 fi 6741 else 6742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6743 fi 6744 else 6745 echo "$progname: failed program was:" >&5 6746 cat conftest.$ac_ext >&5 6747 fi 6748 rm -rf conftest* conftst* 6749 6750 # Do not use the global_symbol_pipe unless it works. 6751 if test yes = "$pipe_works"; then 6752 break 6753 else 6754 lt_cv_sys_global_symbol_pipe= 6755 fi 6756done 6757 6758fi 6759 6760if test -z "$lt_cv_sys_global_symbol_pipe"; then 6761 lt_cv_sys_global_symbol_to_cdecl= 6762fi 6763if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6765$as_echo "failed" >&6; } 6766else 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6768$as_echo "ok" >&6; } 6769fi 6770 6771# Response file support. 6772if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6773 nm_file_list_spec='@' 6774elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6775 nm_file_list_spec='@' 6776fi 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6815$as_echo_n "checking for sysroot... " >&6; } 6816 6817# Check whether --with-sysroot was given. 6818if test "${with_sysroot+set}" = set; then : 6819 withval=$with_sysroot; 6820else 6821 with_sysroot=no 6822fi 6823 6824 6825lt_sysroot= 6826case $with_sysroot in #( 6827 yes) 6828 if test yes = "$GCC"; then 6829 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6830 fi 6831 ;; #( 6832 /*) 6833 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6834 ;; #( 6835 no|'') 6836 ;; #( 6837 *) 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6839$as_echo "$with_sysroot" >&6; } 6840 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6841 ;; 6842esac 6843 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6845$as_echo "${lt_sysroot:-no}" >&6; } 6846 6847 6848 6849 6850 6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6852$as_echo_n "checking for a working dd... " >&6; } 6853if ${ac_cv_path_lt_DD+:} false; then : 6854 $as_echo_n "(cached) " >&6 6855else 6856 printf 0123456789abcdef0123456789abcdef >conftest.i 6857cat conftest.i conftest.i >conftest2.i 6858: ${lt_DD:=$DD} 6859if test -z "$lt_DD"; then 6860 ac_path_lt_DD_found=false 6861 # Loop through the user's path and test for each of PROGNAME-LIST 6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6863for as_dir in $PATH 6864do 6865 IFS=$as_save_IFS 6866 test -z "$as_dir" && as_dir=. 6867 for ac_prog in dd; do 6868 for ac_exec_ext in '' $ac_executable_extensions; do 6869 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6870 as_fn_executable_p "$ac_path_lt_DD" || continue 6871if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6872 cmp -s conftest.i conftest.out \ 6873 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6874fi 6875 $ac_path_lt_DD_found && break 3 6876 done 6877 done 6878 done 6879IFS=$as_save_IFS 6880 if test -z "$ac_cv_path_lt_DD"; then 6881 : 6882 fi 6883else 6884 ac_cv_path_lt_DD=$lt_DD 6885fi 6886 6887rm -f conftest.i conftest2.i conftest.out 6888fi 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6890$as_echo "$ac_cv_path_lt_DD" >&6; } 6891 6892 6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6894$as_echo_n "checking how to truncate binary pipes... " >&6; } 6895if ${lt_cv_truncate_bin+:} false; then : 6896 $as_echo_n "(cached) " >&6 6897else 6898 printf 0123456789abcdef0123456789abcdef >conftest.i 6899cat conftest.i conftest.i >conftest2.i 6900lt_cv_truncate_bin= 6901if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6902 cmp -s conftest.i conftest.out \ 6903 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6904fi 6905rm -f conftest.i conftest2.i conftest.out 6906test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6907fi 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6909$as_echo "$lt_cv_truncate_bin" >&6; } 6910 6911 6912 6913 6914 6915 6916 6917# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6918func_cc_basename () 6919{ 6920 for cc_temp in $*""; do 6921 case $cc_temp in 6922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6924 \-*) ;; 6925 *) break;; 6926 esac 6927 done 6928 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6929} 6930 6931# Check whether --enable-libtool-lock was given. 6932if test "${enable_libtool_lock+set}" = set; then : 6933 enableval=$enable_libtool_lock; 6934fi 6935 6936test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6937 6938# Some flags need to be propagated to the compiler or linker for good 6939# libtool support. 6940case $host in 6941ia64-*-hpux*) 6942 # Find out what ABI is being produced by ac_compile, and set mode 6943 # options accordingly. 6944 echo 'int i;' > conftest.$ac_ext 6945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6946 (eval $ac_compile) 2>&5 6947 ac_status=$? 6948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6949 test $ac_status = 0; }; then 6950 case `/usr/bin/file conftest.$ac_objext` in 6951 *ELF-32*) 6952 HPUX_IA64_MODE=32 6953 ;; 6954 *ELF-64*) 6955 HPUX_IA64_MODE=64 6956 ;; 6957 esac 6958 fi 6959 rm -rf conftest* 6960 ;; 6961*-*-irix6*) 6962 # Find out what ABI is being produced by ac_compile, and set linker 6963 # options accordingly. 6964 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6966 (eval $ac_compile) 2>&5 6967 ac_status=$? 6968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6969 test $ac_status = 0; }; then 6970 if test yes = "$lt_cv_prog_gnu_ld"; then 6971 case `/usr/bin/file conftest.$ac_objext` in 6972 *32-bit*) 6973 LD="${LD-ld} -melf32bsmip" 6974 ;; 6975 *N32*) 6976 LD="${LD-ld} -melf32bmipn32" 6977 ;; 6978 *64-bit*) 6979 LD="${LD-ld} -melf64bmip" 6980 ;; 6981 esac 6982 else 6983 case `/usr/bin/file conftest.$ac_objext` in 6984 *32-bit*) 6985 LD="${LD-ld} -32" 6986 ;; 6987 *N32*) 6988 LD="${LD-ld} -n32" 6989 ;; 6990 *64-bit*) 6991 LD="${LD-ld} -64" 6992 ;; 6993 esac 6994 fi 6995 fi 6996 rm -rf conftest* 6997 ;; 6998 6999mips64*-*linux*) 7000 # Find out what ABI is being produced by ac_compile, and set linker 7001 # options accordingly. 7002 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7004 (eval $ac_compile) 2>&5 7005 ac_status=$? 7006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7007 test $ac_status = 0; }; then 7008 emul=elf 7009 case `/usr/bin/file conftest.$ac_objext` in 7010 *32-bit*) 7011 emul="${emul}32" 7012 ;; 7013 *64-bit*) 7014 emul="${emul}64" 7015 ;; 7016 esac 7017 case `/usr/bin/file conftest.$ac_objext` in 7018 *MSB*) 7019 emul="${emul}btsmip" 7020 ;; 7021 *LSB*) 7022 emul="${emul}ltsmip" 7023 ;; 7024 esac 7025 case `/usr/bin/file conftest.$ac_objext` in 7026 *N32*) 7027 emul="${emul}n32" 7028 ;; 7029 esac 7030 LD="${LD-ld} -m $emul" 7031 fi 7032 rm -rf conftest* 7033 ;; 7034 7035x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7036s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7037 # Find out what ABI is being produced by ac_compile, and set linker 7038 # options accordingly. Note that the listed cases only cover the 7039 # situations where additional linker options are needed (such as when 7040 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7041 # vice versa); the common cases where no linker options are needed do 7042 # not appear in the list. 7043 echo 'int i;' > conftest.$ac_ext 7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7045 (eval $ac_compile) 2>&5 7046 ac_status=$? 7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7048 test $ac_status = 0; }; then 7049 case `/usr/bin/file conftest.o` in 7050 *32-bit*) 7051 case $host in 7052 x86_64-*kfreebsd*-gnu) 7053 LD="${LD-ld} -m elf_i386_fbsd" 7054 ;; 7055 x86_64-*linux*) 7056 case `/usr/bin/file conftest.o` in 7057 *x86-64*) 7058 LD="${LD-ld} -m elf32_x86_64" 7059 ;; 7060 *) 7061 LD="${LD-ld} -m elf_i386" 7062 ;; 7063 esac 7064 ;; 7065 powerpc64le-*linux*) 7066 LD="${LD-ld} -m elf32lppclinux" 7067 ;; 7068 powerpc64-*linux*) 7069 LD="${LD-ld} -m elf32ppclinux" 7070 ;; 7071 s390x-*linux*) 7072 LD="${LD-ld} -m elf_s390" 7073 ;; 7074 sparc64-*linux*) 7075 LD="${LD-ld} -m elf32_sparc" 7076 ;; 7077 esac 7078 ;; 7079 *64-bit*) 7080 case $host in 7081 x86_64-*kfreebsd*-gnu) 7082 LD="${LD-ld} -m elf_x86_64_fbsd" 7083 ;; 7084 x86_64-*linux*) 7085 LD="${LD-ld} -m elf_x86_64" 7086 ;; 7087 powerpcle-*linux*) 7088 LD="${LD-ld} -m elf64lppc" 7089 ;; 7090 powerpc-*linux*) 7091 LD="${LD-ld} -m elf64ppc" 7092 ;; 7093 s390*-*linux*|s390*-*tpf*) 7094 LD="${LD-ld} -m elf64_s390" 7095 ;; 7096 sparc*-*linux*) 7097 LD="${LD-ld} -m elf64_sparc" 7098 ;; 7099 esac 7100 ;; 7101 esac 7102 fi 7103 rm -rf conftest* 7104 ;; 7105 7106*-*-sco3.2v5*) 7107 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7108 SAVE_CFLAGS=$CFLAGS 7109 CFLAGS="$CFLAGS -belf" 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7111$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7112if ${lt_cv_cc_needs_belf+:} false; then : 7113 $as_echo_n "(cached) " >&6 7114else 7115 ac_ext=c 7116ac_cpp='$CPP $CPPFLAGS' 7117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7119ac_compiler_gnu=$ac_cv_c_compiler_gnu 7120 7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7122/* end confdefs.h. */ 7123 7124int 7125main () 7126{ 7127 7128 ; 7129 return 0; 7130} 7131_ACEOF 7132if ac_fn_c_try_link "$LINENO"; then : 7133 lt_cv_cc_needs_belf=yes 7134else 7135 lt_cv_cc_needs_belf=no 7136fi 7137rm -f core conftest.err conftest.$ac_objext \ 7138 conftest$ac_exeext conftest.$ac_ext 7139 ac_ext=c 7140ac_cpp='$CPP $CPPFLAGS' 7141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7143ac_compiler_gnu=$ac_cv_c_compiler_gnu 7144 7145fi 7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7147$as_echo "$lt_cv_cc_needs_belf" >&6; } 7148 if test yes != "$lt_cv_cc_needs_belf"; then 7149 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7150 CFLAGS=$SAVE_CFLAGS 7151 fi 7152 ;; 7153*-*solaris*) 7154 # Find out what ABI is being produced by ac_compile, and set linker 7155 # options accordingly. 7156 echo 'int i;' > conftest.$ac_ext 7157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7158 (eval $ac_compile) 2>&5 7159 ac_status=$? 7160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7161 test $ac_status = 0; }; then 7162 case `/usr/bin/file conftest.o` in 7163 *64-bit*) 7164 case $lt_cv_prog_gnu_ld in 7165 yes*) 7166 case $host in 7167 i?86-*-solaris*|x86_64-*-solaris*) 7168 LD="${LD-ld} -m elf_x86_64" 7169 ;; 7170 sparc*-*-solaris*) 7171 LD="${LD-ld} -m elf64_sparc" 7172 ;; 7173 esac 7174 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7175 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7176 LD=${LD-ld}_sol2 7177 fi 7178 ;; 7179 *) 7180 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7181 LD="${LD-ld} -64" 7182 fi 7183 ;; 7184 esac 7185 ;; 7186 esac 7187 fi 7188 rm -rf conftest* 7189 ;; 7190esac 7191 7192need_locks=$enable_libtool_lock 7193 7194if test -n "$ac_tool_prefix"; then 7195 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7196set dummy ${ac_tool_prefix}mt; ac_word=$2 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7198$as_echo_n "checking for $ac_word... " >&6; } 7199if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7200 $as_echo_n "(cached) " >&6 7201else 7202 if test -n "$MANIFEST_TOOL"; then 7203 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7204else 7205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7206for as_dir in $PATH 7207do 7208 IFS=$as_save_IFS 7209 test -z "$as_dir" && as_dir=. 7210 for ac_exec_ext in '' $ac_executable_extensions; do 7211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7212 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7214 break 2 7215 fi 7216done 7217 done 7218IFS=$as_save_IFS 7219 7220fi 7221fi 7222MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7223if test -n "$MANIFEST_TOOL"; then 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7225$as_echo "$MANIFEST_TOOL" >&6; } 7226else 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7228$as_echo "no" >&6; } 7229fi 7230 7231 7232fi 7233if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7234 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7235 # Extract the first word of "mt", so it can be a program name with args. 7236set dummy mt; ac_word=$2 7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7238$as_echo_n "checking for $ac_word... " >&6; } 7239if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7240 $as_echo_n "(cached) " >&6 7241else 7242 if test -n "$ac_ct_MANIFEST_TOOL"; then 7243 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7244else 7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7246for as_dir in $PATH 7247do 7248 IFS=$as_save_IFS 7249 test -z "$as_dir" && as_dir=. 7250 for ac_exec_ext in '' $ac_executable_extensions; do 7251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7252 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7254 break 2 7255 fi 7256done 7257 done 7258IFS=$as_save_IFS 7259 7260fi 7261fi 7262ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7263if test -n "$ac_ct_MANIFEST_TOOL"; then 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7265$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7266else 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7268$as_echo "no" >&6; } 7269fi 7270 7271 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7272 MANIFEST_TOOL=":" 7273 else 7274 case $cross_compiling:$ac_tool_warned in 7275yes:) 7276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7278ac_tool_warned=yes ;; 7279esac 7280 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7281 fi 7282else 7283 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7284fi 7285 7286test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7288$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7289if ${lt_cv_path_mainfest_tool+:} false; then : 7290 $as_echo_n "(cached) " >&6 7291else 7292 lt_cv_path_mainfest_tool=no 7293 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7294 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7295 cat conftest.err >&5 7296 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7297 lt_cv_path_mainfest_tool=yes 7298 fi 7299 rm -f conftest* 7300fi 7301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7302$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7303if test yes != "$lt_cv_path_mainfest_tool"; then 7304 MANIFEST_TOOL=: 7305fi 7306 7307 7308 7309 7310 7311 7312 case $host_os in 7313 rhapsody* | darwin*) 7314 if test -n "$ac_tool_prefix"; then 7315 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7316set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7318$as_echo_n "checking for $ac_word... " >&6; } 7319if ${ac_cv_prog_DSYMUTIL+:} false; then : 7320 $as_echo_n "(cached) " >&6 7321else 7322 if test -n "$DSYMUTIL"; then 7323 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7324else 7325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7326for as_dir in $PATH 7327do 7328 IFS=$as_save_IFS 7329 test -z "$as_dir" && as_dir=. 7330 for ac_exec_ext in '' $ac_executable_extensions; do 7331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7332 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7334 break 2 7335 fi 7336done 7337 done 7338IFS=$as_save_IFS 7339 7340fi 7341fi 7342DSYMUTIL=$ac_cv_prog_DSYMUTIL 7343if test -n "$DSYMUTIL"; then 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7345$as_echo "$DSYMUTIL" >&6; } 7346else 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7348$as_echo "no" >&6; } 7349fi 7350 7351 7352fi 7353if test -z "$ac_cv_prog_DSYMUTIL"; then 7354 ac_ct_DSYMUTIL=$DSYMUTIL 7355 # Extract the first word of "dsymutil", so it can be a program name with args. 7356set dummy dsymutil; ac_word=$2 7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7358$as_echo_n "checking for $ac_word... " >&6; } 7359if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7360 $as_echo_n "(cached) " >&6 7361else 7362 if test -n "$ac_ct_DSYMUTIL"; then 7363 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7364else 7365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7366for as_dir in $PATH 7367do 7368 IFS=$as_save_IFS 7369 test -z "$as_dir" && as_dir=. 7370 for ac_exec_ext in '' $ac_executable_extensions; do 7371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7372 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7374 break 2 7375 fi 7376done 7377 done 7378IFS=$as_save_IFS 7379 7380fi 7381fi 7382ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7383if test -n "$ac_ct_DSYMUTIL"; then 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7385$as_echo "$ac_ct_DSYMUTIL" >&6; } 7386else 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7388$as_echo "no" >&6; } 7389fi 7390 7391 if test "x$ac_ct_DSYMUTIL" = x; then 7392 DSYMUTIL=":" 7393 else 7394 case $cross_compiling:$ac_tool_warned in 7395yes:) 7396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7398ac_tool_warned=yes ;; 7399esac 7400 DSYMUTIL=$ac_ct_DSYMUTIL 7401 fi 7402else 7403 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7404fi 7405 7406 if test -n "$ac_tool_prefix"; then 7407 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7408set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7410$as_echo_n "checking for $ac_word... " >&6; } 7411if ${ac_cv_prog_NMEDIT+:} false; then : 7412 $as_echo_n "(cached) " >&6 7413else 7414 if test -n "$NMEDIT"; then 7415 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7416else 7417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7418for as_dir in $PATH 7419do 7420 IFS=$as_save_IFS 7421 test -z "$as_dir" && as_dir=. 7422 for ac_exec_ext in '' $ac_executable_extensions; do 7423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7424 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7426 break 2 7427 fi 7428done 7429 done 7430IFS=$as_save_IFS 7431 7432fi 7433fi 7434NMEDIT=$ac_cv_prog_NMEDIT 7435if test -n "$NMEDIT"; then 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7437$as_echo "$NMEDIT" >&6; } 7438else 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7440$as_echo "no" >&6; } 7441fi 7442 7443 7444fi 7445if test -z "$ac_cv_prog_NMEDIT"; then 7446 ac_ct_NMEDIT=$NMEDIT 7447 # Extract the first word of "nmedit", so it can be a program name with args. 7448set dummy nmedit; ac_word=$2 7449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7450$as_echo_n "checking for $ac_word... " >&6; } 7451if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7452 $as_echo_n "(cached) " >&6 7453else 7454 if test -n "$ac_ct_NMEDIT"; then 7455 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7456else 7457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7458for as_dir in $PATH 7459do 7460 IFS=$as_save_IFS 7461 test -z "$as_dir" && as_dir=. 7462 for ac_exec_ext in '' $ac_executable_extensions; do 7463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7464 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7466 break 2 7467 fi 7468done 7469 done 7470IFS=$as_save_IFS 7471 7472fi 7473fi 7474ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7475if test -n "$ac_ct_NMEDIT"; then 7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7477$as_echo "$ac_ct_NMEDIT" >&6; } 7478else 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7480$as_echo "no" >&6; } 7481fi 7482 7483 if test "x$ac_ct_NMEDIT" = x; then 7484 NMEDIT=":" 7485 else 7486 case $cross_compiling:$ac_tool_warned in 7487yes:) 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7490ac_tool_warned=yes ;; 7491esac 7492 NMEDIT=$ac_ct_NMEDIT 7493 fi 7494else 7495 NMEDIT="$ac_cv_prog_NMEDIT" 7496fi 7497 7498 if test -n "$ac_tool_prefix"; then 7499 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7500set dummy ${ac_tool_prefix}lipo; ac_word=$2 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7502$as_echo_n "checking for $ac_word... " >&6; } 7503if ${ac_cv_prog_LIPO+:} false; then : 7504 $as_echo_n "(cached) " >&6 7505else 7506 if test -n "$LIPO"; then 7507 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7508else 7509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7510for as_dir in $PATH 7511do 7512 IFS=$as_save_IFS 7513 test -z "$as_dir" && as_dir=. 7514 for ac_exec_ext in '' $ac_executable_extensions; do 7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7516 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7518 break 2 7519 fi 7520done 7521 done 7522IFS=$as_save_IFS 7523 7524fi 7525fi 7526LIPO=$ac_cv_prog_LIPO 7527if test -n "$LIPO"; then 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7529$as_echo "$LIPO" >&6; } 7530else 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7532$as_echo "no" >&6; } 7533fi 7534 7535 7536fi 7537if test -z "$ac_cv_prog_LIPO"; then 7538 ac_ct_LIPO=$LIPO 7539 # Extract the first word of "lipo", so it can be a program name with args. 7540set dummy lipo; ac_word=$2 7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7542$as_echo_n "checking for $ac_word... " >&6; } 7543if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7544 $as_echo_n "(cached) " >&6 7545else 7546 if test -n "$ac_ct_LIPO"; then 7547 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7548else 7549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7550for as_dir in $PATH 7551do 7552 IFS=$as_save_IFS 7553 test -z "$as_dir" && as_dir=. 7554 for ac_exec_ext in '' $ac_executable_extensions; do 7555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7556 ac_cv_prog_ac_ct_LIPO="lipo" 7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7558 break 2 7559 fi 7560done 7561 done 7562IFS=$as_save_IFS 7563 7564fi 7565fi 7566ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7567if test -n "$ac_ct_LIPO"; then 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7569$as_echo "$ac_ct_LIPO" >&6; } 7570else 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7572$as_echo "no" >&6; } 7573fi 7574 7575 if test "x$ac_ct_LIPO" = x; then 7576 LIPO=":" 7577 else 7578 case $cross_compiling:$ac_tool_warned in 7579yes:) 7580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7582ac_tool_warned=yes ;; 7583esac 7584 LIPO=$ac_ct_LIPO 7585 fi 7586else 7587 LIPO="$ac_cv_prog_LIPO" 7588fi 7589 7590 if test -n "$ac_tool_prefix"; then 7591 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7592set dummy ${ac_tool_prefix}otool; ac_word=$2 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7594$as_echo_n "checking for $ac_word... " >&6; } 7595if ${ac_cv_prog_OTOOL+:} false; then : 7596 $as_echo_n "(cached) " >&6 7597else 7598 if test -n "$OTOOL"; then 7599 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7600else 7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7602for as_dir in $PATH 7603do 7604 IFS=$as_save_IFS 7605 test -z "$as_dir" && as_dir=. 7606 for ac_exec_ext in '' $ac_executable_extensions; do 7607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7608 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7610 break 2 7611 fi 7612done 7613 done 7614IFS=$as_save_IFS 7615 7616fi 7617fi 7618OTOOL=$ac_cv_prog_OTOOL 7619if test -n "$OTOOL"; then 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7621$as_echo "$OTOOL" >&6; } 7622else 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7624$as_echo "no" >&6; } 7625fi 7626 7627 7628fi 7629if test -z "$ac_cv_prog_OTOOL"; then 7630 ac_ct_OTOOL=$OTOOL 7631 # Extract the first word of "otool", so it can be a program name with args. 7632set dummy otool; ac_word=$2 7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7634$as_echo_n "checking for $ac_word... " >&6; } 7635if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7636 $as_echo_n "(cached) " >&6 7637else 7638 if test -n "$ac_ct_OTOOL"; then 7639 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7640else 7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7642for as_dir in $PATH 7643do 7644 IFS=$as_save_IFS 7645 test -z "$as_dir" && as_dir=. 7646 for ac_exec_ext in '' $ac_executable_extensions; do 7647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7648 ac_cv_prog_ac_ct_OTOOL="otool" 7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7650 break 2 7651 fi 7652done 7653 done 7654IFS=$as_save_IFS 7655 7656fi 7657fi 7658ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7659if test -n "$ac_ct_OTOOL"; then 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7661$as_echo "$ac_ct_OTOOL" >&6; } 7662else 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7664$as_echo "no" >&6; } 7665fi 7666 7667 if test "x$ac_ct_OTOOL" = x; then 7668 OTOOL=":" 7669 else 7670 case $cross_compiling:$ac_tool_warned in 7671yes:) 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7674ac_tool_warned=yes ;; 7675esac 7676 OTOOL=$ac_ct_OTOOL 7677 fi 7678else 7679 OTOOL="$ac_cv_prog_OTOOL" 7680fi 7681 7682 if test -n "$ac_tool_prefix"; then 7683 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7684set dummy ${ac_tool_prefix}otool64; ac_word=$2 7685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7686$as_echo_n "checking for $ac_word... " >&6; } 7687if ${ac_cv_prog_OTOOL64+:} false; then : 7688 $as_echo_n "(cached) " >&6 7689else 7690 if test -n "$OTOOL64"; then 7691 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7692else 7693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7694for as_dir in $PATH 7695do 7696 IFS=$as_save_IFS 7697 test -z "$as_dir" && as_dir=. 7698 for ac_exec_ext in '' $ac_executable_extensions; do 7699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7700 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7702 break 2 7703 fi 7704done 7705 done 7706IFS=$as_save_IFS 7707 7708fi 7709fi 7710OTOOL64=$ac_cv_prog_OTOOL64 7711if test -n "$OTOOL64"; then 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7713$as_echo "$OTOOL64" >&6; } 7714else 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7716$as_echo "no" >&6; } 7717fi 7718 7719 7720fi 7721if test -z "$ac_cv_prog_OTOOL64"; then 7722 ac_ct_OTOOL64=$OTOOL64 7723 # Extract the first word of "otool64", so it can be a program name with args. 7724set dummy otool64; ac_word=$2 7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7726$as_echo_n "checking for $ac_word... " >&6; } 7727if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7728 $as_echo_n "(cached) " >&6 7729else 7730 if test -n "$ac_ct_OTOOL64"; then 7731 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7732else 7733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7734for as_dir in $PATH 7735do 7736 IFS=$as_save_IFS 7737 test -z "$as_dir" && as_dir=. 7738 for ac_exec_ext in '' $ac_executable_extensions; do 7739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7740 ac_cv_prog_ac_ct_OTOOL64="otool64" 7741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7742 break 2 7743 fi 7744done 7745 done 7746IFS=$as_save_IFS 7747 7748fi 7749fi 7750ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7751if test -n "$ac_ct_OTOOL64"; then 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7753$as_echo "$ac_ct_OTOOL64" >&6; } 7754else 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7756$as_echo "no" >&6; } 7757fi 7758 7759 if test "x$ac_ct_OTOOL64" = x; then 7760 OTOOL64=":" 7761 else 7762 case $cross_compiling:$ac_tool_warned in 7763yes:) 7764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7766ac_tool_warned=yes ;; 7767esac 7768 OTOOL64=$ac_ct_OTOOL64 7769 fi 7770else 7771 OTOOL64="$ac_cv_prog_OTOOL64" 7772fi 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7801$as_echo_n "checking for -single_module linker flag... " >&6; } 7802if ${lt_cv_apple_cc_single_mod+:} false; then : 7803 $as_echo_n "(cached) " >&6 7804else 7805 lt_cv_apple_cc_single_mod=no 7806 if test -z "$LT_MULTI_MODULE"; then 7807 # By default we will add the -single_module flag. You can override 7808 # by either setting the environment variable LT_MULTI_MODULE 7809 # non-empty at configure time, or by adding -multi_module to the 7810 # link flags. 7811 rm -rf libconftest.dylib* 7812 echo "int foo(void){return 1;}" > conftest.c 7813 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7814-dynamiclib -Wl,-single_module conftest.c" >&5 7815 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7816 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7817 _lt_result=$? 7818 # If there is a non-empty error log, and "single_module" 7819 # appears in it, assume the flag caused a linker warning 7820 if test -s conftest.err && $GREP single_module conftest.err; then 7821 cat conftest.err >&5 7822 # Otherwise, if the output was created with a 0 exit code from 7823 # the compiler, it worked. 7824 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7825 lt_cv_apple_cc_single_mod=yes 7826 else 7827 cat conftest.err >&5 7828 fi 7829 rm -rf libconftest.dylib* 7830 rm -f conftest.* 7831 fi 7832fi 7833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7834$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7835 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7837$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7838if ${lt_cv_ld_exported_symbols_list+:} false; then : 7839 $as_echo_n "(cached) " >&6 7840else 7841 lt_cv_ld_exported_symbols_list=no 7842 save_LDFLAGS=$LDFLAGS 7843 echo "_main" > conftest.sym 7844 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7846/* end confdefs.h. */ 7847 7848int 7849main () 7850{ 7851 7852 ; 7853 return 0; 7854} 7855_ACEOF 7856if ac_fn_c_try_link "$LINENO"; then : 7857 lt_cv_ld_exported_symbols_list=yes 7858else 7859 lt_cv_ld_exported_symbols_list=no 7860fi 7861rm -f core conftest.err conftest.$ac_objext \ 7862 conftest$ac_exeext conftest.$ac_ext 7863 LDFLAGS=$save_LDFLAGS 7864 7865fi 7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7867$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7868 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7870$as_echo_n "checking for -force_load linker flag... " >&6; } 7871if ${lt_cv_ld_force_load+:} false; then : 7872 $as_echo_n "(cached) " >&6 7873else 7874 lt_cv_ld_force_load=no 7875 cat > conftest.c << _LT_EOF 7876int forced_loaded() { return 2;} 7877_LT_EOF 7878 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7879 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7880 echo "$AR cru libconftest.a conftest.o" >&5 7881 $AR cru libconftest.a conftest.o 2>&5 7882 echo "$RANLIB libconftest.a" >&5 7883 $RANLIB libconftest.a 2>&5 7884 cat > conftest.c << _LT_EOF 7885int main() { return 0;} 7886_LT_EOF 7887 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7888 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7889 _lt_result=$? 7890 if test -s conftest.err && $GREP force_load conftest.err; then 7891 cat conftest.err >&5 7892 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7893 lt_cv_ld_force_load=yes 7894 else 7895 cat conftest.err >&5 7896 fi 7897 rm -f conftest.err libconftest.a conftest conftest.c 7898 rm -rf conftest.dSYM 7899 7900fi 7901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7902$as_echo "$lt_cv_ld_force_load" >&6; } 7903 case $host_os in 7904 rhapsody* | darwin1.[012]) 7905 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7906 darwin1.*) 7907 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7908 darwin*) # darwin 5.x on 7909 # if running on 10.5 or later, the deployment target defaults 7910 # to the OS version, if on x86, and 10.4, the deployment 7911 # target defaults to 10.4. Don't you love it? 7912 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7913 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7914 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7915 10.[012][,.]*) 7916 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7917 10.*) 7918 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7919 esac 7920 ;; 7921 esac 7922 if test yes = "$lt_cv_apple_cc_single_mod"; then 7923 _lt_dar_single_mod='$single_module' 7924 fi 7925 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7926 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7927 else 7928 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7929 fi 7930 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7931 _lt_dsymutil='~$DSYMUTIL $lib || :' 7932 else 7933 _lt_dsymutil= 7934 fi 7935 ;; 7936 esac 7937 7938# func_munge_path_list VARIABLE PATH 7939# ----------------------------------- 7940# VARIABLE is name of variable containing _space_ separated list of 7941# directories to be munged by the contents of PATH, which is string 7942# having a format: 7943# "DIR[:DIR]:" 7944# string "DIR[ DIR]" will be prepended to VARIABLE 7945# ":DIR[:DIR]" 7946# string "DIR[ DIR]" will be appended to VARIABLE 7947# "DIRP[:DIRP]::[DIRA:]DIRA" 7948# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7949# "DIRA[ DIRA]" will be appended to VARIABLE 7950# "DIR[:DIR]" 7951# VARIABLE will be replaced by "DIR[ DIR]" 7952func_munge_path_list () 7953{ 7954 case x$2 in 7955 x) 7956 ;; 7957 *:) 7958 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7959 ;; 7960 x:*) 7961 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7962 ;; 7963 *::*) 7964 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7965 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7966 ;; 7967 *) 7968 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7969 ;; 7970 esac 7971} 7972 7973for ac_header in dlfcn.h 7974do : 7975 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7976" 7977if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7978 cat >>confdefs.h <<_ACEOF 7979#define HAVE_DLFCN_H 1 7980_ACEOF 7981 7982fi 7983 7984done 7985 7986 7987 7988 7989 7990# Set options 7991 7992 7993 7994 enable_dlopen=no 7995 7996 7997 enable_win32_dll=no 7998 7999 8000 # Check whether --enable-shared was given. 8001if test "${enable_shared+set}" = set; then : 8002 enableval=$enable_shared; p=${PACKAGE-default} 8003 case $enableval in 8004 yes) enable_shared=yes ;; 8005 no) enable_shared=no ;; 8006 *) 8007 enable_shared=no 8008 # Look at the argument we got. We use all the common list separators. 8009 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8010 for pkg in $enableval; do 8011 IFS=$lt_save_ifs 8012 if test "X$pkg" = "X$p"; then 8013 enable_shared=yes 8014 fi 8015 done 8016 IFS=$lt_save_ifs 8017 ;; 8018 esac 8019else 8020 enable_shared=yes 8021fi 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 # Check whether --enable-static was given. 8032if test "${enable_static+set}" = set; then : 8033 enableval=$enable_static; p=${PACKAGE-default} 8034 case $enableval in 8035 yes) enable_static=yes ;; 8036 no) enable_static=no ;; 8037 *) 8038 enable_static=no 8039 # Look at the argument we got. We use all the common list separators. 8040 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8041 for pkg in $enableval; do 8042 IFS=$lt_save_ifs 8043 if test "X$pkg" = "X$p"; then 8044 enable_static=yes 8045 fi 8046 done 8047 IFS=$lt_save_ifs 8048 ;; 8049 esac 8050else 8051 enable_static=yes 8052fi 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063# Check whether --with-pic was given. 8064if test "${with_pic+set}" = set; then : 8065 withval=$with_pic; lt_p=${PACKAGE-default} 8066 case $withval in 8067 yes|no) pic_mode=$withval ;; 8068 *) 8069 pic_mode=default 8070 # Look at the argument we got. We use all the common list separators. 8071 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8072 for lt_pkg in $withval; do 8073 IFS=$lt_save_ifs 8074 if test "X$lt_pkg" = "X$lt_p"; then 8075 pic_mode=yes 8076 fi 8077 done 8078 IFS=$lt_save_ifs 8079 ;; 8080 esac 8081else 8082 pic_mode=default 8083fi 8084 8085 8086 8087 8088 8089 8090 8091 8092 # Check whether --enable-fast-install was given. 8093if test "${enable_fast_install+set}" = set; then : 8094 enableval=$enable_fast_install; p=${PACKAGE-default} 8095 case $enableval in 8096 yes) enable_fast_install=yes ;; 8097 no) enable_fast_install=no ;; 8098 *) 8099 enable_fast_install=no 8100 # Look at the argument we got. We use all the common list separators. 8101 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8102 for pkg in $enableval; do 8103 IFS=$lt_save_ifs 8104 if test "X$pkg" = "X$p"; then 8105 enable_fast_install=yes 8106 fi 8107 done 8108 IFS=$lt_save_ifs 8109 ;; 8110 esac 8111else 8112 enable_fast_install=yes 8113fi 8114 8115 8116 8117 8118 8119 8120 8121 8122 shared_archive_member_spec= 8123case $host,$enable_shared in 8124power*-*-aix[5-9]*,yes) 8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8126$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8127 8128# Check whether --with-aix-soname was given. 8129if test "${with_aix_soname+set}" = set; then : 8130 withval=$with_aix_soname; case $withval in 8131 aix|svr4|both) 8132 ;; 8133 *) 8134 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8135 ;; 8136 esac 8137 lt_cv_with_aix_soname=$with_aix_soname 8138else 8139 if ${lt_cv_with_aix_soname+:} false; then : 8140 $as_echo_n "(cached) " >&6 8141else 8142 lt_cv_with_aix_soname=aix 8143fi 8144 8145 with_aix_soname=$lt_cv_with_aix_soname 8146fi 8147 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8149$as_echo "$with_aix_soname" >&6; } 8150 if test aix != "$with_aix_soname"; then 8151 # For the AIX way of multilib, we name the shared archive member 8152 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8153 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8154 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8155 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8156 if test 64 = "${OBJECT_MODE-32}"; then 8157 shared_archive_member_spec=shr_64 8158 else 8159 shared_archive_member_spec=shr 8160 fi 8161 fi 8162 ;; 8163*) 8164 with_aix_soname=aix 8165 ;; 8166esac 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177# This can be used to rebuild libtool when needed 8178LIBTOOL_DEPS=$ltmain 8179 8180# Always use our own libtool. 8181LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212test -z "$LN_S" && LN_S="ln -s" 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227if test -n "${ZSH_VERSION+set}"; then 8228 setopt NO_GLOB_SUBST 8229fi 8230 8231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8232$as_echo_n "checking for objdir... " >&6; } 8233if ${lt_cv_objdir+:} false; then : 8234 $as_echo_n "(cached) " >&6 8235else 8236 rm -f .libs 2>/dev/null 8237mkdir .libs 2>/dev/null 8238if test -d .libs; then 8239 lt_cv_objdir=.libs 8240else 8241 # MS-DOS does not allow filenames that begin with a dot. 8242 lt_cv_objdir=_libs 8243fi 8244rmdir .libs 2>/dev/null 8245fi 8246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8247$as_echo "$lt_cv_objdir" >&6; } 8248objdir=$lt_cv_objdir 8249 8250 8251 8252 8253 8254cat >>confdefs.h <<_ACEOF 8255#define LT_OBJDIR "$lt_cv_objdir/" 8256_ACEOF 8257 8258 8259 8260 8261case $host_os in 8262aix3*) 8263 # AIX sometimes has problems with the GCC collect2 program. For some 8264 # reason, if we set the COLLECT_NAMES environment variable, the problems 8265 # vanish in a puff of smoke. 8266 if test set != "${COLLECT_NAMES+set}"; then 8267 COLLECT_NAMES= 8268 export COLLECT_NAMES 8269 fi 8270 ;; 8271esac 8272 8273# Global variables: 8274ofile=libtool 8275can_build_shared=yes 8276 8277# All known linkers require a '.a' archive for static linking (except MSVC, 8278# which needs '.lib'). 8279libext=a 8280 8281with_gnu_ld=$lt_cv_prog_gnu_ld 8282 8283old_CC=$CC 8284old_CFLAGS=$CFLAGS 8285 8286# Set sane defaults for various variables 8287test -z "$CC" && CC=cc 8288test -z "$LTCC" && LTCC=$CC 8289test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8290test -z "$LD" && LD=ld 8291test -z "$ac_objext" && ac_objext=o 8292 8293func_cc_basename $compiler 8294cc_basename=$func_cc_basename_result 8295 8296 8297# Only perform the check for file, if the check method requires it 8298test -z "$MAGIC_CMD" && MAGIC_CMD=file 8299case $deplibs_check_method in 8300file_magic*) 8301 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8303$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8304if ${lt_cv_path_MAGIC_CMD+:} false; then : 8305 $as_echo_n "(cached) " >&6 8306else 8307 case $MAGIC_CMD in 8308[\\/*] | ?:[\\/]*) 8309 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8310 ;; 8311*) 8312 lt_save_MAGIC_CMD=$MAGIC_CMD 8313 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8314 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8315 for ac_dir in $ac_dummy; do 8316 IFS=$lt_save_ifs 8317 test -z "$ac_dir" && ac_dir=. 8318 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8319 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8320 if test -n "$file_magic_test_file"; then 8321 case $deplibs_check_method in 8322 "file_magic "*) 8323 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8324 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8325 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8326 $EGREP "$file_magic_regex" > /dev/null; then 8327 : 8328 else 8329 cat <<_LT_EOF 1>&2 8330 8331*** Warning: the command libtool uses to detect shared libraries, 8332*** $file_magic_cmd, produces output that libtool cannot recognize. 8333*** The result is that libtool may fail to recognize shared libraries 8334*** as such. This will affect the creation of libtool libraries that 8335*** depend on shared libraries, but programs linked with such libtool 8336*** libraries will work regardless of this problem. Nevertheless, you 8337*** may want to report the problem to your system manager and/or to 8338*** bug-libtool@gnu.org 8339 8340_LT_EOF 8341 fi ;; 8342 esac 8343 fi 8344 break 8345 fi 8346 done 8347 IFS=$lt_save_ifs 8348 MAGIC_CMD=$lt_save_MAGIC_CMD 8349 ;; 8350esac 8351fi 8352 8353MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8354if test -n "$MAGIC_CMD"; then 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8356$as_echo "$MAGIC_CMD" >&6; } 8357else 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8359$as_echo "no" >&6; } 8360fi 8361 8362 8363 8364 8365 8366if test -z "$lt_cv_path_MAGIC_CMD"; then 8367 if test -n "$ac_tool_prefix"; then 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8369$as_echo_n "checking for file... " >&6; } 8370if ${lt_cv_path_MAGIC_CMD+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 case $MAGIC_CMD in 8374[\\/*] | ?:[\\/]*) 8375 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8376 ;; 8377*) 8378 lt_save_MAGIC_CMD=$MAGIC_CMD 8379 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8380 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8381 for ac_dir in $ac_dummy; do 8382 IFS=$lt_save_ifs 8383 test -z "$ac_dir" && ac_dir=. 8384 if test -f "$ac_dir/file"; then 8385 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8386 if test -n "$file_magic_test_file"; then 8387 case $deplibs_check_method in 8388 "file_magic "*) 8389 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8390 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8391 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8392 $EGREP "$file_magic_regex" > /dev/null; then 8393 : 8394 else 8395 cat <<_LT_EOF 1>&2 8396 8397*** Warning: the command libtool uses to detect shared libraries, 8398*** $file_magic_cmd, produces output that libtool cannot recognize. 8399*** The result is that libtool may fail to recognize shared libraries 8400*** as such. This will affect the creation of libtool libraries that 8401*** depend on shared libraries, but programs linked with such libtool 8402*** libraries will work regardless of this problem. Nevertheless, you 8403*** may want to report the problem to your system manager and/or to 8404*** bug-libtool@gnu.org 8405 8406_LT_EOF 8407 fi ;; 8408 esac 8409 fi 8410 break 8411 fi 8412 done 8413 IFS=$lt_save_ifs 8414 MAGIC_CMD=$lt_save_MAGIC_CMD 8415 ;; 8416esac 8417fi 8418 8419MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8420if test -n "$MAGIC_CMD"; then 8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8422$as_echo "$MAGIC_CMD" >&6; } 8423else 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8425$as_echo "no" >&6; } 8426fi 8427 8428 8429 else 8430 MAGIC_CMD=: 8431 fi 8432fi 8433 8434 fi 8435 ;; 8436esac 8437 8438# Use C for the default configuration in the libtool script 8439 8440lt_save_CC=$CC 8441ac_ext=c 8442ac_cpp='$CPP $CPPFLAGS' 8443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8445ac_compiler_gnu=$ac_cv_c_compiler_gnu 8446 8447 8448# Source file extension for C test sources. 8449ac_ext=c 8450 8451# Object file extension for compiled C test sources. 8452objext=o 8453objext=$objext 8454 8455# Code to be used in simple compile tests 8456lt_simple_compile_test_code="int some_variable = 0;" 8457 8458# Code to be used in simple link tests 8459lt_simple_link_test_code='int main(){return(0);}' 8460 8461 8462 8463 8464 8465 8466 8467# If no C compiler was specified, use CC. 8468LTCC=${LTCC-"$CC"} 8469 8470# If no C compiler flags were specified, use CFLAGS. 8471LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8472 8473# Allow CC to be a program name with arguments. 8474compiler=$CC 8475 8476# Save the default compiler, since it gets overwritten when the other 8477# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8478compiler_DEFAULT=$CC 8479 8480# save warnings/boilerplate of simple test code 8481ac_outfile=conftest.$ac_objext 8482echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8483eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8484_lt_compiler_boilerplate=`cat conftest.err` 8485$RM conftest* 8486 8487ac_outfile=conftest.$ac_objext 8488echo "$lt_simple_link_test_code" >conftest.$ac_ext 8489eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8490_lt_linker_boilerplate=`cat conftest.err` 8491$RM -r conftest* 8492 8493 8494## CAVEAT EMPTOR: 8495## There is no encapsulation within the following macros, do not change 8496## the running order or otherwise move them around unless you know exactly 8497## what you are doing... 8498if test -n "$compiler"; then 8499 8500lt_prog_compiler_no_builtin_flag= 8501 8502if test yes = "$GCC"; then 8503 case $cc_basename in 8504 nvcc*) 8505 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8506 *) 8507 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8508 esac 8509 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8511$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8512if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8513 $as_echo_n "(cached) " >&6 8514else 8515 lt_cv_prog_compiler_rtti_exceptions=no 8516 ac_outfile=conftest.$ac_objext 8517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8518 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8519 # Insert the option either (1) after the last *FLAGS variable, or 8520 # (2) before a word containing "conftest.", or (3) at the end. 8521 # Note that $ac_compile itself does not contain backslashes and begins 8522 # with a dollar sign (not a hyphen), so the echo should work correctly. 8523 # The option is referenced via a variable to avoid confusing sed. 8524 lt_compile=`echo "$ac_compile" | $SED \ 8525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8527 -e 's:$: $lt_compiler_flag:'` 8528 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8529 (eval "$lt_compile" 2>conftest.err) 8530 ac_status=$? 8531 cat conftest.err >&5 8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8533 if (exit $ac_status) && test -s "$ac_outfile"; then 8534 # The compiler can only warn and ignore the option if not recognized 8535 # So say no if there are warnings other than the usual output. 8536 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8538 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8539 lt_cv_prog_compiler_rtti_exceptions=yes 8540 fi 8541 fi 8542 $RM conftest* 8543 8544fi 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8546$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8547 8548if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8549 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8550else 8551 : 8552fi 8553 8554fi 8555 8556 8557 8558 8559 8560 8561 lt_prog_compiler_wl= 8562lt_prog_compiler_pic= 8563lt_prog_compiler_static= 8564 8565 8566 if test yes = "$GCC"; then 8567 lt_prog_compiler_wl='-Wl,' 8568 lt_prog_compiler_static='-static' 8569 8570 case $host_os in 8571 aix*) 8572 # All AIX code is PIC. 8573 if test ia64 = "$host_cpu"; then 8574 # AIX 5 now supports IA64 processor 8575 lt_prog_compiler_static='-Bstatic' 8576 fi 8577 lt_prog_compiler_pic='-fPIC' 8578 ;; 8579 8580 amigaos*) 8581 case $host_cpu in 8582 powerpc) 8583 # see comment about AmigaOS4 .so support 8584 lt_prog_compiler_pic='-fPIC' 8585 ;; 8586 m68k) 8587 # FIXME: we need at least 68020 code to build shared libraries, but 8588 # adding the '-m68020' flag to GCC prevents building anything better, 8589 # like '-m68040'. 8590 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8591 ;; 8592 esac 8593 ;; 8594 8595 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8596 # PIC is the default for these OSes. 8597 ;; 8598 8599 mingw* | cygwin* | pw32* | os2* | cegcc*) 8600 # This hack is so that the source file can tell whether it is being 8601 # built for inclusion in a dll (and should export symbols for example). 8602 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8603 # (--disable-auto-import) libraries 8604 lt_prog_compiler_pic='-DDLL_EXPORT' 8605 case $host_os in 8606 os2*) 8607 lt_prog_compiler_static='$wl-static' 8608 ;; 8609 esac 8610 ;; 8611 8612 darwin* | rhapsody*) 8613 # PIC is the default on this platform 8614 # Common symbols not allowed in MH_DYLIB files 8615 lt_prog_compiler_pic='-fno-common' 8616 ;; 8617 8618 haiku*) 8619 # PIC is the default for Haiku. 8620 # The "-static" flag exists, but is broken. 8621 lt_prog_compiler_static= 8622 ;; 8623 8624 hpux*) 8625 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8626 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8627 # sets the default TLS model and affects inlining. 8628 case $host_cpu in 8629 hppa*64*) 8630 # +Z the default 8631 ;; 8632 *) 8633 lt_prog_compiler_pic='-fPIC' 8634 ;; 8635 esac 8636 ;; 8637 8638 interix[3-9]*) 8639 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8640 # Instead, we relocate shared libraries at runtime. 8641 ;; 8642 8643 msdosdjgpp*) 8644 # Just because we use GCC doesn't mean we suddenly get shared libraries 8645 # on systems that don't support them. 8646 lt_prog_compiler_can_build_shared=no 8647 enable_shared=no 8648 ;; 8649 8650 *nto* | *qnx*) 8651 # QNX uses GNU C++, but need to define -shared option too, otherwise 8652 # it will coredump. 8653 lt_prog_compiler_pic='-fPIC -shared' 8654 ;; 8655 8656 sysv4*MP*) 8657 if test -d /usr/nec; then 8658 lt_prog_compiler_pic=-Kconform_pic 8659 fi 8660 ;; 8661 8662 *) 8663 lt_prog_compiler_pic='-fPIC' 8664 ;; 8665 esac 8666 8667 case $cc_basename in 8668 nvcc*) # Cuda Compiler Driver 2.2 8669 lt_prog_compiler_wl='-Xlinker ' 8670 if test -n "$lt_prog_compiler_pic"; then 8671 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8672 fi 8673 ;; 8674 esac 8675 else 8676 # PORTME Check for flag to pass linker flags through the system compiler. 8677 case $host_os in 8678 aix*) 8679 lt_prog_compiler_wl='-Wl,' 8680 if test ia64 = "$host_cpu"; then 8681 # AIX 5 now supports IA64 processor 8682 lt_prog_compiler_static='-Bstatic' 8683 else 8684 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8685 fi 8686 ;; 8687 8688 darwin* | rhapsody*) 8689 # PIC is the default on this platform 8690 # Common symbols not allowed in MH_DYLIB files 8691 lt_prog_compiler_pic='-fno-common' 8692 case $cc_basename in 8693 nagfor*) 8694 # NAG Fortran compiler 8695 lt_prog_compiler_wl='-Wl,-Wl,,' 8696 lt_prog_compiler_pic='-PIC' 8697 lt_prog_compiler_static='-Bstatic' 8698 ;; 8699 esac 8700 ;; 8701 8702 mingw* | cygwin* | pw32* | os2* | cegcc*) 8703 # This hack is so that the source file can tell whether it is being 8704 # built for inclusion in a dll (and should export symbols for example). 8705 lt_prog_compiler_pic='-DDLL_EXPORT' 8706 case $host_os in 8707 os2*) 8708 lt_prog_compiler_static='$wl-static' 8709 ;; 8710 esac 8711 ;; 8712 8713 hpux9* | hpux10* | hpux11*) 8714 lt_prog_compiler_wl='-Wl,' 8715 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8716 # not for PA HP-UX. 8717 case $host_cpu in 8718 hppa*64*|ia64*) 8719 # +Z the default 8720 ;; 8721 *) 8722 lt_prog_compiler_pic='+Z' 8723 ;; 8724 esac 8725 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8726 lt_prog_compiler_static='$wl-a ${wl}archive' 8727 ;; 8728 8729 irix5* | irix6* | nonstopux*) 8730 lt_prog_compiler_wl='-Wl,' 8731 # PIC (with -KPIC) is the default. 8732 lt_prog_compiler_static='-non_shared' 8733 ;; 8734 8735 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8736 case $cc_basename in 8737 # old Intel for x86_64, which still supported -KPIC. 8738 ecc*) 8739 lt_prog_compiler_wl='-Wl,' 8740 lt_prog_compiler_pic='-KPIC' 8741 lt_prog_compiler_static='-static' 8742 ;; 8743 # icc used to be incompatible with GCC. 8744 # ICC 10 doesn't accept -KPIC any more. 8745 icc* | ifort*) 8746 lt_prog_compiler_wl='-Wl,' 8747 lt_prog_compiler_pic='-fPIC' 8748 lt_prog_compiler_static='-static' 8749 ;; 8750 # Lahey Fortran 8.1. 8751 lf95*) 8752 lt_prog_compiler_wl='-Wl,' 8753 lt_prog_compiler_pic='--shared' 8754 lt_prog_compiler_static='--static' 8755 ;; 8756 nagfor*) 8757 # NAG Fortran compiler 8758 lt_prog_compiler_wl='-Wl,-Wl,,' 8759 lt_prog_compiler_pic='-PIC' 8760 lt_prog_compiler_static='-Bstatic' 8761 ;; 8762 tcc*) 8763 # Fabrice Bellard et al's Tiny C Compiler 8764 lt_prog_compiler_wl='-Wl,' 8765 lt_prog_compiler_pic='-fPIC' 8766 lt_prog_compiler_static='-static' 8767 ;; 8768 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8769 # Portland Group compilers (*not* the Pentium gcc compiler, 8770 # which looks to be a dead project) 8771 lt_prog_compiler_wl='-Wl,' 8772 lt_prog_compiler_pic='-fpic' 8773 lt_prog_compiler_static='-Bstatic' 8774 ;; 8775 ccc*) 8776 lt_prog_compiler_wl='-Wl,' 8777 # All Alpha code is PIC. 8778 lt_prog_compiler_static='-non_shared' 8779 ;; 8780 xl* | bgxl* | bgf* | mpixl*) 8781 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8782 lt_prog_compiler_wl='-Wl,' 8783 lt_prog_compiler_pic='-qpic' 8784 lt_prog_compiler_static='-qstaticlink' 8785 ;; 8786 *) 8787 case `$CC -V 2>&1 | sed 5q` in 8788 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8789 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8790 lt_prog_compiler_pic='-KPIC' 8791 lt_prog_compiler_static='-Bstatic' 8792 lt_prog_compiler_wl='' 8793 ;; 8794 *Sun\ F* | *Sun*Fortran*) 8795 lt_prog_compiler_pic='-KPIC' 8796 lt_prog_compiler_static='-Bstatic' 8797 lt_prog_compiler_wl='-Qoption ld ' 8798 ;; 8799 *Sun\ C*) 8800 # Sun C 5.9 8801 lt_prog_compiler_pic='-KPIC' 8802 lt_prog_compiler_static='-Bstatic' 8803 lt_prog_compiler_wl='-Wl,' 8804 ;; 8805 *Intel*\ [CF]*Compiler*) 8806 lt_prog_compiler_wl='-Wl,' 8807 lt_prog_compiler_pic='-fPIC' 8808 lt_prog_compiler_static='-static' 8809 ;; 8810 *Portland\ Group*) 8811 lt_prog_compiler_wl='-Wl,' 8812 lt_prog_compiler_pic='-fpic' 8813 lt_prog_compiler_static='-Bstatic' 8814 ;; 8815 esac 8816 ;; 8817 esac 8818 ;; 8819 8820 newsos6) 8821 lt_prog_compiler_pic='-KPIC' 8822 lt_prog_compiler_static='-Bstatic' 8823 ;; 8824 8825 *nto* | *qnx*) 8826 # QNX uses GNU C++, but need to define -shared option too, otherwise 8827 # it will coredump. 8828 lt_prog_compiler_pic='-fPIC -shared' 8829 ;; 8830 8831 osf3* | osf4* | osf5*) 8832 lt_prog_compiler_wl='-Wl,' 8833 # All OSF/1 code is PIC. 8834 lt_prog_compiler_static='-non_shared' 8835 ;; 8836 8837 rdos*) 8838 lt_prog_compiler_static='-non_shared' 8839 ;; 8840 8841 solaris*) 8842 lt_prog_compiler_pic='-KPIC' 8843 lt_prog_compiler_static='-Bstatic' 8844 case $cc_basename in 8845 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8846 lt_prog_compiler_wl='-Qoption ld ';; 8847 *) 8848 lt_prog_compiler_wl='-Wl,';; 8849 esac 8850 ;; 8851 8852 sunos4*) 8853 lt_prog_compiler_wl='-Qoption ld ' 8854 lt_prog_compiler_pic='-PIC' 8855 lt_prog_compiler_static='-Bstatic' 8856 ;; 8857 8858 sysv4 | sysv4.2uw2* | sysv4.3*) 8859 lt_prog_compiler_wl='-Wl,' 8860 lt_prog_compiler_pic='-KPIC' 8861 lt_prog_compiler_static='-Bstatic' 8862 ;; 8863 8864 sysv4*MP*) 8865 if test -d /usr/nec; then 8866 lt_prog_compiler_pic='-Kconform_pic' 8867 lt_prog_compiler_static='-Bstatic' 8868 fi 8869 ;; 8870 8871 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8872 lt_prog_compiler_wl='-Wl,' 8873 lt_prog_compiler_pic='-KPIC' 8874 lt_prog_compiler_static='-Bstatic' 8875 ;; 8876 8877 unicos*) 8878 lt_prog_compiler_wl='-Wl,' 8879 lt_prog_compiler_can_build_shared=no 8880 ;; 8881 8882 uts4*) 8883 lt_prog_compiler_pic='-pic' 8884 lt_prog_compiler_static='-Bstatic' 8885 ;; 8886 8887 *) 8888 lt_prog_compiler_can_build_shared=no 8889 ;; 8890 esac 8891 fi 8892 8893case $host_os in 8894 # For platforms that do not support PIC, -DPIC is meaningless: 8895 *djgpp*) 8896 lt_prog_compiler_pic= 8897 ;; 8898 *) 8899 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8900 ;; 8901esac 8902 8903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8904$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8905if ${lt_cv_prog_compiler_pic+:} false; then : 8906 $as_echo_n "(cached) " >&6 8907else 8908 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8909fi 8910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8911$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8912lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8913 8914# 8915# Check to make sure the PIC flag actually works. 8916# 8917if test -n "$lt_prog_compiler_pic"; then 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8919$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8920if ${lt_cv_prog_compiler_pic_works+:} false; then : 8921 $as_echo_n "(cached) " >&6 8922else 8923 lt_cv_prog_compiler_pic_works=no 8924 ac_outfile=conftest.$ac_objext 8925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8926 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8927 # Insert the option either (1) after the last *FLAGS variable, or 8928 # (2) before a word containing "conftest.", or (3) at the end. 8929 # Note that $ac_compile itself does not contain backslashes and begins 8930 # with a dollar sign (not a hyphen), so the echo should work correctly. 8931 # The option is referenced via a variable to avoid confusing sed. 8932 lt_compile=`echo "$ac_compile" | $SED \ 8933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8935 -e 's:$: $lt_compiler_flag:'` 8936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8937 (eval "$lt_compile" 2>conftest.err) 8938 ac_status=$? 8939 cat conftest.err >&5 8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8941 if (exit $ac_status) && test -s "$ac_outfile"; then 8942 # The compiler can only warn and ignore the option if not recognized 8943 # So say no if there are warnings other than the usual output. 8944 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8947 lt_cv_prog_compiler_pic_works=yes 8948 fi 8949 fi 8950 $RM conftest* 8951 8952fi 8953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8954$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8955 8956if test yes = "$lt_cv_prog_compiler_pic_works"; then 8957 case $lt_prog_compiler_pic in 8958 "" | " "*) ;; 8959 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8960 esac 8961else 8962 lt_prog_compiler_pic= 8963 lt_prog_compiler_can_build_shared=no 8964fi 8965 8966fi 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978# 8979# Check to make sure the static flag actually works. 8980# 8981wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8983$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8984if ${lt_cv_prog_compiler_static_works+:} false; then : 8985 $as_echo_n "(cached) " >&6 8986else 8987 lt_cv_prog_compiler_static_works=no 8988 save_LDFLAGS=$LDFLAGS 8989 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8990 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8992 # The linker can only warn and ignore the option if not recognized 8993 # So say no if there are warnings 8994 if test -s conftest.err; then 8995 # Append any errors to the config.log. 8996 cat conftest.err 1>&5 8997 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8999 if diff conftest.exp conftest.er2 >/dev/null; then 9000 lt_cv_prog_compiler_static_works=yes 9001 fi 9002 else 9003 lt_cv_prog_compiler_static_works=yes 9004 fi 9005 fi 9006 $RM -r conftest* 9007 LDFLAGS=$save_LDFLAGS 9008 9009fi 9010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9011$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9012 9013if test yes = "$lt_cv_prog_compiler_static_works"; then 9014 : 9015else 9016 lt_prog_compiler_static= 9017fi 9018 9019 9020 9021 9022 9023 9024 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9026$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9027if ${lt_cv_prog_compiler_c_o+:} false; then : 9028 $as_echo_n "(cached) " >&6 9029else 9030 lt_cv_prog_compiler_c_o=no 9031 $RM -r conftest 2>/dev/null 9032 mkdir conftest 9033 cd conftest 9034 mkdir out 9035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9036 9037 lt_compiler_flag="-o out/conftest2.$ac_objext" 9038 # Insert the option either (1) after the last *FLAGS variable, or 9039 # (2) before a word containing "conftest.", or (3) at the end. 9040 # Note that $ac_compile itself does not contain backslashes and begins 9041 # with a dollar sign (not a hyphen), so the echo should work correctly. 9042 lt_compile=`echo "$ac_compile" | $SED \ 9043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9045 -e 's:$: $lt_compiler_flag:'` 9046 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9047 (eval "$lt_compile" 2>out/conftest.err) 9048 ac_status=$? 9049 cat out/conftest.err >&5 9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9051 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9052 then 9053 # The compiler can only warn and ignore the option if not recognized 9054 # So say no if there are warnings 9055 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9056 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9057 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9058 lt_cv_prog_compiler_c_o=yes 9059 fi 9060 fi 9061 chmod u+w . 2>&5 9062 $RM conftest* 9063 # SGI C++ compiler will create directory out/ii_files/ for 9064 # template instantiation 9065 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9066 $RM out/* && rmdir out 9067 cd .. 9068 $RM -r conftest 9069 $RM conftest* 9070 9071fi 9072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9073$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9074 9075 9076 9077 9078 9079 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9081$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9082if ${lt_cv_prog_compiler_c_o+:} false; then : 9083 $as_echo_n "(cached) " >&6 9084else 9085 lt_cv_prog_compiler_c_o=no 9086 $RM -r conftest 2>/dev/null 9087 mkdir conftest 9088 cd conftest 9089 mkdir out 9090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9091 9092 lt_compiler_flag="-o out/conftest2.$ac_objext" 9093 # Insert the option either (1) after the last *FLAGS variable, or 9094 # (2) before a word containing "conftest.", or (3) at the end. 9095 # Note that $ac_compile itself does not contain backslashes and begins 9096 # with a dollar sign (not a hyphen), so the echo should work correctly. 9097 lt_compile=`echo "$ac_compile" | $SED \ 9098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9100 -e 's:$: $lt_compiler_flag:'` 9101 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9102 (eval "$lt_compile" 2>out/conftest.err) 9103 ac_status=$? 9104 cat out/conftest.err >&5 9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9106 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9107 then 9108 # The compiler can only warn and ignore the option if not recognized 9109 # So say no if there are warnings 9110 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9111 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9112 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9113 lt_cv_prog_compiler_c_o=yes 9114 fi 9115 fi 9116 chmod u+w . 2>&5 9117 $RM conftest* 9118 # SGI C++ compiler will create directory out/ii_files/ for 9119 # template instantiation 9120 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9121 $RM out/* && rmdir out 9122 cd .. 9123 $RM -r conftest 9124 $RM conftest* 9125 9126fi 9127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9128$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9129 9130 9131 9132 9133hard_links=nottested 9134if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9135 # do not overwrite the value of need_locks provided by the user 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9137$as_echo_n "checking if we can lock with hard links... " >&6; } 9138 hard_links=yes 9139 $RM conftest* 9140 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9141 touch conftest.a 9142 ln conftest.a conftest.b 2>&5 || hard_links=no 9143 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9145$as_echo "$hard_links" >&6; } 9146 if test no = "$hard_links"; then 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9148$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9149 need_locks=warn 9150 fi 9151else 9152 need_locks=no 9153fi 9154 9155 9156 9157 9158 9159 9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9161$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9162 9163 runpath_var= 9164 allow_undefined_flag= 9165 always_export_symbols=no 9166 archive_cmds= 9167 archive_expsym_cmds= 9168 compiler_needs_object=no 9169 enable_shared_with_static_runtimes=no 9170 export_dynamic_flag_spec= 9171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9172 hardcode_automatic=no 9173 hardcode_direct=no 9174 hardcode_direct_absolute=no 9175 hardcode_libdir_flag_spec= 9176 hardcode_libdir_separator= 9177 hardcode_minus_L=no 9178 hardcode_shlibpath_var=unsupported 9179 inherit_rpath=no 9180 link_all_deplibs=unknown 9181 module_cmds= 9182 module_expsym_cmds= 9183 old_archive_from_new_cmds= 9184 old_archive_from_expsyms_cmds= 9185 thread_safe_flag_spec= 9186 whole_archive_flag_spec= 9187 # include_expsyms should be a list of space-separated symbols to be *always* 9188 # included in the symbol list 9189 include_expsyms= 9190 # exclude_expsyms can be an extended regexp of symbols to exclude 9191 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9192 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9193 # as well as any symbol that contains 'd'. 9194 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9195 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9196 # platforms (ab)use it in PIC code, but their linkers get confused if 9197 # the symbol is explicitly referenced. Since portable code cannot 9198 # rely on this symbol name, it's probably fine to never include it in 9199 # preloaded symbol tables. 9200 # Exclude shared library initialization/finalization symbols. 9201 extract_expsyms_cmds= 9202 9203 case $host_os in 9204 cygwin* | mingw* | pw32* | cegcc*) 9205 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9206 # When not using gcc, we currently assume that we are using 9207 # Microsoft Visual C++. 9208 if test yes != "$GCC"; then 9209 with_gnu_ld=no 9210 fi 9211 ;; 9212 interix*) 9213 # we just hope/assume this is gcc and not c89 (= MSVC++) 9214 with_gnu_ld=yes 9215 ;; 9216 openbsd* | bitrig*) 9217 with_gnu_ld=no 9218 ;; 9219 linux* | k*bsd*-gnu | gnu*) 9220 link_all_deplibs=no 9221 ;; 9222 esac 9223 9224 ld_shlibs=yes 9225 9226 # On some targets, GNU ld is compatible enough with the native linker 9227 # that we're better off using the native interface for both. 9228 lt_use_gnu_ld_interface=no 9229 if test yes = "$with_gnu_ld"; then 9230 case $host_os in 9231 aix*) 9232 # The AIX port of GNU ld has always aspired to compatibility 9233 # with the native linker. However, as the warning in the GNU ld 9234 # block says, versions before 2.19.5* couldn't really create working 9235 # shared libraries, regardless of the interface used. 9236 case `$LD -v 2>&1` in 9237 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9238 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9239 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9240 *) 9241 lt_use_gnu_ld_interface=yes 9242 ;; 9243 esac 9244 ;; 9245 *) 9246 lt_use_gnu_ld_interface=yes 9247 ;; 9248 esac 9249 fi 9250 9251 if test yes = "$lt_use_gnu_ld_interface"; then 9252 # If archive_cmds runs LD, not CC, wlarc should be empty 9253 wlarc='$wl' 9254 9255 # Set some defaults for GNU ld with shared library support. These 9256 # are reset later if shared libraries are not supported. Putting them 9257 # here allows them to be overridden if necessary. 9258 runpath_var=LD_RUN_PATH 9259 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9260 export_dynamic_flag_spec='$wl--export-dynamic' 9261 # ancient GNU ld didn't support --whole-archive et. al. 9262 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9263 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9264 else 9265 whole_archive_flag_spec= 9266 fi 9267 supports_anon_versioning=no 9268 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9269 *GNU\ gold*) supports_anon_versioning=yes ;; 9270 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9271 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9272 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9273 *\ 2.11.*) ;; # other 2.11 versions 9274 *) supports_anon_versioning=yes ;; 9275 esac 9276 9277 # See if GNU ld supports shared libraries. 9278 case $host_os in 9279 aix[3-9]*) 9280 # On AIX/PPC, the GNU linker is very broken 9281 if test ia64 != "$host_cpu"; then 9282 ld_shlibs=no 9283 cat <<_LT_EOF 1>&2 9284 9285*** Warning: the GNU linker, at least up to release 2.19, is reported 9286*** to be unable to reliably create shared libraries on AIX. 9287*** Therefore, libtool is disabling shared libraries support. If you 9288*** really care for shared libraries, you may want to install binutils 9289*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9290*** You will then need to restart the configuration process. 9291 9292_LT_EOF 9293 fi 9294 ;; 9295 9296 amigaos*) 9297 case $host_cpu in 9298 powerpc) 9299 # see comment about AmigaOS4 .so support 9300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9301 archive_expsym_cmds='' 9302 ;; 9303 m68k) 9304 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)' 9305 hardcode_libdir_flag_spec='-L$libdir' 9306 hardcode_minus_L=yes 9307 ;; 9308 esac 9309 ;; 9310 9311 beos*) 9312 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9313 allow_undefined_flag=unsupported 9314 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9315 # support --undefined. This deserves some investigation. FIXME 9316 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9317 else 9318 ld_shlibs=no 9319 fi 9320 ;; 9321 9322 cygwin* | mingw* | pw32* | cegcc*) 9323 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9324 # as there is no search path for DLLs. 9325 hardcode_libdir_flag_spec='-L$libdir' 9326 export_dynamic_flag_spec='$wl--export-all-symbols' 9327 allow_undefined_flag=unsupported 9328 always_export_symbols=no 9329 enable_shared_with_static_runtimes=yes 9330 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' 9331 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9332 9333 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9335 # If the export-symbols file already is a .def file, use it as 9336 # is; otherwise, prepend EXPORTS... 9337 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9338 cp $export_symbols $output_objdir/$soname.def; 9339 else 9340 echo EXPORTS > $output_objdir/$soname.def; 9341 cat $export_symbols >> $output_objdir/$soname.def; 9342 fi~ 9343 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9344 else 9345 ld_shlibs=no 9346 fi 9347 ;; 9348 9349 haiku*) 9350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9351 link_all_deplibs=yes 9352 ;; 9353 9354 os2*) 9355 hardcode_libdir_flag_spec='-L$libdir' 9356 hardcode_minus_L=yes 9357 allow_undefined_flag=unsupported 9358 shrext_cmds=.dll 9359 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9360 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9361 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9362 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9363 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9364 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9365 emximp -o $lib $output_objdir/$libname.def' 9366 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9367 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9368 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9369 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9370 prefix_cmds="$SED"~ 9371 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9372 prefix_cmds="$prefix_cmds -e 1d"; 9373 fi~ 9374 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9375 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9376 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9377 emximp -o $lib $output_objdir/$libname.def' 9378 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9379 enable_shared_with_static_runtimes=yes 9380 ;; 9381 9382 interix[3-9]*) 9383 hardcode_direct=no 9384 hardcode_shlibpath_var=no 9385 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9386 export_dynamic_flag_spec='$wl-E' 9387 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9388 # Instead, shared libraries are loaded at an image base (0x10000000 by 9389 # default) and relocated if they conflict, which is a slow very memory 9390 # consuming and fragmenting process. To avoid this, we pick a random, 9391 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9392 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9393 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9394 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' 9395 ;; 9396 9397 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9398 tmp_diet=no 9399 if test linux-dietlibc = "$host_os"; then 9400 case $cc_basename in 9401 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9402 esac 9403 fi 9404 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9405 && test no = "$tmp_diet" 9406 then 9407 tmp_addflag=' $pic_flag' 9408 tmp_sharedflag='-shared' 9409 case $cc_basename,$host_cpu in 9410 pgcc*) # Portland Group C compiler 9411 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' 9412 tmp_addflag=' $pic_flag' 9413 ;; 9414 pgf77* | pgf90* | pgf95* | pgfortran*) 9415 # Portland Group f77 and f90 compilers 9416 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' 9417 tmp_addflag=' $pic_flag -Mnomain' ;; 9418 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9419 tmp_addflag=' -i_dynamic' ;; 9420 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9421 tmp_addflag=' -i_dynamic -nofor_main' ;; 9422 ifc* | ifort*) # Intel Fortran compiler 9423 tmp_addflag=' -nofor_main' ;; 9424 lf95*) # Lahey Fortran 8.1 9425 whole_archive_flag_spec= 9426 tmp_sharedflag='--shared' ;; 9427 nagfor*) # NAGFOR 5.3 9428 tmp_sharedflag='-Wl,-shared' ;; 9429 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9430 tmp_sharedflag='-qmkshrobj' 9431 tmp_addflag= ;; 9432 nvcc*) # Cuda Compiler Driver 2.2 9433 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' 9434 compiler_needs_object=yes 9435 ;; 9436 esac 9437 case `$CC -V 2>&1 | sed 5q` in 9438 *Sun\ C*) # Sun C 5.9 9439 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' 9440 compiler_needs_object=yes 9441 tmp_sharedflag='-G' ;; 9442 *Sun\ F*) # Sun Fortran 8.3 9443 tmp_sharedflag='-G' ;; 9444 esac 9445 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9446 9447 if test yes = "$supports_anon_versioning"; then 9448 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9449 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9450 echo "local: *; };" >> $output_objdir/$libname.ver~ 9451 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9452 fi 9453 9454 case $cc_basename in 9455 tcc*) 9456 export_dynamic_flag_spec='-rdynamic' 9457 ;; 9458 xlf* | bgf* | bgxlf* | mpixlf*) 9459 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9460 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9461 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9462 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9463 if test yes = "$supports_anon_versioning"; then 9464 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9465 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9466 echo "local: *; };" >> $output_objdir/$libname.ver~ 9467 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9468 fi 9469 ;; 9470 esac 9471 else 9472 ld_shlibs=no 9473 fi 9474 ;; 9475 9476 netbsd* | netbsdelf*-gnu) 9477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9478 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9479 wlarc= 9480 else 9481 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9482 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9483 fi 9484 ;; 9485 9486 solaris*) 9487 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9488 ld_shlibs=no 9489 cat <<_LT_EOF 1>&2 9490 9491*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9492*** create shared libraries on Solaris systems. Therefore, libtool 9493*** is disabling shared libraries support. We urge you to upgrade GNU 9494*** binutils to release 2.9.1 or newer. Another option is to modify 9495*** your PATH or compiler configuration so that the native linker is 9496*** used, and then restart. 9497 9498_LT_EOF 9499 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9500 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9501 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9502 else 9503 ld_shlibs=no 9504 fi 9505 ;; 9506 9507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9508 case `$LD -v 2>&1` in 9509 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9510 ld_shlibs=no 9511 cat <<_LT_EOF 1>&2 9512 9513*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9514*** reliably create shared libraries on SCO systems. Therefore, libtool 9515*** is disabling shared libraries support. We urge you to upgrade GNU 9516*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9517*** your PATH or compiler configuration so that the native linker is 9518*** used, and then restart. 9519 9520_LT_EOF 9521 ;; 9522 *) 9523 # For security reasons, it is highly recommended that you always 9524 # use absolute paths for naming shared libraries, and exclude the 9525 # DT_RUNPATH tag from executables and libraries. But doing so 9526 # requires that you compile everything twice, which is a pain. 9527 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9528 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9530 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9531 else 9532 ld_shlibs=no 9533 fi 9534 ;; 9535 esac 9536 ;; 9537 9538 sunos4*) 9539 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9540 wlarc= 9541 hardcode_direct=yes 9542 hardcode_shlibpath_var=no 9543 ;; 9544 9545 *) 9546 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9547 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9548 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9549 else 9550 ld_shlibs=no 9551 fi 9552 ;; 9553 esac 9554 9555 if test no = "$ld_shlibs"; then 9556 runpath_var= 9557 hardcode_libdir_flag_spec= 9558 export_dynamic_flag_spec= 9559 whole_archive_flag_spec= 9560 fi 9561 else 9562 # PORTME fill in a description of your system's linker (not GNU ld) 9563 case $host_os in 9564 aix3*) 9565 allow_undefined_flag=unsupported 9566 always_export_symbols=yes 9567 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' 9568 # Note: this linker hardcodes the directories in LIBPATH if there 9569 # are no directories specified by -L. 9570 hardcode_minus_L=yes 9571 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9572 # Neither direct hardcoding nor static linking is supported with a 9573 # broken collect2. 9574 hardcode_direct=unsupported 9575 fi 9576 ;; 9577 9578 aix[4-9]*) 9579 if test ia64 = "$host_cpu"; then 9580 # On IA64, the linker does run time linking by default, so we don't 9581 # have to do anything special. 9582 aix_use_runtimelinking=no 9583 exp_sym_flag='-Bexport' 9584 no_entry_flag= 9585 else 9586 # If we're using GNU nm, then we don't want the "-C" option. 9587 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9588 # Without the "-l" option, or with the "-B" option, AIX nm treats 9589 # weak defined symbols like other global defined symbols, whereas 9590 # GNU nm marks them as "W". 9591 # While the 'weak' keyword is ignored in the Export File, we need 9592 # it in the Import File for the 'aix-soname' feature, so we have 9593 # to replace the "-B" option with "-P" for AIX nm. 9594 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9595 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' 9596 else 9597 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' 9598 fi 9599 aix_use_runtimelinking=no 9600 9601 # Test if we are trying to use run time linking or normal 9602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9603 # have runtime linking enabled, and use it for executables. 9604 # For shared libraries, we enable/disable runtime linking 9605 # depending on the kind of the shared library created - 9606 # when "with_aix_soname,aix_use_runtimelinking" is: 9607 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9608 # "aix,yes" lib.so shared, rtl:yes, for executables 9609 # lib.a static archive 9610 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9611 # lib.a(lib.so.V) shared, rtl:no, for executables 9612 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9613 # lib.a(lib.so.V) shared, rtl:no 9614 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9615 # lib.a static archive 9616 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9617 for ld_flag in $LDFLAGS; do 9618 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9619 aix_use_runtimelinking=yes 9620 break 9621 fi 9622 done 9623 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9624 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9625 # so we don't have lib.a shared libs to link our executables. 9626 # We have to force runtime linking in this case. 9627 aix_use_runtimelinking=yes 9628 LDFLAGS="$LDFLAGS -Wl,-brtl" 9629 fi 9630 ;; 9631 esac 9632 9633 exp_sym_flag='-bexport' 9634 no_entry_flag='-bnoentry' 9635 fi 9636 9637 # When large executables or shared objects are built, AIX ld can 9638 # have problems creating the table of contents. If linking a library 9639 # or program results in "error TOC overflow" add -mminimal-toc to 9640 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9641 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9642 9643 archive_cmds='' 9644 hardcode_direct=yes 9645 hardcode_direct_absolute=yes 9646 hardcode_libdir_separator=':' 9647 link_all_deplibs=yes 9648 file_list_spec='$wl-f,' 9649 case $with_aix_soname,$aix_use_runtimelinking in 9650 aix,*) ;; # traditional, no import file 9651 svr4,* | *,yes) # use import file 9652 # The Import File defines what to hardcode. 9653 hardcode_direct=no 9654 hardcode_direct_absolute=no 9655 ;; 9656 esac 9657 9658 if test yes = "$GCC"; then 9659 case $host_os in aix4.[012]|aix4.[012].*) 9660 # We only want to do this on AIX 4.2 and lower, the check 9661 # below for broken collect2 doesn't work under 4.3+ 9662 collect2name=`$CC -print-prog-name=collect2` 9663 if test -f "$collect2name" && 9664 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9665 then 9666 # We have reworked collect2 9667 : 9668 else 9669 # We have old collect2 9670 hardcode_direct=unsupported 9671 # It fails to find uninstalled libraries when the uninstalled 9672 # path is not listed in the libpath. Setting hardcode_minus_L 9673 # to unsupported forces relinking 9674 hardcode_minus_L=yes 9675 hardcode_libdir_flag_spec='-L$libdir' 9676 hardcode_libdir_separator= 9677 fi 9678 ;; 9679 esac 9680 shared_flag='-shared' 9681 if test yes = "$aix_use_runtimelinking"; then 9682 shared_flag="$shared_flag "'$wl-G' 9683 fi 9684 # Need to ensure runtime linking is disabled for the traditional 9685 # shared library, or the linker may eventually find shared libraries 9686 # /with/ Import File - we do not want to mix them. 9687 shared_flag_aix='-shared' 9688 shared_flag_svr4='-shared $wl-G' 9689 else 9690 # not using gcc 9691 if test ia64 = "$host_cpu"; then 9692 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9693 # chokes on -Wl,-G. The following line is correct: 9694 shared_flag='-G' 9695 else 9696 if test yes = "$aix_use_runtimelinking"; then 9697 shared_flag='$wl-G' 9698 else 9699 shared_flag='$wl-bM:SRE' 9700 fi 9701 shared_flag_aix='$wl-bM:SRE' 9702 shared_flag_svr4='$wl-G' 9703 fi 9704 fi 9705 9706 export_dynamic_flag_spec='$wl-bexpall' 9707 # It seems that -bexpall does not export symbols beginning with 9708 # underscore (_), so it is better to generate a list of symbols to export. 9709 always_export_symbols=yes 9710 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9711 # Warning - without using the other runtime loading flags (-brtl), 9712 # -berok will link without error, but may produce a broken library. 9713 allow_undefined_flag='-berok' 9714 # Determine the default libpath from the value encoded in an 9715 # empty executable. 9716 if test set = "${lt_cv_aix_libpath+set}"; then 9717 aix_libpath=$lt_cv_aix_libpath 9718else 9719 if ${lt_cv_aix_libpath_+:} false; then : 9720 $as_echo_n "(cached) " >&6 9721else 9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9723/* end confdefs.h. */ 9724 9725int 9726main () 9727{ 9728 9729 ; 9730 return 0; 9731} 9732_ACEOF 9733if ac_fn_c_try_link "$LINENO"; then : 9734 9735 lt_aix_libpath_sed=' 9736 /Import File Strings/,/^$/ { 9737 /^0/ { 9738 s/^0 *\([^ ]*\) *$/\1/ 9739 p 9740 } 9741 }' 9742 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9743 # Check for a 64-bit object if we didn't find anything. 9744 if test -z "$lt_cv_aix_libpath_"; then 9745 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9746 fi 9747fi 9748rm -f core conftest.err conftest.$ac_objext \ 9749 conftest$ac_exeext conftest.$ac_ext 9750 if test -z "$lt_cv_aix_libpath_"; then 9751 lt_cv_aix_libpath_=/usr/lib:/lib 9752 fi 9753 9754fi 9755 9756 aix_libpath=$lt_cv_aix_libpath_ 9757fi 9758 9759 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9760 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 9761 else 9762 if test ia64 = "$host_cpu"; then 9763 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9764 allow_undefined_flag="-z nodefs" 9765 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" 9766 else 9767 # Determine the default libpath from the value encoded in an 9768 # empty executable. 9769 if test set = "${lt_cv_aix_libpath+set}"; then 9770 aix_libpath=$lt_cv_aix_libpath 9771else 9772 if ${lt_cv_aix_libpath_+:} false; then : 9773 $as_echo_n "(cached) " >&6 9774else 9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9776/* end confdefs.h. */ 9777 9778int 9779main () 9780{ 9781 9782 ; 9783 return 0; 9784} 9785_ACEOF 9786if ac_fn_c_try_link "$LINENO"; then : 9787 9788 lt_aix_libpath_sed=' 9789 /Import File Strings/,/^$/ { 9790 /^0/ { 9791 s/^0 *\([^ ]*\) *$/\1/ 9792 p 9793 } 9794 }' 9795 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9796 # Check for a 64-bit object if we didn't find anything. 9797 if test -z "$lt_cv_aix_libpath_"; then 9798 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9799 fi 9800fi 9801rm -f core conftest.err conftest.$ac_objext \ 9802 conftest$ac_exeext conftest.$ac_ext 9803 if test -z "$lt_cv_aix_libpath_"; then 9804 lt_cv_aix_libpath_=/usr/lib:/lib 9805 fi 9806 9807fi 9808 9809 aix_libpath=$lt_cv_aix_libpath_ 9810fi 9811 9812 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9813 # Warning - without using the other run time loading flags, 9814 # -berok will link without error, but may produce a broken library. 9815 no_undefined_flag=' $wl-bernotok' 9816 allow_undefined_flag=' $wl-berok' 9817 if test yes = "$with_gnu_ld"; then 9818 # We only use this code for GNU lds that support --whole-archive. 9819 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9820 else 9821 # Exported symbols can be pulled into shared objects from archives 9822 whole_archive_flag_spec='$convenience' 9823 fi 9824 archive_cmds_need_lc=yes 9825 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9826 # -brtl affects multiple linker settings, -berok does not and is overridden later 9827 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9828 if test svr4 != "$with_aix_soname"; then 9829 # This is similar to how AIX traditionally builds its shared libraries. 9830 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' 9831 fi 9832 if test aix != "$with_aix_soname"; then 9833 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' 9834 else 9835 # used by -dlpreopen to get the symbols 9836 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9837 fi 9838 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9839 fi 9840 fi 9841 ;; 9842 9843 amigaos*) 9844 case $host_cpu in 9845 powerpc) 9846 # see comment about AmigaOS4 .so support 9847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9848 archive_expsym_cmds='' 9849 ;; 9850 m68k) 9851 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)' 9852 hardcode_libdir_flag_spec='-L$libdir' 9853 hardcode_minus_L=yes 9854 ;; 9855 esac 9856 ;; 9857 9858 bsdi[45]*) 9859 export_dynamic_flag_spec=-rdynamic 9860 ;; 9861 9862 cygwin* | mingw* | pw32* | cegcc*) 9863 # When not using gcc, we currently assume that we are using 9864 # Microsoft Visual C++. 9865 # hardcode_libdir_flag_spec is actually meaningless, as there is 9866 # no search path for DLLs. 9867 case $cc_basename in 9868 cl*) 9869 # Native MSVC 9870 hardcode_libdir_flag_spec=' ' 9871 allow_undefined_flag=unsupported 9872 always_export_symbols=yes 9873 file_list_spec='@' 9874 # Tell ltmain to make .lib files, not .a files. 9875 libext=lib 9876 # Tell ltmain to make .dll files, not .so files. 9877 shrext_cmds=.dll 9878 # FIXME: Setting linknames here is a bad hack. 9879 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9880 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9881 cp "$export_symbols" "$output_objdir/$soname.def"; 9882 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9883 else 9884 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9885 fi~ 9886 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9887 linknames=' 9888 # The linker will not automatically build a static lib if we build a DLL. 9889 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9890 enable_shared_with_static_runtimes=yes 9891 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9892 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9893 # Don't use ranlib 9894 old_postinstall_cmds='chmod 644 $oldlib' 9895 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9896 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9897 case $lt_outputfile in 9898 *.exe|*.EXE) ;; 9899 *) 9900 lt_outputfile=$lt_outputfile.exe 9901 lt_tool_outputfile=$lt_tool_outputfile.exe 9902 ;; 9903 esac~ 9904 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9905 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9906 $RM "$lt_outputfile.manifest"; 9907 fi' 9908 ;; 9909 *) 9910 # Assume MSVC wrapper 9911 hardcode_libdir_flag_spec=' ' 9912 allow_undefined_flag=unsupported 9913 # Tell ltmain to make .lib files, not .a files. 9914 libext=lib 9915 # Tell ltmain to make .dll files, not .so files. 9916 shrext_cmds=.dll 9917 # FIXME: Setting linknames here is a bad hack. 9918 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9919 # The linker will automatically build a .lib file if we build a DLL. 9920 old_archive_from_new_cmds='true' 9921 # FIXME: Should let the user specify the lib program. 9922 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9923 enable_shared_with_static_runtimes=yes 9924 ;; 9925 esac 9926 ;; 9927 9928 darwin* | rhapsody*) 9929 9930 9931 archive_cmds_need_lc=no 9932 hardcode_direct=no 9933 hardcode_automatic=yes 9934 hardcode_shlibpath_var=unsupported 9935 if test yes = "$lt_cv_ld_force_load"; then 9936 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\"`' 9937 9938 else 9939 whole_archive_flag_spec='' 9940 fi 9941 link_all_deplibs=yes 9942 allow_undefined_flag=$_lt_dar_allow_undefined 9943 case $cc_basename in 9944 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9945 *) _lt_dar_can_shared=$GCC ;; 9946 esac 9947 if test yes = "$_lt_dar_can_shared"; then 9948 output_verbose_link_cmd=func_echo_all 9949 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9950 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9951 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" 9952 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" 9953 9954 else 9955 ld_shlibs=no 9956 fi 9957 9958 ;; 9959 9960 dgux*) 9961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9962 hardcode_libdir_flag_spec='-L$libdir' 9963 hardcode_shlibpath_var=no 9964 ;; 9965 9966 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9967 # support. Future versions do this automatically, but an explicit c++rt0.o 9968 # does not break anything, and helps significantly (at the cost of a little 9969 # extra space). 9970 freebsd2.2*) 9971 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9972 hardcode_libdir_flag_spec='-R$libdir' 9973 hardcode_direct=yes 9974 hardcode_shlibpath_var=no 9975 ;; 9976 9977 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9978 freebsd2.*) 9979 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9980 hardcode_direct=yes 9981 hardcode_minus_L=yes 9982 hardcode_shlibpath_var=no 9983 ;; 9984 9985 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9986 freebsd* | dragonfly*) 9987 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9988 hardcode_libdir_flag_spec='-R$libdir' 9989 hardcode_direct=yes 9990 hardcode_shlibpath_var=no 9991 ;; 9992 9993 hpux9*) 9994 if test yes = "$GCC"; then 9995 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' 9996 else 9997 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' 9998 fi 9999 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10000 hardcode_libdir_separator=: 10001 hardcode_direct=yes 10002 10003 # hardcode_minus_L: Not really in the search PATH, 10004 # but as the default location of the library. 10005 hardcode_minus_L=yes 10006 export_dynamic_flag_spec='$wl-E' 10007 ;; 10008 10009 hpux10*) 10010 if test yes,no = "$GCC,$with_gnu_ld"; then 10011 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10012 else 10013 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10014 fi 10015 if test no = "$with_gnu_ld"; then 10016 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10017 hardcode_libdir_separator=: 10018 hardcode_direct=yes 10019 hardcode_direct_absolute=yes 10020 export_dynamic_flag_spec='$wl-E' 10021 # hardcode_minus_L: Not really in the search PATH, 10022 # but as the default location of the library. 10023 hardcode_minus_L=yes 10024 fi 10025 ;; 10026 10027 hpux11*) 10028 if test yes,no = "$GCC,$with_gnu_ld"; then 10029 case $host_cpu in 10030 hppa*64*) 10031 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10032 ;; 10033 ia64*) 10034 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10035 ;; 10036 *) 10037 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10038 ;; 10039 esac 10040 else 10041 case $host_cpu in 10042 hppa*64*) 10043 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10044 ;; 10045 ia64*) 10046 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10047 ;; 10048 *) 10049 10050 # Older versions of the 11.00 compiler do not understand -b yet 10051 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10053$as_echo_n "checking if $CC understands -b... " >&6; } 10054if ${lt_cv_prog_compiler__b+:} false; then : 10055 $as_echo_n "(cached) " >&6 10056else 10057 lt_cv_prog_compiler__b=no 10058 save_LDFLAGS=$LDFLAGS 10059 LDFLAGS="$LDFLAGS -b" 10060 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10062 # The linker can only warn and ignore the option if not recognized 10063 # So say no if there are warnings 10064 if test -s conftest.err; then 10065 # Append any errors to the config.log. 10066 cat conftest.err 1>&5 10067 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10069 if diff conftest.exp conftest.er2 >/dev/null; then 10070 lt_cv_prog_compiler__b=yes 10071 fi 10072 else 10073 lt_cv_prog_compiler__b=yes 10074 fi 10075 fi 10076 $RM -r conftest* 10077 LDFLAGS=$save_LDFLAGS 10078 10079fi 10080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10081$as_echo "$lt_cv_prog_compiler__b" >&6; } 10082 10083if test yes = "$lt_cv_prog_compiler__b"; then 10084 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10085else 10086 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10087fi 10088 10089 ;; 10090 esac 10091 fi 10092 if test no = "$with_gnu_ld"; then 10093 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10094 hardcode_libdir_separator=: 10095 10096 case $host_cpu in 10097 hppa*64*|ia64*) 10098 hardcode_direct=no 10099 hardcode_shlibpath_var=no 10100 ;; 10101 *) 10102 hardcode_direct=yes 10103 hardcode_direct_absolute=yes 10104 export_dynamic_flag_spec='$wl-E' 10105 10106 # hardcode_minus_L: Not really in the search PATH, 10107 # but as the default location of the library. 10108 hardcode_minus_L=yes 10109 ;; 10110 esac 10111 fi 10112 ;; 10113 10114 irix5* | irix6* | nonstopux*) 10115 if test yes = "$GCC"; then 10116 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' 10117 # Try to use the -exported_symbol ld option, if it does not 10118 # work, assume that -exports_file does not work either and 10119 # implicitly export all symbols. 10120 # This should be the same for all languages, so no per-tag cache variable. 10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10122$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10123if ${lt_cv_irix_exported_symbol+:} false; then : 10124 $as_echo_n "(cached) " >&6 10125else 10126 save_LDFLAGS=$LDFLAGS 10127 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10129/* end confdefs.h. */ 10130int foo (void) { return 0; } 10131_ACEOF 10132if ac_fn_c_try_link "$LINENO"; then : 10133 lt_cv_irix_exported_symbol=yes 10134else 10135 lt_cv_irix_exported_symbol=no 10136fi 10137rm -f core conftest.err conftest.$ac_objext \ 10138 conftest$ac_exeext conftest.$ac_ext 10139 LDFLAGS=$save_LDFLAGS 10140fi 10141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10142$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10143 if test yes = "$lt_cv_irix_exported_symbol"; then 10144 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' 10145 fi 10146 link_all_deplibs=no 10147 else 10148 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' 10149 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' 10150 fi 10151 archive_cmds_need_lc='no' 10152 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10153 hardcode_libdir_separator=: 10154 inherit_rpath=yes 10155 link_all_deplibs=yes 10156 ;; 10157 10158 linux*) 10159 case $cc_basename in 10160 tcc*) 10161 # Fabrice Bellard et al's Tiny C Compiler 10162 ld_shlibs=yes 10163 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10164 ;; 10165 esac 10166 ;; 10167 10168 netbsd* | netbsdelf*-gnu) 10169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10170 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10171 else 10172 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10173 fi 10174 hardcode_libdir_flag_spec='-R$libdir' 10175 hardcode_direct=yes 10176 hardcode_shlibpath_var=no 10177 ;; 10178 10179 newsos6) 10180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10181 hardcode_direct=yes 10182 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10183 hardcode_libdir_separator=: 10184 hardcode_shlibpath_var=no 10185 ;; 10186 10187 *nto* | *qnx*) 10188 ;; 10189 10190 openbsd* | bitrig*) 10191 if test -f /usr/libexec/ld.so; then 10192 hardcode_direct=yes 10193 hardcode_shlibpath_var=no 10194 hardcode_direct_absolute=yes 10195 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10196 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10197 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10198 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10199 export_dynamic_flag_spec='$wl-E' 10200 else 10201 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10202 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10203 fi 10204 else 10205 ld_shlibs=no 10206 fi 10207 ;; 10208 10209 os2*) 10210 hardcode_libdir_flag_spec='-L$libdir' 10211 hardcode_minus_L=yes 10212 allow_undefined_flag=unsupported 10213 shrext_cmds=.dll 10214 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10215 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10216 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10217 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10218 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10219 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10220 emximp -o $lib $output_objdir/$libname.def' 10221 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10222 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10223 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10224 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10225 prefix_cmds="$SED"~ 10226 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10227 prefix_cmds="$prefix_cmds -e 1d"; 10228 fi~ 10229 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10230 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10231 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10232 emximp -o $lib $output_objdir/$libname.def' 10233 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10234 enable_shared_with_static_runtimes=yes 10235 ;; 10236 10237 osf3*) 10238 if test yes = "$GCC"; then 10239 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10240 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' 10241 else 10242 allow_undefined_flag=' -expect_unresolved \*' 10243 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' 10244 fi 10245 archive_cmds_need_lc='no' 10246 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10247 hardcode_libdir_separator=: 10248 ;; 10249 10250 osf4* | osf5*) # as osf3* with the addition of -msym flag 10251 if test yes = "$GCC"; then 10252 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10253 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' 10254 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10255 else 10256 allow_undefined_flag=' -expect_unresolved \*' 10257 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' 10258 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~ 10259 $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' 10260 10261 # Both c and cxx compiler support -rpath directly 10262 hardcode_libdir_flag_spec='-rpath $libdir' 10263 fi 10264 archive_cmds_need_lc='no' 10265 hardcode_libdir_separator=: 10266 ;; 10267 10268 solaris*) 10269 no_undefined_flag=' -z defs' 10270 if test yes = "$GCC"; then 10271 wlarc='$wl' 10272 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10273 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10274 $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' 10275 else 10276 case `$CC -V 2>&1` in 10277 *"Compilers 5.0"*) 10278 wlarc='' 10279 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10281 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10282 ;; 10283 *) 10284 wlarc='$wl' 10285 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10286 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10287 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10288 ;; 10289 esac 10290 fi 10291 hardcode_libdir_flag_spec='-R$libdir' 10292 hardcode_shlibpath_var=no 10293 case $host_os in 10294 solaris2.[0-5] | solaris2.[0-5].*) ;; 10295 *) 10296 # The compiler driver will combine and reorder linker options, 10297 # but understands '-z linker_flag'. GCC discards it without '$wl', 10298 # but is careful enough not to reorder. 10299 # Supported since Solaris 2.6 (maybe 2.5.1?) 10300 if test yes = "$GCC"; then 10301 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10302 else 10303 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10304 fi 10305 ;; 10306 esac 10307 link_all_deplibs=yes 10308 ;; 10309 10310 sunos4*) 10311 if test sequent = "$host_vendor"; then 10312 # Use $CC to link under sequent, because it throws in some extra .o 10313 # files that make .init and .fini sections work. 10314 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10315 else 10316 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10317 fi 10318 hardcode_libdir_flag_spec='-L$libdir' 10319 hardcode_direct=yes 10320 hardcode_minus_L=yes 10321 hardcode_shlibpath_var=no 10322 ;; 10323 10324 sysv4) 10325 case $host_vendor in 10326 sni) 10327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10328 hardcode_direct=yes # is this really true??? 10329 ;; 10330 siemens) 10331 ## LD is ld it makes a PLAMLIB 10332 ## CC just makes a GrossModule. 10333 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10334 reload_cmds='$CC -r -o $output$reload_objs' 10335 hardcode_direct=no 10336 ;; 10337 motorola) 10338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10339 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10340 ;; 10341 esac 10342 runpath_var='LD_RUN_PATH' 10343 hardcode_shlibpath_var=no 10344 ;; 10345 10346 sysv4.3*) 10347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10348 hardcode_shlibpath_var=no 10349 export_dynamic_flag_spec='-Bexport' 10350 ;; 10351 10352 sysv4*MP*) 10353 if test -d /usr/nec; then 10354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10355 hardcode_shlibpath_var=no 10356 runpath_var=LD_RUN_PATH 10357 hardcode_runpath_var=yes 10358 ld_shlibs=yes 10359 fi 10360 ;; 10361 10362 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10363 no_undefined_flag='$wl-z,text' 10364 archive_cmds_need_lc=no 10365 hardcode_shlibpath_var=no 10366 runpath_var='LD_RUN_PATH' 10367 10368 if test yes = "$GCC"; then 10369 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10370 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10371 else 10372 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10373 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10374 fi 10375 ;; 10376 10377 sysv5* | sco3.2v5* | sco5v6*) 10378 # Note: We CANNOT use -z defs as we might desire, because we do not 10379 # link with -lc, and that would cause any symbols used from libc to 10380 # always be unresolved, which means just about no library would 10381 # ever link correctly. If we're not using GNU ld we use -z text 10382 # though, which does catch some bad symbols but isn't as heavy-handed 10383 # as -z defs. 10384 no_undefined_flag='$wl-z,text' 10385 allow_undefined_flag='$wl-z,nodefs' 10386 archive_cmds_need_lc=no 10387 hardcode_shlibpath_var=no 10388 hardcode_libdir_flag_spec='$wl-R,$libdir' 10389 hardcode_libdir_separator=':' 10390 link_all_deplibs=yes 10391 export_dynamic_flag_spec='$wl-Bexport' 10392 runpath_var='LD_RUN_PATH' 10393 10394 if test yes = "$GCC"; then 10395 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10396 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10397 else 10398 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10399 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10400 fi 10401 ;; 10402 10403 uts4*) 10404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10405 hardcode_libdir_flag_spec='-L$libdir' 10406 hardcode_shlibpath_var=no 10407 ;; 10408 10409 *) 10410 ld_shlibs=no 10411 ;; 10412 esac 10413 10414 if test sni = "$host_vendor"; then 10415 case $host in 10416 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10417 export_dynamic_flag_spec='$wl-Blargedynsym' 10418 ;; 10419 esac 10420 fi 10421 fi 10422 10423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10424$as_echo "$ld_shlibs" >&6; } 10425test no = "$ld_shlibs" && can_build_shared=no 10426 10427with_gnu_ld=$with_gnu_ld 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443# 10444# Do we need to explicitly link libc? 10445# 10446case "x$archive_cmds_need_lc" in 10447x|xyes) 10448 # Assume -lc should be added 10449 archive_cmds_need_lc=yes 10450 10451 if test yes,yes = "$GCC,$enable_shared"; then 10452 case $archive_cmds in 10453 *'~'*) 10454 # FIXME: we may have to deal with multi-command sequences. 10455 ;; 10456 '$CC '*) 10457 # Test whether the compiler implicitly links with -lc since on some 10458 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10459 # to ld, don't add -lc before -lgcc. 10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10461$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10462if ${lt_cv_archive_cmds_need_lc+:} false; then : 10463 $as_echo_n "(cached) " >&6 10464else 10465 $RM conftest* 10466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10467 10468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10469 (eval $ac_compile) 2>&5 10470 ac_status=$? 10471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10472 test $ac_status = 0; } 2>conftest.err; then 10473 soname=conftest 10474 lib=conftest 10475 libobjs=conftest.$ac_objext 10476 deplibs= 10477 wl=$lt_prog_compiler_wl 10478 pic_flag=$lt_prog_compiler_pic 10479 compiler_flags=-v 10480 linker_flags=-v 10481 verstring= 10482 output_objdir=. 10483 libname=conftest 10484 lt_save_allow_undefined_flag=$allow_undefined_flag 10485 allow_undefined_flag= 10486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10487 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10488 ac_status=$? 10489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10490 test $ac_status = 0; } 10491 then 10492 lt_cv_archive_cmds_need_lc=no 10493 else 10494 lt_cv_archive_cmds_need_lc=yes 10495 fi 10496 allow_undefined_flag=$lt_save_allow_undefined_flag 10497 else 10498 cat conftest.err 1>&5 10499 fi 10500 $RM conftest* 10501 10502fi 10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10504$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10505 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10506 ;; 10507 esac 10508 fi 10509 ;; 10510esac 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10664$as_echo_n "checking dynamic linker characteristics... " >&6; } 10665 10666if test yes = "$GCC"; then 10667 case $host_os in 10668 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10669 *) lt_awk_arg='/^libraries:/' ;; 10670 esac 10671 case $host_os in 10672 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10673 *) lt_sed_strip_eq='s|=/|/|g' ;; 10674 esac 10675 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10676 case $lt_search_path_spec in 10677 *\;*) 10678 # if the path contains ";" then we assume it to be the separator 10679 # otherwise default to the standard path separator (i.e. ":") - it is 10680 # assumed that no part of a normal pathname contains ";" but that should 10681 # okay in the real world where ";" in dirpaths is itself problematic. 10682 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10683 ;; 10684 *) 10685 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10686 ;; 10687 esac 10688 # Ok, now we have the path, separated by spaces, we can step through it 10689 # and add multilib dir if necessary... 10690 lt_tmp_lt_search_path_spec= 10691 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10692 # ...but if some path component already ends with the multilib dir we assume 10693 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10694 case "$lt_multi_os_dir; $lt_search_path_spec " in 10695 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10696 lt_multi_os_dir= 10697 ;; 10698 esac 10699 for lt_sys_path in $lt_search_path_spec; do 10700 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10701 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10702 elif test -n "$lt_multi_os_dir"; then 10703 test -d "$lt_sys_path" && \ 10704 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10705 fi 10706 done 10707 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10708BEGIN {RS = " "; FS = "/|\n";} { 10709 lt_foo = ""; 10710 lt_count = 0; 10711 for (lt_i = NF; lt_i > 0; lt_i--) { 10712 if ($lt_i != "" && $lt_i != ".") { 10713 if ($lt_i == "..") { 10714 lt_count++; 10715 } else { 10716 if (lt_count == 0) { 10717 lt_foo = "/" $lt_i lt_foo; 10718 } else { 10719 lt_count--; 10720 } 10721 } 10722 } 10723 } 10724 if (lt_foo != "") { lt_freq[lt_foo]++; } 10725 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10726}'` 10727 # AWK program above erroneously prepends '/' to C:/dos/paths 10728 # for these hosts. 10729 case $host_os in 10730 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10731 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10732 esac 10733 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10734else 10735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10736fi 10737library_names_spec= 10738libname_spec='lib$name' 10739soname_spec= 10740shrext_cmds=.so 10741postinstall_cmds= 10742postuninstall_cmds= 10743finish_cmds= 10744finish_eval= 10745shlibpath_var= 10746shlibpath_overrides_runpath=unknown 10747version_type=none 10748dynamic_linker="$host_os ld.so" 10749sys_lib_dlsearch_path_spec="/lib /usr/lib" 10750need_lib_prefix=unknown 10751hardcode_into_libs=no 10752 10753# when you set need_version to no, make sure it does not cause -set_version 10754# flags to be left without arguments 10755need_version=unknown 10756 10757 10758 10759case $host_os in 10760aix3*) 10761 version_type=linux # correct to gnu/linux during the next big refactor 10762 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10763 shlibpath_var=LIBPATH 10764 10765 # AIX 3 has no versioning support, so we append a major version to the name. 10766 soname_spec='$libname$release$shared_ext$major' 10767 ;; 10768 10769aix[4-9]*) 10770 version_type=linux # correct to gnu/linux during the next big refactor 10771 need_lib_prefix=no 10772 need_version=no 10773 hardcode_into_libs=yes 10774 if test ia64 = "$host_cpu"; then 10775 # AIX 5 supports IA64 10776 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10777 shlibpath_var=LD_LIBRARY_PATH 10778 else 10779 # With GCC up to 2.95.x, collect2 would create an import file 10780 # for dependence libraries. The import file would start with 10781 # the line '#! .'. This would cause the generated library to 10782 # depend on '.', always an invalid library. This was fixed in 10783 # development snapshots of GCC prior to 3.0. 10784 case $host_os in 10785 aix4 | aix4.[01] | aix4.[01].*) 10786 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10787 echo ' yes ' 10788 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10789 : 10790 else 10791 can_build_shared=no 10792 fi 10793 ;; 10794 esac 10795 # Using Import Files as archive members, it is possible to support 10796 # filename-based versioning of shared library archives on AIX. While 10797 # this would work for both with and without runtime linking, it will 10798 # prevent static linking of such archives. So we do filename-based 10799 # shared library versioning with .so extension only, which is used 10800 # when both runtime linking and shared linking is enabled. 10801 # Unfortunately, runtime linking may impact performance, so we do 10802 # not want this to be the default eventually. Also, we use the 10803 # versioned .so libs for executables only if there is the -brtl 10804 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10805 # To allow for filename-based versioning support, we need to create 10806 # libNAME.so.V as an archive file, containing: 10807 # *) an Import File, referring to the versioned filename of the 10808 # archive as well as the shared archive member, telling the 10809 # bitwidth (32 or 64) of that shared object, and providing the 10810 # list of exported symbols of that shared object, eventually 10811 # decorated with the 'weak' keyword 10812 # *) the shared object with the F_LOADONLY flag set, to really avoid 10813 # it being seen by the linker. 10814 # At run time we better use the real file rather than another symlink, 10815 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10816 10817 case $with_aix_soname,$aix_use_runtimelinking in 10818 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10819 # soname into executable. Probably we can add versioning support to 10820 # collect2, so additional links can be useful in future. 10821 aix,yes) # traditional libtool 10822 dynamic_linker='AIX unversionable lib.so' 10823 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10824 # instead of lib<name>.a to let people know that these are not 10825 # typical AIX shared libraries. 10826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10827 ;; 10828 aix,no) # traditional AIX only 10829 dynamic_linker='AIX lib.a(lib.so.V)' 10830 # We preserve .a as extension for shared libraries through AIX4.2 10831 # and later when we are not doing run time linking. 10832 library_names_spec='$libname$release.a $libname.a' 10833 soname_spec='$libname$release$shared_ext$major' 10834 ;; 10835 svr4,*) # full svr4 only 10836 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10837 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10838 # We do not specify a path in Import Files, so LIBPATH fires. 10839 shlibpath_overrides_runpath=yes 10840 ;; 10841 *,yes) # both, prefer svr4 10842 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10843 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10844 # unpreferred sharedlib libNAME.a needs extra handling 10845 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"' 10846 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"' 10847 # We do not specify a path in Import Files, so LIBPATH fires. 10848 shlibpath_overrides_runpath=yes 10849 ;; 10850 *,no) # both, prefer aix 10851 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10852 library_names_spec='$libname$release.a $libname.a' 10853 soname_spec='$libname$release$shared_ext$major' 10854 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10855 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)' 10856 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"' 10857 ;; 10858 esac 10859 shlibpath_var=LIBPATH 10860 fi 10861 ;; 10862 10863amigaos*) 10864 case $host_cpu in 10865 powerpc) 10866 # Since July 2007 AmigaOS4 officially supports .so libraries. 10867 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10869 ;; 10870 m68k) 10871 library_names_spec='$libname.ixlibrary $libname.a' 10872 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10873 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' 10874 ;; 10875 esac 10876 ;; 10877 10878beos*) 10879 library_names_spec='$libname$shared_ext' 10880 dynamic_linker="$host_os ld.so" 10881 shlibpath_var=LIBRARY_PATH 10882 ;; 10883 10884bsdi[45]*) 10885 version_type=linux # correct to gnu/linux during the next big refactor 10886 need_version=no 10887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10888 soname_spec='$libname$release$shared_ext$major' 10889 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10890 shlibpath_var=LD_LIBRARY_PATH 10891 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10892 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10893 # the default ld.so.conf also contains /usr/contrib/lib and 10894 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10895 # libtool to hard-code these into programs 10896 ;; 10897 10898cygwin* | mingw* | pw32* | cegcc*) 10899 version_type=windows 10900 shrext_cmds=.dll 10901 need_version=no 10902 need_lib_prefix=no 10903 10904 case $GCC,$cc_basename in 10905 yes,*) 10906 # gcc 10907 library_names_spec='$libname.dll.a' 10908 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10909 postinstall_cmds='base_file=`basename \$file`~ 10910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10911 dldir=$destdir/`dirname \$dlpath`~ 10912 test -d \$dldir || mkdir -p \$dldir~ 10913 $install_prog $dir/$dlname \$dldir/$dlname~ 10914 chmod a+x \$dldir/$dlname~ 10915 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10916 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10917 fi' 10918 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10919 dlpath=$dir/\$dldll~ 10920 $RM \$dlpath' 10921 shlibpath_overrides_runpath=yes 10922 10923 case $host_os in 10924 cygwin*) 10925 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10926 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10927 10928 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10929 ;; 10930 mingw* | cegcc*) 10931 # MinGW DLLs use traditional 'lib' prefix 10932 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10933 ;; 10934 pw32*) 10935 # pw32 DLLs use 'pw' prefix rather than 'lib' 10936 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10937 ;; 10938 esac 10939 dynamic_linker='Win32 ld.exe' 10940 ;; 10941 10942 *,cl*) 10943 # Native MSVC 10944 libname_spec='$name' 10945 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10946 library_names_spec='$libname.dll.lib' 10947 10948 case $build_os in 10949 mingw*) 10950 sys_lib_search_path_spec= 10951 lt_save_ifs=$IFS 10952 IFS=';' 10953 for lt_path in $LIB 10954 do 10955 IFS=$lt_save_ifs 10956 # Let DOS variable expansion print the short 8.3 style file name. 10957 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10958 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10959 done 10960 IFS=$lt_save_ifs 10961 # Convert to MSYS style. 10962 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10963 ;; 10964 cygwin*) 10965 # Convert to unix form, then to dos form, then back to unix form 10966 # but this time dos style (no spaces!) so that the unix form looks 10967 # like /cygdrive/c/PROGRA~1:/cygdr... 10968 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10969 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10970 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10971 ;; 10972 *) 10973 sys_lib_search_path_spec=$LIB 10974 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10975 # It is most probably a Windows format PATH. 10976 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10977 else 10978 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10979 fi 10980 # FIXME: find the short name or the path components, as spaces are 10981 # common. (e.g. "Program Files" -> "PROGRA~1") 10982 ;; 10983 esac 10984 10985 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10986 postinstall_cmds='base_file=`basename \$file`~ 10987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10988 dldir=$destdir/`dirname \$dlpath`~ 10989 test -d \$dldir || mkdir -p \$dldir~ 10990 $install_prog $dir/$dlname \$dldir/$dlname' 10991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10992 dlpath=$dir/\$dldll~ 10993 $RM \$dlpath' 10994 shlibpath_overrides_runpath=yes 10995 dynamic_linker='Win32 link.exe' 10996 ;; 10997 10998 *) 10999 # Assume MSVC wrapper 11000 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11001 dynamic_linker='Win32 ld.exe' 11002 ;; 11003 esac 11004 # FIXME: first we should search . and the directory the executable is in 11005 shlibpath_var=PATH 11006 ;; 11007 11008darwin* | rhapsody*) 11009 dynamic_linker="$host_os dyld" 11010 version_type=darwin 11011 need_lib_prefix=no 11012 need_version=no 11013 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11014 soname_spec='$libname$release$major$shared_ext' 11015 shlibpath_overrides_runpath=yes 11016 shlibpath_var=DYLD_LIBRARY_PATH 11017 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11018 11019 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11020 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11021 ;; 11022 11023dgux*) 11024 version_type=linux # correct to gnu/linux during the next big refactor 11025 need_lib_prefix=no 11026 need_version=no 11027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11028 soname_spec='$libname$release$shared_ext$major' 11029 shlibpath_var=LD_LIBRARY_PATH 11030 ;; 11031 11032freebsd* | dragonfly*) 11033 # DragonFly does not have aout. When/if they implement a new 11034 # versioning mechanism, adjust this. 11035 if test -x /usr/bin/objformat; then 11036 objformat=`/usr/bin/objformat` 11037 else 11038 case $host_os in 11039 freebsd[23].*) objformat=aout ;; 11040 *) objformat=elf ;; 11041 esac 11042 fi 11043 version_type=freebsd-$objformat 11044 case $version_type in 11045 freebsd-elf*) 11046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11047 soname_spec='$libname$release$shared_ext$major' 11048 need_version=no 11049 need_lib_prefix=no 11050 ;; 11051 freebsd-*) 11052 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11053 need_version=yes 11054 ;; 11055 esac 11056 shlibpath_var=LD_LIBRARY_PATH 11057 case $host_os in 11058 freebsd2.*) 11059 shlibpath_overrides_runpath=yes 11060 ;; 11061 freebsd3.[01]* | freebsdelf3.[01]*) 11062 shlibpath_overrides_runpath=yes 11063 hardcode_into_libs=yes 11064 ;; 11065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11067 shlibpath_overrides_runpath=no 11068 hardcode_into_libs=yes 11069 ;; 11070 *) # from 4.6 on, and DragonFly 11071 shlibpath_overrides_runpath=yes 11072 hardcode_into_libs=yes 11073 ;; 11074 esac 11075 ;; 11076 11077haiku*) 11078 version_type=linux # correct to gnu/linux during the next big refactor 11079 need_lib_prefix=no 11080 need_version=no 11081 dynamic_linker="$host_os runtime_loader" 11082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11083 soname_spec='$libname$release$shared_ext$major' 11084 shlibpath_var=LIBRARY_PATH 11085 shlibpath_overrides_runpath=no 11086 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11087 hardcode_into_libs=yes 11088 ;; 11089 11090hpux9* | hpux10* | hpux11*) 11091 # Give a soname corresponding to the major version so that dld.sl refuses to 11092 # link against other versions. 11093 version_type=sunos 11094 need_lib_prefix=no 11095 need_version=no 11096 case $host_cpu in 11097 ia64*) 11098 shrext_cmds='.so' 11099 hardcode_into_libs=yes 11100 dynamic_linker="$host_os dld.so" 11101 shlibpath_var=LD_LIBRARY_PATH 11102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11104 soname_spec='$libname$release$shared_ext$major' 11105 if test 32 = "$HPUX_IA64_MODE"; then 11106 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11107 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11108 else 11109 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11110 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11111 fi 11112 ;; 11113 hppa*64*) 11114 shrext_cmds='.sl' 11115 hardcode_into_libs=yes 11116 dynamic_linker="$host_os dld.sl" 11117 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11120 soname_spec='$libname$release$shared_ext$major' 11121 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11123 ;; 11124 *) 11125 shrext_cmds='.sl' 11126 dynamic_linker="$host_os dld.sl" 11127 shlibpath_var=SHLIB_PATH 11128 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11130 soname_spec='$libname$release$shared_ext$major' 11131 ;; 11132 esac 11133 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11134 postinstall_cmds='chmod 555 $lib' 11135 # or fails outright, so override atomically: 11136 install_override_mode=555 11137 ;; 11138 11139interix[3-9]*) 11140 version_type=linux # correct to gnu/linux during the next big refactor 11141 need_lib_prefix=no 11142 need_version=no 11143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11144 soname_spec='$libname$release$shared_ext$major' 11145 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11146 shlibpath_var=LD_LIBRARY_PATH 11147 shlibpath_overrides_runpath=no 11148 hardcode_into_libs=yes 11149 ;; 11150 11151irix5* | irix6* | nonstopux*) 11152 case $host_os in 11153 nonstopux*) version_type=nonstopux ;; 11154 *) 11155 if test yes = "$lt_cv_prog_gnu_ld"; then 11156 version_type=linux # correct to gnu/linux during the next big refactor 11157 else 11158 version_type=irix 11159 fi ;; 11160 esac 11161 need_lib_prefix=no 11162 need_version=no 11163 soname_spec='$libname$release$shared_ext$major' 11164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11165 case $host_os in 11166 irix5* | nonstopux*) 11167 libsuff= shlibsuff= 11168 ;; 11169 *) 11170 case $LD in # libtool.m4 will add one of these switches to LD 11171 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11172 libsuff= shlibsuff= libmagic=32-bit;; 11173 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11174 libsuff=32 shlibsuff=N32 libmagic=N32;; 11175 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11176 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11177 *) libsuff= shlibsuff= libmagic=never-match;; 11178 esac 11179 ;; 11180 esac 11181 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11182 shlibpath_overrides_runpath=no 11183 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11184 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11185 hardcode_into_libs=yes 11186 ;; 11187 11188# No shared lib support for Linux oldld, aout, or coff. 11189linux*oldld* | linux*aout* | linux*coff*) 11190 dynamic_linker=no 11191 ;; 11192 11193linux*android*) 11194 version_type=none # Android doesn't support versioned libraries. 11195 need_lib_prefix=no 11196 need_version=no 11197 library_names_spec='$libname$release$shared_ext' 11198 soname_spec='$libname$release$shared_ext' 11199 finish_cmds= 11200 shlibpath_var=LD_LIBRARY_PATH 11201 shlibpath_overrides_runpath=yes 11202 11203 # This implies no fast_install, which is unacceptable. 11204 # Some rework will be needed to allow for fast_install 11205 # before this can be enabled. 11206 hardcode_into_libs=yes 11207 11208 dynamic_linker='Android linker' 11209 # Don't embed -rpath directories since the linker doesn't support them. 11210 hardcode_libdir_flag_spec='-L$libdir' 11211 ;; 11212 11213# This must be glibc/ELF. 11214linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11215 version_type=linux # correct to gnu/linux during the next big refactor 11216 need_lib_prefix=no 11217 need_version=no 11218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11219 soname_spec='$libname$release$shared_ext$major' 11220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11221 shlibpath_var=LD_LIBRARY_PATH 11222 shlibpath_overrides_runpath=no 11223 11224 # Some binutils ld are patched to set DT_RUNPATH 11225 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11226 $as_echo_n "(cached) " >&6 11227else 11228 lt_cv_shlibpath_overrides_runpath=no 11229 save_LDFLAGS=$LDFLAGS 11230 save_libdir=$libdir 11231 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11232 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11234/* end confdefs.h. */ 11235 11236int 11237main () 11238{ 11239 11240 ; 11241 return 0; 11242} 11243_ACEOF 11244if ac_fn_c_try_link "$LINENO"; then : 11245 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11246 lt_cv_shlibpath_overrides_runpath=yes 11247fi 11248fi 11249rm -f core conftest.err conftest.$ac_objext \ 11250 conftest$ac_exeext conftest.$ac_ext 11251 LDFLAGS=$save_LDFLAGS 11252 libdir=$save_libdir 11253 11254fi 11255 11256 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11257 11258 # This implies no fast_install, which is unacceptable. 11259 # Some rework will be needed to allow for fast_install 11260 # before this can be enabled. 11261 hardcode_into_libs=yes 11262 11263 # Ideally, we could use ldconfig to report *all* directores which are 11264 # searched for libraries, however this is still not possible. Aside from not 11265 # being certain /sbin/ldconfig is available, command 11266 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11267 # even though it is searched at run-time. Try to do the best guess by 11268 # appending ld.so.conf contents (and includes) to the search path. 11269 if test -f /etc/ld.so.conf; then 11270 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' ' '` 11271 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11272 fi 11273 11274 # We used to test for /lib/ld.so.1 and disable shared libraries on 11275 # powerpc, because MkLinux only supported shared libraries with the 11276 # GNU dynamic linker. Since this was broken with cross compilers, 11277 # most powerpc-linux boxes support dynamic linking these days and 11278 # people can always --disable-shared, the test was removed, and we 11279 # assume the GNU/Linux dynamic linker is in use. 11280 dynamic_linker='GNU/Linux ld.so' 11281 ;; 11282 11283netbsdelf*-gnu) 11284 version_type=linux 11285 need_lib_prefix=no 11286 need_version=no 11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11288 soname_spec='${libname}${release}${shared_ext}$major' 11289 shlibpath_var=LD_LIBRARY_PATH 11290 shlibpath_overrides_runpath=no 11291 hardcode_into_libs=yes 11292 dynamic_linker='NetBSD ld.elf_so' 11293 ;; 11294 11295netbsd*) 11296 version_type=sunos 11297 need_lib_prefix=no 11298 need_version=no 11299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11300 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11302 dynamic_linker='NetBSD (a.out) ld.so' 11303 else 11304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11305 soname_spec='$libname$release$shared_ext$major' 11306 dynamic_linker='NetBSD ld.elf_so' 11307 fi 11308 shlibpath_var=LD_LIBRARY_PATH 11309 shlibpath_overrides_runpath=yes 11310 hardcode_into_libs=yes 11311 ;; 11312 11313newsos6) 11314 version_type=linux # correct to gnu/linux during the next big refactor 11315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11316 shlibpath_var=LD_LIBRARY_PATH 11317 shlibpath_overrides_runpath=yes 11318 ;; 11319 11320*nto* | *qnx*) 11321 version_type=qnx 11322 need_lib_prefix=no 11323 need_version=no 11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11325 soname_spec='$libname$release$shared_ext$major' 11326 shlibpath_var=LD_LIBRARY_PATH 11327 shlibpath_overrides_runpath=no 11328 hardcode_into_libs=yes 11329 dynamic_linker='ldqnx.so' 11330 ;; 11331 11332openbsd* | bitrig*) 11333 version_type=sunos 11334 sys_lib_dlsearch_path_spec=/usr/lib 11335 need_lib_prefix=no 11336 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11337 need_version=no 11338 else 11339 need_version=yes 11340 fi 11341 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11343 shlibpath_var=LD_LIBRARY_PATH 11344 shlibpath_overrides_runpath=yes 11345 ;; 11346 11347os2*) 11348 libname_spec='$name' 11349 version_type=windows 11350 shrext_cmds=.dll 11351 need_version=no 11352 need_lib_prefix=no 11353 # OS/2 can only load a DLL with a base name of 8 characters or less. 11354 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11355 v=$($ECHO $release$versuffix | tr -d .-); 11356 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11357 $ECHO $n$v`$shared_ext' 11358 library_names_spec='${libname}_dll.$libext' 11359 dynamic_linker='OS/2 ld.exe' 11360 shlibpath_var=BEGINLIBPATH 11361 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11363 postinstall_cmds='base_file=`basename \$file`~ 11364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11365 dldir=$destdir/`dirname \$dlpath`~ 11366 test -d \$dldir || mkdir -p \$dldir~ 11367 $install_prog $dir/$dlname \$dldir/$dlname~ 11368 chmod a+x \$dldir/$dlname~ 11369 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11370 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11371 fi' 11372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11373 dlpath=$dir/\$dldll~ 11374 $RM \$dlpath' 11375 ;; 11376 11377osf3* | osf4* | osf5*) 11378 version_type=osf 11379 need_lib_prefix=no 11380 need_version=no 11381 soname_spec='$libname$release$shared_ext$major' 11382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11383 shlibpath_var=LD_LIBRARY_PATH 11384 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11386 ;; 11387 11388rdos*) 11389 dynamic_linker=no 11390 ;; 11391 11392solaris*) 11393 version_type=linux # correct to gnu/linux during the next big refactor 11394 need_lib_prefix=no 11395 need_version=no 11396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11397 soname_spec='$libname$release$shared_ext$major' 11398 shlibpath_var=LD_LIBRARY_PATH 11399 shlibpath_overrides_runpath=yes 11400 hardcode_into_libs=yes 11401 # ldd complains unless libraries are executable 11402 postinstall_cmds='chmod +x $lib' 11403 ;; 11404 11405sunos4*) 11406 version_type=sunos 11407 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11408 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11409 shlibpath_var=LD_LIBRARY_PATH 11410 shlibpath_overrides_runpath=yes 11411 if test yes = "$with_gnu_ld"; then 11412 need_lib_prefix=no 11413 fi 11414 need_version=yes 11415 ;; 11416 11417sysv4 | sysv4.3*) 11418 version_type=linux # correct to gnu/linux during the next big refactor 11419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11420 soname_spec='$libname$release$shared_ext$major' 11421 shlibpath_var=LD_LIBRARY_PATH 11422 case $host_vendor in 11423 sni) 11424 shlibpath_overrides_runpath=no 11425 need_lib_prefix=no 11426 runpath_var=LD_RUN_PATH 11427 ;; 11428 siemens) 11429 need_lib_prefix=no 11430 ;; 11431 motorola) 11432 need_lib_prefix=no 11433 need_version=no 11434 shlibpath_overrides_runpath=no 11435 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11436 ;; 11437 esac 11438 ;; 11439 11440sysv4*MP*) 11441 if test -d /usr/nec; then 11442 version_type=linux # correct to gnu/linux during the next big refactor 11443 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11444 soname_spec='$libname$shared_ext.$major' 11445 shlibpath_var=LD_LIBRARY_PATH 11446 fi 11447 ;; 11448 11449sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11450 version_type=sco 11451 need_lib_prefix=no 11452 need_version=no 11453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11454 soname_spec='$libname$release$shared_ext$major' 11455 shlibpath_var=LD_LIBRARY_PATH 11456 shlibpath_overrides_runpath=yes 11457 hardcode_into_libs=yes 11458 if test yes = "$with_gnu_ld"; then 11459 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11460 else 11461 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11462 case $host_os in 11463 sco3.2v5*) 11464 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11465 ;; 11466 esac 11467 fi 11468 sys_lib_dlsearch_path_spec='/usr/lib' 11469 ;; 11470 11471tpf*) 11472 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11473 version_type=linux # correct to gnu/linux during the next big refactor 11474 need_lib_prefix=no 11475 need_version=no 11476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11477 shlibpath_var=LD_LIBRARY_PATH 11478 shlibpath_overrides_runpath=no 11479 hardcode_into_libs=yes 11480 ;; 11481 11482uts4*) 11483 version_type=linux # correct to gnu/linux during the next big refactor 11484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11485 soname_spec='$libname$release$shared_ext$major' 11486 shlibpath_var=LD_LIBRARY_PATH 11487 ;; 11488 11489*) 11490 dynamic_linker=no 11491 ;; 11492esac 11493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11494$as_echo "$dynamic_linker" >&6; } 11495test no = "$dynamic_linker" && can_build_shared=no 11496 11497variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11498if test yes = "$GCC"; then 11499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11500fi 11501 11502if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11503 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11504fi 11505 11506if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11507 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11508fi 11509 11510# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11511configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11512 11513# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11514func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11515 11516# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11517configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11616$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11617hardcode_action= 11618if test -n "$hardcode_libdir_flag_spec" || 11619 test -n "$runpath_var" || 11620 test yes = "$hardcode_automatic"; then 11621 11622 # We can hardcode non-existent directories. 11623 if test no != "$hardcode_direct" && 11624 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11625 # have to relink, otherwise we might link with an installed library 11626 # when we should be linking with a yet-to-be-installed one 11627 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11628 test no != "$hardcode_minus_L"; then 11629 # Linking always hardcodes the temporary library directory. 11630 hardcode_action=relink 11631 else 11632 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11633 hardcode_action=immediate 11634 fi 11635else 11636 # We cannot hardcode anything, or else we can only hardcode existing 11637 # directories. 11638 hardcode_action=unsupported 11639fi 11640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11641$as_echo "$hardcode_action" >&6; } 11642 11643if test relink = "$hardcode_action" || 11644 test yes = "$inherit_rpath"; then 11645 # Fast installation is not supported 11646 enable_fast_install=no 11647elif test yes = "$shlibpath_overrides_runpath" || 11648 test no = "$enable_shared"; then 11649 # Fast installation is not necessary 11650 enable_fast_install=needless 11651fi 11652 11653 11654 11655 11656 11657 11658 if test yes != "$enable_dlopen"; then 11659 enable_dlopen=unknown 11660 enable_dlopen_self=unknown 11661 enable_dlopen_self_static=unknown 11662else 11663 lt_cv_dlopen=no 11664 lt_cv_dlopen_libs= 11665 11666 case $host_os in 11667 beos*) 11668 lt_cv_dlopen=load_add_on 11669 lt_cv_dlopen_libs= 11670 lt_cv_dlopen_self=yes 11671 ;; 11672 11673 mingw* | pw32* | cegcc*) 11674 lt_cv_dlopen=LoadLibrary 11675 lt_cv_dlopen_libs= 11676 ;; 11677 11678 cygwin*) 11679 lt_cv_dlopen=dlopen 11680 lt_cv_dlopen_libs= 11681 ;; 11682 11683 darwin*) 11684 # if libdl is installed we need to link against it 11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11686$as_echo_n "checking for dlopen in -ldl... " >&6; } 11687if ${ac_cv_lib_dl_dlopen+:} false; then : 11688 $as_echo_n "(cached) " >&6 11689else 11690 ac_check_lib_save_LIBS=$LIBS 11691LIBS="-ldl $LIBS" 11692cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11693/* end confdefs.h. */ 11694 11695/* Override any GCC internal prototype to avoid an error. 11696 Use char because int might match the return type of a GCC 11697 builtin and then its argument prototype would still apply. */ 11698#ifdef __cplusplus 11699extern "C" 11700#endif 11701char dlopen (); 11702int 11703main () 11704{ 11705return dlopen (); 11706 ; 11707 return 0; 11708} 11709_ACEOF 11710if ac_fn_c_try_link "$LINENO"; then : 11711 ac_cv_lib_dl_dlopen=yes 11712else 11713 ac_cv_lib_dl_dlopen=no 11714fi 11715rm -f core conftest.err conftest.$ac_objext \ 11716 conftest$ac_exeext conftest.$ac_ext 11717LIBS=$ac_check_lib_save_LIBS 11718fi 11719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11720$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11721if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11722 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11723else 11724 11725 lt_cv_dlopen=dyld 11726 lt_cv_dlopen_libs= 11727 lt_cv_dlopen_self=yes 11728 11729fi 11730 11731 ;; 11732 11733 tpf*) 11734 # Don't try to run any link tests for TPF. We know it's impossible 11735 # because TPF is a cross-compiler, and we know how we open DSOs. 11736 lt_cv_dlopen=dlopen 11737 lt_cv_dlopen_libs= 11738 lt_cv_dlopen_self=no 11739 ;; 11740 11741 *) 11742 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11743if test "x$ac_cv_func_shl_load" = xyes; then : 11744 lt_cv_dlopen=shl_load 11745else 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11747$as_echo_n "checking for shl_load in -ldld... " >&6; } 11748if ${ac_cv_lib_dld_shl_load+:} false; then : 11749 $as_echo_n "(cached) " >&6 11750else 11751 ac_check_lib_save_LIBS=$LIBS 11752LIBS="-ldld $LIBS" 11753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11754/* end confdefs.h. */ 11755 11756/* Override any GCC internal prototype to avoid an error. 11757 Use char because int might match the return type of a GCC 11758 builtin and then its argument prototype would still apply. */ 11759#ifdef __cplusplus 11760extern "C" 11761#endif 11762char shl_load (); 11763int 11764main () 11765{ 11766return shl_load (); 11767 ; 11768 return 0; 11769} 11770_ACEOF 11771if ac_fn_c_try_link "$LINENO"; then : 11772 ac_cv_lib_dld_shl_load=yes 11773else 11774 ac_cv_lib_dld_shl_load=no 11775fi 11776rm -f core conftest.err conftest.$ac_objext \ 11777 conftest$ac_exeext conftest.$ac_ext 11778LIBS=$ac_check_lib_save_LIBS 11779fi 11780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11781$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11782if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11783 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11784else 11785 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11786if test "x$ac_cv_func_dlopen" = xyes; then : 11787 lt_cv_dlopen=dlopen 11788else 11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11790$as_echo_n "checking for dlopen in -ldl... " >&6; } 11791if ${ac_cv_lib_dl_dlopen+:} false; then : 11792 $as_echo_n "(cached) " >&6 11793else 11794 ac_check_lib_save_LIBS=$LIBS 11795LIBS="-ldl $LIBS" 11796cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11797/* end confdefs.h. */ 11798 11799/* Override any GCC internal prototype to avoid an error. 11800 Use char because int might match the return type of a GCC 11801 builtin and then its argument prototype would still apply. */ 11802#ifdef __cplusplus 11803extern "C" 11804#endif 11805char dlopen (); 11806int 11807main () 11808{ 11809return dlopen (); 11810 ; 11811 return 0; 11812} 11813_ACEOF 11814if ac_fn_c_try_link "$LINENO"; then : 11815 ac_cv_lib_dl_dlopen=yes 11816else 11817 ac_cv_lib_dl_dlopen=no 11818fi 11819rm -f core conftest.err conftest.$ac_objext \ 11820 conftest$ac_exeext conftest.$ac_ext 11821LIBS=$ac_check_lib_save_LIBS 11822fi 11823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11824$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11825if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11826 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11827else 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11829$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11830if ${ac_cv_lib_svld_dlopen+:} false; then : 11831 $as_echo_n "(cached) " >&6 11832else 11833 ac_check_lib_save_LIBS=$LIBS 11834LIBS="-lsvld $LIBS" 11835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11836/* end confdefs.h. */ 11837 11838/* Override any GCC internal prototype to avoid an error. 11839 Use char because int might match the return type of a GCC 11840 builtin and then its argument prototype would still apply. */ 11841#ifdef __cplusplus 11842extern "C" 11843#endif 11844char dlopen (); 11845int 11846main () 11847{ 11848return dlopen (); 11849 ; 11850 return 0; 11851} 11852_ACEOF 11853if ac_fn_c_try_link "$LINENO"; then : 11854 ac_cv_lib_svld_dlopen=yes 11855else 11856 ac_cv_lib_svld_dlopen=no 11857fi 11858rm -f core conftest.err conftest.$ac_objext \ 11859 conftest$ac_exeext conftest.$ac_ext 11860LIBS=$ac_check_lib_save_LIBS 11861fi 11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11863$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11864if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11865 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11866else 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11868$as_echo_n "checking for dld_link in -ldld... " >&6; } 11869if ${ac_cv_lib_dld_dld_link+:} false; then : 11870 $as_echo_n "(cached) " >&6 11871else 11872 ac_check_lib_save_LIBS=$LIBS 11873LIBS="-ldld $LIBS" 11874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11875/* end confdefs.h. */ 11876 11877/* Override any GCC internal prototype to avoid an error. 11878 Use char because int might match the return type of a GCC 11879 builtin and then its argument prototype would still apply. */ 11880#ifdef __cplusplus 11881extern "C" 11882#endif 11883char dld_link (); 11884int 11885main () 11886{ 11887return dld_link (); 11888 ; 11889 return 0; 11890} 11891_ACEOF 11892if ac_fn_c_try_link "$LINENO"; then : 11893 ac_cv_lib_dld_dld_link=yes 11894else 11895 ac_cv_lib_dld_dld_link=no 11896fi 11897rm -f core conftest.err conftest.$ac_objext \ 11898 conftest$ac_exeext conftest.$ac_ext 11899LIBS=$ac_check_lib_save_LIBS 11900fi 11901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11902$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11903if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11904 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11905fi 11906 11907 11908fi 11909 11910 11911fi 11912 11913 11914fi 11915 11916 11917fi 11918 11919 11920fi 11921 11922 ;; 11923 esac 11924 11925 if test no = "$lt_cv_dlopen"; then 11926 enable_dlopen=no 11927 else 11928 enable_dlopen=yes 11929 fi 11930 11931 case $lt_cv_dlopen in 11932 dlopen) 11933 save_CPPFLAGS=$CPPFLAGS 11934 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11935 11936 save_LDFLAGS=$LDFLAGS 11937 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11938 11939 save_LIBS=$LIBS 11940 LIBS="$lt_cv_dlopen_libs $LIBS" 11941 11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11943$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11944if ${lt_cv_dlopen_self+:} false; then : 11945 $as_echo_n "(cached) " >&6 11946else 11947 if test yes = "$cross_compiling"; then : 11948 lt_cv_dlopen_self=cross 11949else 11950 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11951 lt_status=$lt_dlunknown 11952 cat > conftest.$ac_ext <<_LT_EOF 11953#line $LINENO "configure" 11954#include "confdefs.h" 11955 11956#if HAVE_DLFCN_H 11957#include <dlfcn.h> 11958#endif 11959 11960#include <stdio.h> 11961 11962#ifdef RTLD_GLOBAL 11963# define LT_DLGLOBAL RTLD_GLOBAL 11964#else 11965# ifdef DL_GLOBAL 11966# define LT_DLGLOBAL DL_GLOBAL 11967# else 11968# define LT_DLGLOBAL 0 11969# endif 11970#endif 11971 11972/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11973 find out it does not work in some platform. */ 11974#ifndef LT_DLLAZY_OR_NOW 11975# ifdef RTLD_LAZY 11976# define LT_DLLAZY_OR_NOW RTLD_LAZY 11977# else 11978# ifdef DL_LAZY 11979# define LT_DLLAZY_OR_NOW DL_LAZY 11980# else 11981# ifdef RTLD_NOW 11982# define LT_DLLAZY_OR_NOW RTLD_NOW 11983# else 11984# ifdef DL_NOW 11985# define LT_DLLAZY_OR_NOW DL_NOW 11986# else 11987# define LT_DLLAZY_OR_NOW 0 11988# endif 11989# endif 11990# endif 11991# endif 11992#endif 11993 11994/* When -fvisibility=hidden is used, assume the code has been annotated 11995 correspondingly for the symbols needed. */ 11996#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11997int fnord () __attribute__((visibility("default"))); 11998#endif 11999 12000int fnord () { return 42; } 12001int main () 12002{ 12003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12004 int status = $lt_dlunknown; 12005 12006 if (self) 12007 { 12008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12009 else 12010 { 12011 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12012 else puts (dlerror ()); 12013 } 12014 /* dlclose (self); */ 12015 } 12016 else 12017 puts (dlerror ()); 12018 12019 return status; 12020} 12021_LT_EOF 12022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12023 (eval $ac_link) 2>&5 12024 ac_status=$? 12025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12026 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12027 (./conftest; exit; ) >&5 2>/dev/null 12028 lt_status=$? 12029 case x$lt_status in 12030 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12031 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12032 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12033 esac 12034 else : 12035 # compilation failed 12036 lt_cv_dlopen_self=no 12037 fi 12038fi 12039rm -fr conftest* 12040 12041 12042fi 12043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12044$as_echo "$lt_cv_dlopen_self" >&6; } 12045 12046 if test yes = "$lt_cv_dlopen_self"; then 12047 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12049$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12050if ${lt_cv_dlopen_self_static+:} false; then : 12051 $as_echo_n "(cached) " >&6 12052else 12053 if test yes = "$cross_compiling"; then : 12054 lt_cv_dlopen_self_static=cross 12055else 12056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12057 lt_status=$lt_dlunknown 12058 cat > conftest.$ac_ext <<_LT_EOF 12059#line $LINENO "configure" 12060#include "confdefs.h" 12061 12062#if HAVE_DLFCN_H 12063#include <dlfcn.h> 12064#endif 12065 12066#include <stdio.h> 12067 12068#ifdef RTLD_GLOBAL 12069# define LT_DLGLOBAL RTLD_GLOBAL 12070#else 12071# ifdef DL_GLOBAL 12072# define LT_DLGLOBAL DL_GLOBAL 12073# else 12074# define LT_DLGLOBAL 0 12075# endif 12076#endif 12077 12078/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12079 find out it does not work in some platform. */ 12080#ifndef LT_DLLAZY_OR_NOW 12081# ifdef RTLD_LAZY 12082# define LT_DLLAZY_OR_NOW RTLD_LAZY 12083# else 12084# ifdef DL_LAZY 12085# define LT_DLLAZY_OR_NOW DL_LAZY 12086# else 12087# ifdef RTLD_NOW 12088# define LT_DLLAZY_OR_NOW RTLD_NOW 12089# else 12090# ifdef DL_NOW 12091# define LT_DLLAZY_OR_NOW DL_NOW 12092# else 12093# define LT_DLLAZY_OR_NOW 0 12094# endif 12095# endif 12096# endif 12097# endif 12098#endif 12099 12100/* When -fvisibility=hidden is used, assume the code has been annotated 12101 correspondingly for the symbols needed. */ 12102#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12103int fnord () __attribute__((visibility("default"))); 12104#endif 12105 12106int fnord () { return 42; } 12107int main () 12108{ 12109 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12110 int status = $lt_dlunknown; 12111 12112 if (self) 12113 { 12114 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12115 else 12116 { 12117 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12118 else puts (dlerror ()); 12119 } 12120 /* dlclose (self); */ 12121 } 12122 else 12123 puts (dlerror ()); 12124 12125 return status; 12126} 12127_LT_EOF 12128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12129 (eval $ac_link) 2>&5 12130 ac_status=$? 12131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12132 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12133 (./conftest; exit; ) >&5 2>/dev/null 12134 lt_status=$? 12135 case x$lt_status in 12136 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12137 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12138 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12139 esac 12140 else : 12141 # compilation failed 12142 lt_cv_dlopen_self_static=no 12143 fi 12144fi 12145rm -fr conftest* 12146 12147 12148fi 12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12150$as_echo "$lt_cv_dlopen_self_static" >&6; } 12151 fi 12152 12153 CPPFLAGS=$save_CPPFLAGS 12154 LDFLAGS=$save_LDFLAGS 12155 LIBS=$save_LIBS 12156 ;; 12157 esac 12158 12159 case $lt_cv_dlopen_self in 12160 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12161 *) enable_dlopen_self=unknown ;; 12162 esac 12163 12164 case $lt_cv_dlopen_self_static in 12165 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12166 *) enable_dlopen_self_static=unknown ;; 12167 esac 12168fi 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186striplib= 12187old_striplib= 12188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12189$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12190if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12191 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12192 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12194$as_echo "yes" >&6; } 12195else 12196# FIXME - insert some real tests, host_os isn't really good enough 12197 case $host_os in 12198 darwin*) 12199 if test -n "$STRIP"; then 12200 striplib="$STRIP -x" 12201 old_striplib="$STRIP -S" 12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12203$as_echo "yes" >&6; } 12204 else 12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12206$as_echo "no" >&6; } 12207 fi 12208 ;; 12209 *) 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12211$as_echo "no" >&6; } 12212 ;; 12213 esac 12214fi 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 # Report what library types will actually be built 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12229$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12231$as_echo "$can_build_shared" >&6; } 12232 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12234$as_echo_n "checking whether to build shared libraries... " >&6; } 12235 test no = "$can_build_shared" && enable_shared=no 12236 12237 # On AIX, shared libraries and static libraries use the same namespace, and 12238 # are all built from PIC. 12239 case $host_os in 12240 aix3*) 12241 test yes = "$enable_shared" && enable_static=no 12242 if test -n "$RANLIB"; then 12243 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12244 postinstall_cmds='$RANLIB $lib' 12245 fi 12246 ;; 12247 12248 aix[4-9]*) 12249 if test ia64 != "$host_cpu"; then 12250 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12251 yes,aix,yes) ;; # shared object as lib.so file only 12252 yes,svr4,*) ;; # shared object as lib.so archive member only 12253 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12254 esac 12255 fi 12256 ;; 12257 esac 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12259$as_echo "$enable_shared" >&6; } 12260 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12262$as_echo_n "checking whether to build static libraries... " >&6; } 12263 # Make sure either enable_shared or enable_static is yes. 12264 test yes = "$enable_shared" || enable_static=yes 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12266$as_echo "$enable_static" >&6; } 12267 12268 12269 12270 12271fi 12272ac_ext=c 12273ac_cpp='$CPP $CPPFLAGS' 12274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12276ac_compiler_gnu=$ac_cv_c_compiler_gnu 12277 12278CC=$lt_save_CC 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 ac_config_commands="$ac_config_commands libtool" 12295 12296 12297 12298 12299# Only expand once: 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12310 if test -n "$ac_tool_prefix"; then 12311 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12312set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12314$as_echo_n "checking for $ac_word... " >&6; } 12315if ${ac_cv_path_PKG_CONFIG+:} false; then : 12316 $as_echo_n "(cached) " >&6 12317else 12318 case $PKG_CONFIG in 12319 [\\/]* | ?:[\\/]*) 12320 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12321 ;; 12322 *) 12323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12324for as_dir in $PATH 12325do 12326 IFS=$as_save_IFS 12327 test -z "$as_dir" && as_dir=. 12328 for ac_exec_ext in '' $ac_executable_extensions; do 12329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12330 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12332 break 2 12333 fi 12334done 12335 done 12336IFS=$as_save_IFS 12337 12338 ;; 12339esac 12340fi 12341PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12342if test -n "$PKG_CONFIG"; then 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12344$as_echo "$PKG_CONFIG" >&6; } 12345else 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12347$as_echo "no" >&6; } 12348fi 12349 12350 12351fi 12352if test -z "$ac_cv_path_PKG_CONFIG"; then 12353 ac_pt_PKG_CONFIG=$PKG_CONFIG 12354 # Extract the first word of "pkg-config", so it can be a program name with args. 12355set dummy pkg-config; ac_word=$2 12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12357$as_echo_n "checking for $ac_word... " >&6; } 12358if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12359 $as_echo_n "(cached) " >&6 12360else 12361 case $ac_pt_PKG_CONFIG in 12362 [\\/]* | ?:[\\/]*) 12363 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12364 ;; 12365 *) 12366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12367for as_dir in $PATH 12368do 12369 IFS=$as_save_IFS 12370 test -z "$as_dir" && as_dir=. 12371 for ac_exec_ext in '' $ac_executable_extensions; do 12372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12373 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12375 break 2 12376 fi 12377done 12378 done 12379IFS=$as_save_IFS 12380 12381 ;; 12382esac 12383fi 12384ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12385if test -n "$ac_pt_PKG_CONFIG"; then 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12387$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12388else 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12390$as_echo "no" >&6; } 12391fi 12392 12393 if test "x$ac_pt_PKG_CONFIG" = x; then 12394 PKG_CONFIG="" 12395 else 12396 case $cross_compiling:$ac_tool_warned in 12397yes:) 12398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12400ac_tool_warned=yes ;; 12401esac 12402 PKG_CONFIG=$ac_pt_PKG_CONFIG 12403 fi 12404else 12405 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12406fi 12407 12408fi 12409if test -n "$PKG_CONFIG"; then 12410 _pkg_min_version=0.9.0 12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12412$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12413 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12415$as_echo "yes" >&6; } 12416 else 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12418$as_echo "no" >&6; } 12419 PKG_CONFIG="" 12420 fi 12421fi 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12423$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12424if ${ac_cv_prog_cc_c99+:} false; then : 12425 $as_echo_n "(cached) " >&6 12426else 12427 ac_cv_prog_cc_c99=no 12428ac_save_CC=$CC 12429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12430/* end confdefs.h. */ 12431#include <stdarg.h> 12432#include <stdbool.h> 12433#include <stdlib.h> 12434#include <wchar.h> 12435#include <stdio.h> 12436 12437// Check varargs macros. These examples are taken from C99 6.10.3.5. 12438#define debug(...) fprintf (stderr, __VA_ARGS__) 12439#define showlist(...) puts (#__VA_ARGS__) 12440#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12441static void 12442test_varargs_macros (void) 12443{ 12444 int x = 1234; 12445 int y = 5678; 12446 debug ("Flag"); 12447 debug ("X = %d\n", x); 12448 showlist (The first, second, and third items.); 12449 report (x>y, "x is %d but y is %d", x, y); 12450} 12451 12452// Check long long types. 12453#define BIG64 18446744073709551615ull 12454#define BIG32 4294967295ul 12455#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12456#if !BIG_OK 12457 your preprocessor is broken; 12458#endif 12459#if BIG_OK 12460#else 12461 your preprocessor is broken; 12462#endif 12463static long long int bignum = -9223372036854775807LL; 12464static unsigned long long int ubignum = BIG64; 12465 12466struct incomplete_array 12467{ 12468 int datasize; 12469 double data[]; 12470}; 12471 12472struct named_init { 12473 int number; 12474 const wchar_t *name; 12475 double average; 12476}; 12477 12478typedef const char *ccp; 12479 12480static inline int 12481test_restrict (ccp restrict text) 12482{ 12483 // See if C++-style comments work. 12484 // Iterate through items via the restricted pointer. 12485 // Also check for declarations in for loops. 12486 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12487 continue; 12488 return 0; 12489} 12490 12491// Check varargs and va_copy. 12492static void 12493test_varargs (const char *format, ...) 12494{ 12495 va_list args; 12496 va_start (args, format); 12497 va_list args_copy; 12498 va_copy (args_copy, args); 12499 12500 const char *str; 12501 int number; 12502 float fnumber; 12503 12504 while (*format) 12505 { 12506 switch (*format++) 12507 { 12508 case 's': // string 12509 str = va_arg (args_copy, const char *); 12510 break; 12511 case 'd': // int 12512 number = va_arg (args_copy, int); 12513 break; 12514 case 'f': // float 12515 fnumber = va_arg (args_copy, double); 12516 break; 12517 default: 12518 break; 12519 } 12520 } 12521 va_end (args_copy); 12522 va_end (args); 12523} 12524 12525int 12526main () 12527{ 12528 12529 // Check bool. 12530 _Bool success = false; 12531 12532 // Check restrict. 12533 if (test_restrict ("String literal") == 0) 12534 success = true; 12535 char *restrict newvar = "Another string"; 12536 12537 // Check varargs. 12538 test_varargs ("s, d' f .", "string", 65, 34.234); 12539 test_varargs_macros (); 12540 12541 // Check flexible array members. 12542 struct incomplete_array *ia = 12543 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12544 ia->datasize = 10; 12545 for (int i = 0; i < ia->datasize; ++i) 12546 ia->data[i] = i * 1.234; 12547 12548 // Check named initializers. 12549 struct named_init ni = { 12550 .number = 34, 12551 .name = L"Test wide string", 12552 .average = 543.34343, 12553 }; 12554 12555 ni.number = 58; 12556 12557 int dynamic_array[ni.number]; 12558 dynamic_array[ni.number - 1] = 543; 12559 12560 // work around unused variable warnings 12561 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12562 || dynamic_array[ni.number - 1] != 543); 12563 12564 ; 12565 return 0; 12566} 12567_ACEOF 12568for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12569do 12570 CC="$ac_save_CC $ac_arg" 12571 if ac_fn_c_try_compile "$LINENO"; then : 12572 ac_cv_prog_cc_c99=$ac_arg 12573fi 12574rm -f core conftest.err conftest.$ac_objext 12575 test "x$ac_cv_prog_cc_c99" != "xno" && break 12576done 12577rm -f conftest.$ac_ext 12578CC=$ac_save_CC 12579 12580fi 12581# AC_CACHE_VAL 12582case "x$ac_cv_prog_cc_c99" in 12583 x) 12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12585$as_echo "none needed" >&6; } ;; 12586 xno) 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12588$as_echo "unsupported" >&6; } ;; 12589 *) 12590 CC="$CC $ac_cv_prog_cc_c99" 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12592$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12593esac 12594if test "x$ac_cv_prog_cc_c99" != xno; then : 12595 12596fi 12597 12598 12599 12600 12601 12602 12603ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12604if test "x$ac_cv_have_decl___clang__" = xyes; then : 12605 CLANGCC="yes" 12606else 12607 CLANGCC="no" 12608fi 12609 12610ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12611if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12612 INTELCC="yes" 12613else 12614 INTELCC="no" 12615fi 12616 12617ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12618if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12619 SUNCC="yes" 12620else 12621 SUNCC="no" 12622fi 12623 12624 12625 12626 12627 12628 12629 12630# Define header files and pkgconfig paths 12631xcbincludedir='${includedir}/xcb' 12632 12633pkgconfigdir='${prefix}/libdata/pkgconfig' 12634 12635 12636# Check xcb version 12637 12638pkg_failed=no 12639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5 12640$as_echo_n "checking for XCB... " >&6; } 12641 12642if test -n "$XCB_CFLAGS"; then 12643 pkg_cv_XCB_CFLAGS="$XCB_CFLAGS" 12644 elif test -n "$PKG_CONFIG"; then 12645 if test -n "$PKG_CONFIG" && \ 12646 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5 12647 ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5 12648 ac_status=$? 12649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12650 test $ac_status = 0; }; then 12651 pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.4" 2>/dev/null` 12652 test "x$?" != "x0" && pkg_failed=yes 12653else 12654 pkg_failed=yes 12655fi 12656 else 12657 pkg_failed=untried 12658fi 12659if test -n "$XCB_LIBS"; then 12660 pkg_cv_XCB_LIBS="$XCB_LIBS" 12661 elif test -n "$PKG_CONFIG"; then 12662 if test -n "$PKG_CONFIG" && \ 12663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5 12664 ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5 12665 ac_status=$? 12666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12667 test $ac_status = 0; }; then 12668 pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb >= 1.4" 2>/dev/null` 12669 test "x$?" != "x0" && pkg_failed=yes 12670else 12671 pkg_failed=yes 12672fi 12673 else 12674 pkg_failed=untried 12675fi 12676 12677 12678 12679if test $pkg_failed = yes; then 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12681$as_echo "no" >&6; } 12682 12683if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12684 _pkg_short_errors_supported=yes 12685else 12686 _pkg_short_errors_supported=no 12687fi 12688 if test $_pkg_short_errors_supported = yes; then 12689 XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.4" 2>&1` 12690 else 12691 XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.4" 2>&1` 12692 fi 12693 # Put the nasty error message in config.log where it belongs 12694 echo "$XCB_PKG_ERRORS" >&5 12695 12696 as_fn_error $? "Package requirements (xcb >= 1.4) were not met: 12697 12698$XCB_PKG_ERRORS 12699 12700Consider adjusting the PKG_CONFIG_PATH environment variable if you 12701installed software in a non-standard prefix. 12702 12703Alternatively, you may set the environment variables XCB_CFLAGS 12704and XCB_LIBS to avoid the need to call pkg-config. 12705See the pkg-config man page for more details." "$LINENO" 5 12706elif test $pkg_failed = untried; then 12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12708$as_echo "no" >&6; } 12709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12711as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12712is in your PATH or set the PKG_CONFIG environment variable to the full 12713path to pkg-config. 12714 12715Alternatively, you may set the environment variables XCB_CFLAGS 12716and XCB_LIBS to avoid the need to call pkg-config. 12717See the pkg-config man page for more details. 12718 12719To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12720See \`config.log' for more details" "$LINENO" 5; } 12721else 12722 XCB_CFLAGS=$pkg_cv_XCB_CFLAGS 12723 XCB_LIBS=$pkg_cv_XCB_LIBS 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12725$as_echo "yes" >&6; } 12726 12727fi 12728 12729# Check version of xcb-proto that xcb was compiled against 12730xcbproto_required=1.6 12731 12732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxcb was compiled against xcb-proto >= $xcbproto_required" >&5 12733$as_echo_n "checking whether libxcb was compiled against xcb-proto >= $xcbproto_required... " >&6; } 12734xcbproto_version=`$PKG_CONFIG --variable=xcbproto_version xcb` 12735 12736 for ac_prog in gawk mawk nawk awk 12737do 12738 # Extract the first word of "$ac_prog", so it can be a program name with args. 12739set dummy $ac_prog; ac_word=$2 12740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12741$as_echo_n "checking for $ac_word... " >&6; } 12742if ${ac_cv_prog_AWK+:} false; then : 12743 $as_echo_n "(cached) " >&6 12744else 12745 if test -n "$AWK"; then 12746 ac_cv_prog_AWK="$AWK" # Let the user override the test. 12747else 12748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12749for as_dir in $PATH 12750do 12751 IFS=$as_save_IFS 12752 test -z "$as_dir" && as_dir=. 12753 for ac_exec_ext in '' $ac_executable_extensions; do 12754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12755 ac_cv_prog_AWK="$ac_prog" 12756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12757 break 2 12758 fi 12759done 12760 done 12761IFS=$as_save_IFS 12762 12763fi 12764fi 12765AWK=$ac_cv_prog_AWK 12766if test -n "$AWK"; then 12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12768$as_echo "$AWK" >&6; } 12769else 12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12771$as_echo "no" >&6; } 12772fi 12773 12774 12775 test -n "$AWK" && break 12776done 12777 12778 12779 # Used to indicate true or false condition 12780 ax_compare_version=false 12781 12782 # Convert the two version strings to be compared into a format that 12783 # allows a simple string comparison. The end result is that a version 12784 # string of the form 1.12.5-r617 will be converted to the form 12785 # 0001001200050617. In other words, each number is zero padded to four 12786 # digits, and non digits are removed. 12787 12788 ax_compare_version_A=`echo "$xcbproto_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 12789 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 12790 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 12791 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 12792 -e 's/[^0-9]//g'` 12793 12794 12795 ax_compare_version_B=`echo "$xcbproto_required" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 12796 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 12797 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 12798 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 12799 -e 's/[^0-9]//g'` 12800 12801 12802 ax_compare_version=`echo "x$ax_compare_version_A 12803x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 12804 12805 12806 12807 if test "$ax_compare_version" = "true" ; then 12808 xcbproto_ok="yes" 12809 else xcbproto_ok="no" 12810 fi 12811 12812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xcbproto_ok" >&5 12813$as_echo "$xcbproto_ok" >&6; } 12814 12815if test $xcbproto_ok = no; then 12816 as_fn_error $? "libxcb was compiled against xcb-proto $xcbproto_version; it needs to be compiled against version $xcbproto_required or higher" "$LINENO" 5 12817fi 12818 12819# Call macros from Xorg util-macros 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837# Check whether --enable-selective-werror was given. 12838if test "${enable_selective_werror+set}" = set; then : 12839 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12840else 12841 SELECTIVE_WERROR=yes 12842fi 12843 12844 12845 12846 12847 12848# -v is too short to test reliably with XORG_TESTSET_CFLAG 12849if test "x$SUNCC" = "xyes"; then 12850 BASE_CFLAGS="-v" 12851else 12852 BASE_CFLAGS="" 12853fi 12854 12855# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869xorg_testset_save_CFLAGS="$CFLAGS" 12870 12871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12874$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12875if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12876 $as_echo_n "(cached) " >&6 12877else 12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12879/* end confdefs.h. */ 12880int i; 12881_ACEOF 12882if ac_fn_c_try_compile "$LINENO"; then : 12883 xorg_cv_cc_flag_unknown_warning_option=yes 12884else 12885 xorg_cv_cc_flag_unknown_warning_option=no 12886fi 12887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12888fi 12889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12890$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12892 CFLAGS="$xorg_testset_save_CFLAGS" 12893fi 12894 12895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12898 fi 12899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12901$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12902if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12903 $as_echo_n "(cached) " >&6 12904else 12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12906/* end confdefs.h. */ 12907int i; 12908_ACEOF 12909if ac_fn_c_try_compile "$LINENO"; then : 12910 xorg_cv_cc_flag_unused_command_line_argument=yes 12911else 12912 xorg_cv_cc_flag_unused_command_line_argument=no 12913fi 12914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12915fi 12916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12917$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12919 CFLAGS="$xorg_testset_save_CFLAGS" 12920fi 12921 12922found="no" 12923 12924 if test $found = "no" ; then 12925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12927 fi 12928 12929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12931 fi 12932 12933 CFLAGS="$CFLAGS -Wall" 12934 12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12936$as_echo_n "checking if $CC supports -Wall... " >&6; } 12937 cacheid=xorg_cv_cc_flag__Wall 12938 if eval \${$cacheid+:} false; then : 12939 $as_echo_n "(cached) " >&6 12940else 12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12942/* end confdefs.h. */ 12943int i; 12944int 12945main () 12946{ 12947 12948 ; 12949 return 0; 12950} 12951_ACEOF 12952if ac_fn_c_try_link "$LINENO"; then : 12953 eval $cacheid=yes 12954else 12955 eval $cacheid=no 12956fi 12957rm -f core conftest.err conftest.$ac_objext \ 12958 conftest$ac_exeext conftest.$ac_ext 12959fi 12960 12961 12962 CFLAGS="$xorg_testset_save_CFLAGS" 12963 12964 eval supported=\$$cacheid 12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12966$as_echo "$supported" >&6; } 12967 if test "$supported" = "yes" ; then 12968 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12969 found="yes" 12970 fi 12971 fi 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987xorg_testset_save_CFLAGS="$CFLAGS" 12988 12989if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12992$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12993if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12994 $as_echo_n "(cached) " >&6 12995else 12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12997/* end confdefs.h. */ 12998int i; 12999_ACEOF 13000if ac_fn_c_try_compile "$LINENO"; then : 13001 xorg_cv_cc_flag_unknown_warning_option=yes 13002else 13003 xorg_cv_cc_flag_unknown_warning_option=no 13004fi 13005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13006fi 13007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13008$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13010 CFLAGS="$xorg_testset_save_CFLAGS" 13011fi 13012 13013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13016 fi 13017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13019$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13020if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13021 $as_echo_n "(cached) " >&6 13022else 13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13024/* end confdefs.h. */ 13025int i; 13026_ACEOF 13027if ac_fn_c_try_compile "$LINENO"; then : 13028 xorg_cv_cc_flag_unused_command_line_argument=yes 13029else 13030 xorg_cv_cc_flag_unused_command_line_argument=no 13031fi 13032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13033fi 13034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13035$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13037 CFLAGS="$xorg_testset_save_CFLAGS" 13038fi 13039 13040found="no" 13041 13042 if test $found = "no" ; then 13043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13045 fi 13046 13047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13049 fi 13050 13051 CFLAGS="$CFLAGS -Wpointer-arith" 13052 13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13054$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 13055 cacheid=xorg_cv_cc_flag__Wpointer_arith 13056 if eval \${$cacheid+:} false; then : 13057 $as_echo_n "(cached) " >&6 13058else 13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13060/* end confdefs.h. */ 13061int i; 13062int 13063main () 13064{ 13065 13066 ; 13067 return 0; 13068} 13069_ACEOF 13070if ac_fn_c_try_link "$LINENO"; then : 13071 eval $cacheid=yes 13072else 13073 eval $cacheid=no 13074fi 13075rm -f core conftest.err conftest.$ac_objext \ 13076 conftest$ac_exeext conftest.$ac_ext 13077fi 13078 13079 13080 CFLAGS="$xorg_testset_save_CFLAGS" 13081 13082 eval supported=\$$cacheid 13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13084$as_echo "$supported" >&6; } 13085 if test "$supported" = "yes" ; then 13086 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13087 found="yes" 13088 fi 13089 fi 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105xorg_testset_save_CFLAGS="$CFLAGS" 13106 13107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13110$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13111if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13112 $as_echo_n "(cached) " >&6 13113else 13114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13115/* end confdefs.h. */ 13116int i; 13117_ACEOF 13118if ac_fn_c_try_compile "$LINENO"; then : 13119 xorg_cv_cc_flag_unknown_warning_option=yes 13120else 13121 xorg_cv_cc_flag_unknown_warning_option=no 13122fi 13123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13124fi 13125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13126$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13128 CFLAGS="$xorg_testset_save_CFLAGS" 13129fi 13130 13131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13134 fi 13135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13137$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13138if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13139 $as_echo_n "(cached) " >&6 13140else 13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13142/* end confdefs.h. */ 13143int i; 13144_ACEOF 13145if ac_fn_c_try_compile "$LINENO"; then : 13146 xorg_cv_cc_flag_unused_command_line_argument=yes 13147else 13148 xorg_cv_cc_flag_unused_command_line_argument=no 13149fi 13150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13151fi 13152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13153$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13155 CFLAGS="$xorg_testset_save_CFLAGS" 13156fi 13157 13158found="no" 13159 13160 if test $found = "no" ; then 13161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13163 fi 13164 13165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13167 fi 13168 13169 CFLAGS="$CFLAGS -Wmissing-declarations" 13170 13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13172$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 13173 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13174 if eval \${$cacheid+:} false; then : 13175 $as_echo_n "(cached) " >&6 13176else 13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13178/* end confdefs.h. */ 13179int i; 13180int 13181main () 13182{ 13183 13184 ; 13185 return 0; 13186} 13187_ACEOF 13188if ac_fn_c_try_link "$LINENO"; then : 13189 eval $cacheid=yes 13190else 13191 eval $cacheid=no 13192fi 13193rm -f core conftest.err conftest.$ac_objext \ 13194 conftest$ac_exeext conftest.$ac_ext 13195fi 13196 13197 13198 CFLAGS="$xorg_testset_save_CFLAGS" 13199 13200 eval supported=\$$cacheid 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13202$as_echo "$supported" >&6; } 13203 if test "$supported" = "yes" ; then 13204 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13205 found="yes" 13206 fi 13207 fi 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223xorg_testset_save_CFLAGS="$CFLAGS" 13224 13225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13228$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13229if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13230 $as_echo_n "(cached) " >&6 13231else 13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13233/* end confdefs.h. */ 13234int i; 13235_ACEOF 13236if ac_fn_c_try_compile "$LINENO"; then : 13237 xorg_cv_cc_flag_unknown_warning_option=yes 13238else 13239 xorg_cv_cc_flag_unknown_warning_option=no 13240fi 13241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13242fi 13243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13244$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13246 CFLAGS="$xorg_testset_save_CFLAGS" 13247fi 13248 13249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13252 fi 13253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13255$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13256if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13257 $as_echo_n "(cached) " >&6 13258else 13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13260/* end confdefs.h. */ 13261int i; 13262_ACEOF 13263if ac_fn_c_try_compile "$LINENO"; then : 13264 xorg_cv_cc_flag_unused_command_line_argument=yes 13265else 13266 xorg_cv_cc_flag_unused_command_line_argument=no 13267fi 13268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13269fi 13270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13271$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13273 CFLAGS="$xorg_testset_save_CFLAGS" 13274fi 13275 13276found="no" 13277 13278 if test $found = "no" ; then 13279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13281 fi 13282 13283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13285 fi 13286 13287 CFLAGS="$CFLAGS -Wformat=2" 13288 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13290$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 13291 cacheid=xorg_cv_cc_flag__Wformat_2 13292 if eval \${$cacheid+:} false; then : 13293 $as_echo_n "(cached) " >&6 13294else 13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13296/* end confdefs.h. */ 13297int i; 13298int 13299main () 13300{ 13301 13302 ; 13303 return 0; 13304} 13305_ACEOF 13306if ac_fn_c_try_link "$LINENO"; then : 13307 eval $cacheid=yes 13308else 13309 eval $cacheid=no 13310fi 13311rm -f core conftest.err conftest.$ac_objext \ 13312 conftest$ac_exeext conftest.$ac_ext 13313fi 13314 13315 13316 CFLAGS="$xorg_testset_save_CFLAGS" 13317 13318 eval supported=\$$cacheid 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13320$as_echo "$supported" >&6; } 13321 if test "$supported" = "yes" ; then 13322 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13323 found="yes" 13324 fi 13325 fi 13326 13327 if test $found = "no" ; then 13328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13330 fi 13331 13332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13334 fi 13335 13336 CFLAGS="$CFLAGS -Wformat" 13337 13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13339$as_echo_n "checking if $CC supports -Wformat... " >&6; } 13340 cacheid=xorg_cv_cc_flag__Wformat 13341 if eval \${$cacheid+:} false; then : 13342 $as_echo_n "(cached) " >&6 13343else 13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13345/* end confdefs.h. */ 13346int i; 13347int 13348main () 13349{ 13350 13351 ; 13352 return 0; 13353} 13354_ACEOF 13355if ac_fn_c_try_link "$LINENO"; then : 13356 eval $cacheid=yes 13357else 13358 eval $cacheid=no 13359fi 13360rm -f core conftest.err conftest.$ac_objext \ 13361 conftest$ac_exeext conftest.$ac_ext 13362fi 13363 13364 13365 CFLAGS="$xorg_testset_save_CFLAGS" 13366 13367 eval supported=\$$cacheid 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13369$as_echo "$supported" >&6; } 13370 if test "$supported" = "yes" ; then 13371 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13372 found="yes" 13373 fi 13374 fi 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392xorg_testset_save_CFLAGS="$CFLAGS" 13393 13394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13397$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13398if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13399 $as_echo_n "(cached) " >&6 13400else 13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13402/* end confdefs.h. */ 13403int i; 13404_ACEOF 13405if ac_fn_c_try_compile "$LINENO"; then : 13406 xorg_cv_cc_flag_unknown_warning_option=yes 13407else 13408 xorg_cv_cc_flag_unknown_warning_option=no 13409fi 13410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13411fi 13412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13413$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13415 CFLAGS="$xorg_testset_save_CFLAGS" 13416fi 13417 13418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13421 fi 13422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13424$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13425if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13426 $as_echo_n "(cached) " >&6 13427else 13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13429/* end confdefs.h. */ 13430int i; 13431_ACEOF 13432if ac_fn_c_try_compile "$LINENO"; then : 13433 xorg_cv_cc_flag_unused_command_line_argument=yes 13434else 13435 xorg_cv_cc_flag_unused_command_line_argument=no 13436fi 13437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13438fi 13439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13440$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13442 CFLAGS="$xorg_testset_save_CFLAGS" 13443fi 13444 13445found="no" 13446 13447 if test $found = "no" ; then 13448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13450 fi 13451 13452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13454 fi 13455 13456 CFLAGS="$CFLAGS -Wstrict-prototypes" 13457 13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13459$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13460 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13461 if eval \${$cacheid+:} false; then : 13462 $as_echo_n "(cached) " >&6 13463else 13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13465/* end confdefs.h. */ 13466int i; 13467int 13468main () 13469{ 13470 13471 ; 13472 return 0; 13473} 13474_ACEOF 13475if ac_fn_c_try_link "$LINENO"; then : 13476 eval $cacheid=yes 13477else 13478 eval $cacheid=no 13479fi 13480rm -f core conftest.err conftest.$ac_objext \ 13481 conftest$ac_exeext conftest.$ac_ext 13482fi 13483 13484 13485 CFLAGS="$xorg_testset_save_CFLAGS" 13486 13487 eval supported=\$$cacheid 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13489$as_echo "$supported" >&6; } 13490 if test "$supported" = "yes" ; then 13491 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13492 found="yes" 13493 fi 13494 fi 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510xorg_testset_save_CFLAGS="$CFLAGS" 13511 13512if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13515$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13516if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13517 $as_echo_n "(cached) " >&6 13518else 13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13520/* end confdefs.h. */ 13521int i; 13522_ACEOF 13523if ac_fn_c_try_compile "$LINENO"; then : 13524 xorg_cv_cc_flag_unknown_warning_option=yes 13525else 13526 xorg_cv_cc_flag_unknown_warning_option=no 13527fi 13528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13529fi 13530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13531$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13533 CFLAGS="$xorg_testset_save_CFLAGS" 13534fi 13535 13536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13539 fi 13540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13542$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13543if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13544 $as_echo_n "(cached) " >&6 13545else 13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13547/* end confdefs.h. */ 13548int i; 13549_ACEOF 13550if ac_fn_c_try_compile "$LINENO"; then : 13551 xorg_cv_cc_flag_unused_command_line_argument=yes 13552else 13553 xorg_cv_cc_flag_unused_command_line_argument=no 13554fi 13555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13556fi 13557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13558$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13560 CFLAGS="$xorg_testset_save_CFLAGS" 13561fi 13562 13563found="no" 13564 13565 if test $found = "no" ; then 13566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13568 fi 13569 13570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13572 fi 13573 13574 CFLAGS="$CFLAGS -Wmissing-prototypes" 13575 13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13577$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13578 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13579 if eval \${$cacheid+:} false; then : 13580 $as_echo_n "(cached) " >&6 13581else 13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13583/* end confdefs.h. */ 13584int i; 13585int 13586main () 13587{ 13588 13589 ; 13590 return 0; 13591} 13592_ACEOF 13593if ac_fn_c_try_link "$LINENO"; then : 13594 eval $cacheid=yes 13595else 13596 eval $cacheid=no 13597fi 13598rm -f core conftest.err conftest.$ac_objext \ 13599 conftest$ac_exeext conftest.$ac_ext 13600fi 13601 13602 13603 CFLAGS="$xorg_testset_save_CFLAGS" 13604 13605 eval supported=\$$cacheid 13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13607$as_echo "$supported" >&6; } 13608 if test "$supported" = "yes" ; then 13609 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13610 found="yes" 13611 fi 13612 fi 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628xorg_testset_save_CFLAGS="$CFLAGS" 13629 13630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13633$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13634if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13635 $as_echo_n "(cached) " >&6 13636else 13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13638/* end confdefs.h. */ 13639int i; 13640_ACEOF 13641if ac_fn_c_try_compile "$LINENO"; then : 13642 xorg_cv_cc_flag_unknown_warning_option=yes 13643else 13644 xorg_cv_cc_flag_unknown_warning_option=no 13645fi 13646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13647fi 13648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13649$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13651 CFLAGS="$xorg_testset_save_CFLAGS" 13652fi 13653 13654if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13657 fi 13658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13660$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13661if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13662 $as_echo_n "(cached) " >&6 13663else 13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13665/* end confdefs.h. */ 13666int i; 13667_ACEOF 13668if ac_fn_c_try_compile "$LINENO"; then : 13669 xorg_cv_cc_flag_unused_command_line_argument=yes 13670else 13671 xorg_cv_cc_flag_unused_command_line_argument=no 13672fi 13673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13674fi 13675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13676$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13678 CFLAGS="$xorg_testset_save_CFLAGS" 13679fi 13680 13681found="no" 13682 13683 if test $found = "no" ; then 13684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13686 fi 13687 13688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13690 fi 13691 13692 CFLAGS="$CFLAGS -Wnested-externs" 13693 13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13695$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13696 cacheid=xorg_cv_cc_flag__Wnested_externs 13697 if eval \${$cacheid+:} false; then : 13698 $as_echo_n "(cached) " >&6 13699else 13700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13701/* end confdefs.h. */ 13702int i; 13703int 13704main () 13705{ 13706 13707 ; 13708 return 0; 13709} 13710_ACEOF 13711if ac_fn_c_try_link "$LINENO"; then : 13712 eval $cacheid=yes 13713else 13714 eval $cacheid=no 13715fi 13716rm -f core conftest.err conftest.$ac_objext \ 13717 conftest$ac_exeext conftest.$ac_ext 13718fi 13719 13720 13721 CFLAGS="$xorg_testset_save_CFLAGS" 13722 13723 eval supported=\$$cacheid 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13725$as_echo "$supported" >&6; } 13726 if test "$supported" = "yes" ; then 13727 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13728 found="yes" 13729 fi 13730 fi 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746xorg_testset_save_CFLAGS="$CFLAGS" 13747 13748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13751$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13752if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13753 $as_echo_n "(cached) " >&6 13754else 13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13756/* end confdefs.h. */ 13757int i; 13758_ACEOF 13759if ac_fn_c_try_compile "$LINENO"; then : 13760 xorg_cv_cc_flag_unknown_warning_option=yes 13761else 13762 xorg_cv_cc_flag_unknown_warning_option=no 13763fi 13764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13765fi 13766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13767$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13769 CFLAGS="$xorg_testset_save_CFLAGS" 13770fi 13771 13772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13775 fi 13776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13778$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13779if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13780 $as_echo_n "(cached) " >&6 13781else 13782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13783/* end confdefs.h. */ 13784int i; 13785_ACEOF 13786if ac_fn_c_try_compile "$LINENO"; then : 13787 xorg_cv_cc_flag_unused_command_line_argument=yes 13788else 13789 xorg_cv_cc_flag_unused_command_line_argument=no 13790fi 13791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13792fi 13793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13794$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13796 CFLAGS="$xorg_testset_save_CFLAGS" 13797fi 13798 13799found="no" 13800 13801 if test $found = "no" ; then 13802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13804 fi 13805 13806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13808 fi 13809 13810 CFLAGS="$CFLAGS -Wbad-function-cast" 13811 13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13813$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13814 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13815 if eval \${$cacheid+:} false; then : 13816 $as_echo_n "(cached) " >&6 13817else 13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13819/* end confdefs.h. */ 13820int i; 13821int 13822main () 13823{ 13824 13825 ; 13826 return 0; 13827} 13828_ACEOF 13829if ac_fn_c_try_link "$LINENO"; then : 13830 eval $cacheid=yes 13831else 13832 eval $cacheid=no 13833fi 13834rm -f core conftest.err conftest.$ac_objext \ 13835 conftest$ac_exeext conftest.$ac_ext 13836fi 13837 13838 13839 CFLAGS="$xorg_testset_save_CFLAGS" 13840 13841 eval supported=\$$cacheid 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13843$as_echo "$supported" >&6; } 13844 if test "$supported" = "yes" ; then 13845 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13846 found="yes" 13847 fi 13848 fi 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864xorg_testset_save_CFLAGS="$CFLAGS" 13865 13866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13869$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13870if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13871 $as_echo_n "(cached) " >&6 13872else 13873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13874/* end confdefs.h. */ 13875int i; 13876_ACEOF 13877if ac_fn_c_try_compile "$LINENO"; then : 13878 xorg_cv_cc_flag_unknown_warning_option=yes 13879else 13880 xorg_cv_cc_flag_unknown_warning_option=no 13881fi 13882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13883fi 13884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13885$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13887 CFLAGS="$xorg_testset_save_CFLAGS" 13888fi 13889 13890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13893 fi 13894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13896$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13897if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13898 $as_echo_n "(cached) " >&6 13899else 13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13901/* end confdefs.h. */ 13902int i; 13903_ACEOF 13904if ac_fn_c_try_compile "$LINENO"; then : 13905 xorg_cv_cc_flag_unused_command_line_argument=yes 13906else 13907 xorg_cv_cc_flag_unused_command_line_argument=no 13908fi 13909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13910fi 13911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13912$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13914 CFLAGS="$xorg_testset_save_CFLAGS" 13915fi 13916 13917found="no" 13918 13919 if test $found = "no" ; then 13920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13922 fi 13923 13924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13926 fi 13927 13928 CFLAGS="$CFLAGS -Wold-style-definition" 13929 13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13931$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13932 cacheid=xorg_cv_cc_flag__Wold_style_definition 13933 if eval \${$cacheid+:} false; then : 13934 $as_echo_n "(cached) " >&6 13935else 13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13937/* end confdefs.h. */ 13938int i; 13939int 13940main () 13941{ 13942 13943 ; 13944 return 0; 13945} 13946_ACEOF 13947if ac_fn_c_try_link "$LINENO"; then : 13948 eval $cacheid=yes 13949else 13950 eval $cacheid=no 13951fi 13952rm -f core conftest.err conftest.$ac_objext \ 13953 conftest$ac_exeext conftest.$ac_ext 13954fi 13955 13956 13957 CFLAGS="$xorg_testset_save_CFLAGS" 13958 13959 eval supported=\$$cacheid 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13961$as_echo "$supported" >&6; } 13962 if test "$supported" = "yes" ; then 13963 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13964 found="yes" 13965 fi 13966 fi 13967 13968 if test $found = "no" ; then 13969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13971 fi 13972 13973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13975 fi 13976 13977 CFLAGS="$CFLAGS -fd" 13978 13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13980$as_echo_n "checking if $CC supports -fd... " >&6; } 13981 cacheid=xorg_cv_cc_flag__fd 13982 if eval \${$cacheid+:} false; then : 13983 $as_echo_n "(cached) " >&6 13984else 13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13986/* end confdefs.h. */ 13987int i; 13988int 13989main () 13990{ 13991 13992 ; 13993 return 0; 13994} 13995_ACEOF 13996if ac_fn_c_try_link "$LINENO"; then : 13997 eval $cacheid=yes 13998else 13999 eval $cacheid=no 14000fi 14001rm -f core conftest.err conftest.$ac_objext \ 14002 conftest$ac_exeext conftest.$ac_ext 14003fi 14004 14005 14006 CFLAGS="$xorg_testset_save_CFLAGS" 14007 14008 eval supported=\$$cacheid 14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14010$as_echo "$supported" >&6; } 14011 if test "$supported" = "yes" ; then 14012 BASE_CFLAGS="$BASE_CFLAGS -fd" 14013 found="yes" 14014 fi 14015 fi 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031xorg_testset_save_CFLAGS="$CFLAGS" 14032 14033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14036$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14037if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14038 $as_echo_n "(cached) " >&6 14039else 14040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14041/* end confdefs.h. */ 14042int i; 14043_ACEOF 14044if ac_fn_c_try_compile "$LINENO"; then : 14045 xorg_cv_cc_flag_unknown_warning_option=yes 14046else 14047 xorg_cv_cc_flag_unknown_warning_option=no 14048fi 14049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14050fi 14051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14052$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14054 CFLAGS="$xorg_testset_save_CFLAGS" 14055fi 14056 14057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14060 fi 14061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14063$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14064if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14065 $as_echo_n "(cached) " >&6 14066else 14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14068/* end confdefs.h. */ 14069int i; 14070_ACEOF 14071if ac_fn_c_try_compile "$LINENO"; then : 14072 xorg_cv_cc_flag_unused_command_line_argument=yes 14073else 14074 xorg_cv_cc_flag_unused_command_line_argument=no 14075fi 14076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14077fi 14078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14079$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14081 CFLAGS="$xorg_testset_save_CFLAGS" 14082fi 14083 14084found="no" 14085 14086 if test $found = "no" ; then 14087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14089 fi 14090 14091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14093 fi 14094 14095 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14096 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14098$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14099 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14100 if eval \${$cacheid+:} false; then : 14101 $as_echo_n "(cached) " >&6 14102else 14103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14104/* end confdefs.h. */ 14105int i; 14106int 14107main () 14108{ 14109 14110 ; 14111 return 0; 14112} 14113_ACEOF 14114if ac_fn_c_try_link "$LINENO"; then : 14115 eval $cacheid=yes 14116else 14117 eval $cacheid=no 14118fi 14119rm -f core conftest.err conftest.$ac_objext \ 14120 conftest$ac_exeext conftest.$ac_ext 14121fi 14122 14123 14124 CFLAGS="$xorg_testset_save_CFLAGS" 14125 14126 eval supported=\$$cacheid 14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14128$as_echo "$supported" >&6; } 14129 if test "$supported" = "yes" ; then 14130 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14131 found="yes" 14132 fi 14133 fi 14134 14135 14136 14137 14138 14139# This chunk adds additional warnings that could catch undesired effects. 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153xorg_testset_save_CFLAGS="$CFLAGS" 14154 14155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14160 $as_echo_n "(cached) " >&6 14161else 14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14163/* end confdefs.h. */ 14164int i; 14165_ACEOF 14166if ac_fn_c_try_compile "$LINENO"; then : 14167 xorg_cv_cc_flag_unknown_warning_option=yes 14168else 14169 xorg_cv_cc_flag_unknown_warning_option=no 14170fi 14171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14172fi 14173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14176 CFLAGS="$xorg_testset_save_CFLAGS" 14177fi 14178 14179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14182 fi 14183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14187 $as_echo_n "(cached) " >&6 14188else 14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14190/* end confdefs.h. */ 14191int i; 14192_ACEOF 14193if ac_fn_c_try_compile "$LINENO"; then : 14194 xorg_cv_cc_flag_unused_command_line_argument=yes 14195else 14196 xorg_cv_cc_flag_unused_command_line_argument=no 14197fi 14198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14199fi 14200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14203 CFLAGS="$xorg_testset_save_CFLAGS" 14204fi 14205 14206found="no" 14207 14208 if test $found = "no" ; then 14209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14211 fi 14212 14213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14215 fi 14216 14217 CFLAGS="$CFLAGS -Wunused" 14218 14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14220$as_echo_n "checking if $CC supports -Wunused... " >&6; } 14221 cacheid=xorg_cv_cc_flag__Wunused 14222 if eval \${$cacheid+:} false; then : 14223 $as_echo_n "(cached) " >&6 14224else 14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14226/* end confdefs.h. */ 14227int i; 14228int 14229main () 14230{ 14231 14232 ; 14233 return 0; 14234} 14235_ACEOF 14236if ac_fn_c_try_link "$LINENO"; then : 14237 eval $cacheid=yes 14238else 14239 eval $cacheid=no 14240fi 14241rm -f core conftest.err conftest.$ac_objext \ 14242 conftest$ac_exeext conftest.$ac_ext 14243fi 14244 14245 14246 CFLAGS="$xorg_testset_save_CFLAGS" 14247 14248 eval supported=\$$cacheid 14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14250$as_echo "$supported" >&6; } 14251 if test "$supported" = "yes" ; then 14252 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14253 found="yes" 14254 fi 14255 fi 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271xorg_testset_save_CFLAGS="$CFLAGS" 14272 14273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14278 $as_echo_n "(cached) " >&6 14279else 14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14281/* end confdefs.h. */ 14282int i; 14283_ACEOF 14284if ac_fn_c_try_compile "$LINENO"; then : 14285 xorg_cv_cc_flag_unknown_warning_option=yes 14286else 14287 xorg_cv_cc_flag_unknown_warning_option=no 14288fi 14289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14290fi 14291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14294 CFLAGS="$xorg_testset_save_CFLAGS" 14295fi 14296 14297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14300 fi 14301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14305 $as_echo_n "(cached) " >&6 14306else 14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14308/* end confdefs.h. */ 14309int i; 14310_ACEOF 14311if ac_fn_c_try_compile "$LINENO"; then : 14312 xorg_cv_cc_flag_unused_command_line_argument=yes 14313else 14314 xorg_cv_cc_flag_unused_command_line_argument=no 14315fi 14316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14317fi 14318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14321 CFLAGS="$xorg_testset_save_CFLAGS" 14322fi 14323 14324found="no" 14325 14326 if test $found = "no" ; then 14327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14329 fi 14330 14331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14333 fi 14334 14335 CFLAGS="$CFLAGS -Wuninitialized" 14336 14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14338$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 14339 cacheid=xorg_cv_cc_flag__Wuninitialized 14340 if eval \${$cacheid+:} false; then : 14341 $as_echo_n "(cached) " >&6 14342else 14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14344/* end confdefs.h. */ 14345int i; 14346int 14347main () 14348{ 14349 14350 ; 14351 return 0; 14352} 14353_ACEOF 14354if ac_fn_c_try_link "$LINENO"; then : 14355 eval $cacheid=yes 14356else 14357 eval $cacheid=no 14358fi 14359rm -f core conftest.err conftest.$ac_objext \ 14360 conftest$ac_exeext conftest.$ac_ext 14361fi 14362 14363 14364 CFLAGS="$xorg_testset_save_CFLAGS" 14365 14366 eval supported=\$$cacheid 14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14368$as_echo "$supported" >&6; } 14369 if test "$supported" = "yes" ; then 14370 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14371 found="yes" 14372 fi 14373 fi 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389xorg_testset_save_CFLAGS="$CFLAGS" 14390 14391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14396 $as_echo_n "(cached) " >&6 14397else 14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14399/* end confdefs.h. */ 14400int i; 14401_ACEOF 14402if ac_fn_c_try_compile "$LINENO"; then : 14403 xorg_cv_cc_flag_unknown_warning_option=yes 14404else 14405 xorg_cv_cc_flag_unknown_warning_option=no 14406fi 14407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14408fi 14409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14412 CFLAGS="$xorg_testset_save_CFLAGS" 14413fi 14414 14415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14418 fi 14419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14423 $as_echo_n "(cached) " >&6 14424else 14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14426/* end confdefs.h. */ 14427int i; 14428_ACEOF 14429if ac_fn_c_try_compile "$LINENO"; then : 14430 xorg_cv_cc_flag_unused_command_line_argument=yes 14431else 14432 xorg_cv_cc_flag_unused_command_line_argument=no 14433fi 14434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14435fi 14436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14439 CFLAGS="$xorg_testset_save_CFLAGS" 14440fi 14441 14442found="no" 14443 14444 if test $found = "no" ; then 14445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14447 fi 14448 14449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14451 fi 14452 14453 CFLAGS="$CFLAGS -Wshadow" 14454 14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14456$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14457 cacheid=xorg_cv_cc_flag__Wshadow 14458 if eval \${$cacheid+:} false; then : 14459 $as_echo_n "(cached) " >&6 14460else 14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14462/* end confdefs.h. */ 14463int i; 14464int 14465main () 14466{ 14467 14468 ; 14469 return 0; 14470} 14471_ACEOF 14472if ac_fn_c_try_link "$LINENO"; then : 14473 eval $cacheid=yes 14474else 14475 eval $cacheid=no 14476fi 14477rm -f core conftest.err conftest.$ac_objext \ 14478 conftest$ac_exeext conftest.$ac_ext 14479fi 14480 14481 14482 CFLAGS="$xorg_testset_save_CFLAGS" 14483 14484 eval supported=\$$cacheid 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14486$as_echo "$supported" >&6; } 14487 if test "$supported" = "yes" ; then 14488 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14489 found="yes" 14490 fi 14491 fi 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507xorg_testset_save_CFLAGS="$CFLAGS" 14508 14509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14512$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14513if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14514 $as_echo_n "(cached) " >&6 14515else 14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14517/* end confdefs.h. */ 14518int i; 14519_ACEOF 14520if ac_fn_c_try_compile "$LINENO"; then : 14521 xorg_cv_cc_flag_unknown_warning_option=yes 14522else 14523 xorg_cv_cc_flag_unknown_warning_option=no 14524fi 14525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14526fi 14527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14528$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14530 CFLAGS="$xorg_testset_save_CFLAGS" 14531fi 14532 14533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14536 fi 14537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14540if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14541 $as_echo_n "(cached) " >&6 14542else 14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14544/* end confdefs.h. */ 14545int i; 14546_ACEOF 14547if ac_fn_c_try_compile "$LINENO"; then : 14548 xorg_cv_cc_flag_unused_command_line_argument=yes 14549else 14550 xorg_cv_cc_flag_unused_command_line_argument=no 14551fi 14552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14553fi 14554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14555$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14557 CFLAGS="$xorg_testset_save_CFLAGS" 14558fi 14559 14560found="no" 14561 14562 if test $found = "no" ; then 14563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14565 fi 14566 14567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14569 fi 14570 14571 CFLAGS="$CFLAGS -Wmissing-noreturn" 14572 14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14574$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14575 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14576 if eval \${$cacheid+:} false; then : 14577 $as_echo_n "(cached) " >&6 14578else 14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14580/* end confdefs.h. */ 14581int i; 14582int 14583main () 14584{ 14585 14586 ; 14587 return 0; 14588} 14589_ACEOF 14590if ac_fn_c_try_link "$LINENO"; then : 14591 eval $cacheid=yes 14592else 14593 eval $cacheid=no 14594fi 14595rm -f core conftest.err conftest.$ac_objext \ 14596 conftest$ac_exeext conftest.$ac_ext 14597fi 14598 14599 14600 CFLAGS="$xorg_testset_save_CFLAGS" 14601 14602 eval supported=\$$cacheid 14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14604$as_echo "$supported" >&6; } 14605 if test "$supported" = "yes" ; then 14606 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14607 found="yes" 14608 fi 14609 fi 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625xorg_testset_save_CFLAGS="$CFLAGS" 14626 14627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14630$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14631if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14632 $as_echo_n "(cached) " >&6 14633else 14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14635/* end confdefs.h. */ 14636int i; 14637_ACEOF 14638if ac_fn_c_try_compile "$LINENO"; then : 14639 xorg_cv_cc_flag_unknown_warning_option=yes 14640else 14641 xorg_cv_cc_flag_unknown_warning_option=no 14642fi 14643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14644fi 14645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14646$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14648 CFLAGS="$xorg_testset_save_CFLAGS" 14649fi 14650 14651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14654 fi 14655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14657$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14658if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14659 $as_echo_n "(cached) " >&6 14660else 14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14662/* end confdefs.h. */ 14663int i; 14664_ACEOF 14665if ac_fn_c_try_compile "$LINENO"; then : 14666 xorg_cv_cc_flag_unused_command_line_argument=yes 14667else 14668 xorg_cv_cc_flag_unused_command_line_argument=no 14669fi 14670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14671fi 14672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14673$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14675 CFLAGS="$xorg_testset_save_CFLAGS" 14676fi 14677 14678found="no" 14679 14680 if test $found = "no" ; then 14681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14683 fi 14684 14685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14687 fi 14688 14689 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14690 14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14692$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14693 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14694 if eval \${$cacheid+:} false; then : 14695 $as_echo_n "(cached) " >&6 14696else 14697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14698/* end confdefs.h. */ 14699int i; 14700int 14701main () 14702{ 14703 14704 ; 14705 return 0; 14706} 14707_ACEOF 14708if ac_fn_c_try_link "$LINENO"; then : 14709 eval $cacheid=yes 14710else 14711 eval $cacheid=no 14712fi 14713rm -f core conftest.err conftest.$ac_objext \ 14714 conftest$ac_exeext conftest.$ac_ext 14715fi 14716 14717 14718 CFLAGS="$xorg_testset_save_CFLAGS" 14719 14720 eval supported=\$$cacheid 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14722$as_echo "$supported" >&6; } 14723 if test "$supported" = "yes" ; then 14724 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14725 found="yes" 14726 fi 14727 fi 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743xorg_testset_save_CFLAGS="$CFLAGS" 14744 14745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14748$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14749if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14750 $as_echo_n "(cached) " >&6 14751else 14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14753/* end confdefs.h. */ 14754int i; 14755_ACEOF 14756if ac_fn_c_try_compile "$LINENO"; then : 14757 xorg_cv_cc_flag_unknown_warning_option=yes 14758else 14759 xorg_cv_cc_flag_unknown_warning_option=no 14760fi 14761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14762fi 14763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14764$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14766 CFLAGS="$xorg_testset_save_CFLAGS" 14767fi 14768 14769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14772 fi 14773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14775$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14776if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14777 $as_echo_n "(cached) " >&6 14778else 14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14780/* end confdefs.h. */ 14781int i; 14782_ACEOF 14783if ac_fn_c_try_compile "$LINENO"; then : 14784 xorg_cv_cc_flag_unused_command_line_argument=yes 14785else 14786 xorg_cv_cc_flag_unused_command_line_argument=no 14787fi 14788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14789fi 14790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14791$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14793 CFLAGS="$xorg_testset_save_CFLAGS" 14794fi 14795 14796found="no" 14797 14798 if test $found = "no" ; then 14799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14801 fi 14802 14803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14805 fi 14806 14807 CFLAGS="$CFLAGS -Wredundant-decls" 14808 14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14810$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14811 cacheid=xorg_cv_cc_flag__Wredundant_decls 14812 if eval \${$cacheid+:} false; then : 14813 $as_echo_n "(cached) " >&6 14814else 14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14816/* end confdefs.h. */ 14817int i; 14818int 14819main () 14820{ 14821 14822 ; 14823 return 0; 14824} 14825_ACEOF 14826if ac_fn_c_try_link "$LINENO"; then : 14827 eval $cacheid=yes 14828else 14829 eval $cacheid=no 14830fi 14831rm -f core conftest.err conftest.$ac_objext \ 14832 conftest$ac_exeext conftest.$ac_ext 14833fi 14834 14835 14836 CFLAGS="$xorg_testset_save_CFLAGS" 14837 14838 eval supported=\$$cacheid 14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14840$as_echo "$supported" >&6; } 14841 if test "$supported" = "yes" ; then 14842 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14843 found="yes" 14844 fi 14845 fi 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861xorg_testset_save_CFLAGS="$CFLAGS" 14862 14863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14866$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14867if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14868 $as_echo_n "(cached) " >&6 14869else 14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14871/* end confdefs.h. */ 14872int i; 14873_ACEOF 14874if ac_fn_c_try_compile "$LINENO"; then : 14875 xorg_cv_cc_flag_unknown_warning_option=yes 14876else 14877 xorg_cv_cc_flag_unknown_warning_option=no 14878fi 14879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14880fi 14881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14882$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14884 CFLAGS="$xorg_testset_save_CFLAGS" 14885fi 14886 14887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14890 fi 14891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14893$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14894if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14895 $as_echo_n "(cached) " >&6 14896else 14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14898/* end confdefs.h. */ 14899int i; 14900_ACEOF 14901if ac_fn_c_try_compile "$LINENO"; then : 14902 xorg_cv_cc_flag_unused_command_line_argument=yes 14903else 14904 xorg_cv_cc_flag_unused_command_line_argument=no 14905fi 14906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14907fi 14908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14909$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14911 CFLAGS="$xorg_testset_save_CFLAGS" 14912fi 14913 14914found="no" 14915 14916 if test $found = "no" ; then 14917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14919 fi 14920 14921 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14923 fi 14924 14925 CFLAGS="$CFLAGS -Wlogical-op" 14926 14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14928$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14929 cacheid=xorg_cv_cc_flag__Wlogical_op 14930 if eval \${$cacheid+:} false; then : 14931 $as_echo_n "(cached) " >&6 14932else 14933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14934/* end confdefs.h. */ 14935int i; 14936int 14937main () 14938{ 14939 14940 ; 14941 return 0; 14942} 14943_ACEOF 14944if ac_fn_c_try_link "$LINENO"; then : 14945 eval $cacheid=yes 14946else 14947 eval $cacheid=no 14948fi 14949rm -f core conftest.err conftest.$ac_objext \ 14950 conftest$ac_exeext conftest.$ac_ext 14951fi 14952 14953 14954 CFLAGS="$xorg_testset_save_CFLAGS" 14955 14956 eval supported=\$$cacheid 14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14958$as_echo "$supported" >&6; } 14959 if test "$supported" = "yes" ; then 14960 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14961 found="yes" 14962 fi 14963 fi 14964 14965 14966 14967# These are currently disabled because they are noisy. They will be enabled 14968# in the future once the codebase is sufficiently modernized to silence 14969# them. For now, I don't want them to drown out the other warnings. 14970# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14971# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14972# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14973 14974# Turn some warnings into errors, so we don't accidently get successful builds 14975# when there are problems that should be fixed. 14976 14977if test "x$SELECTIVE_WERROR" = "xyes" ; then 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991xorg_testset_save_CFLAGS="$CFLAGS" 14992 14993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14996$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14997if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14998 $as_echo_n "(cached) " >&6 14999else 15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15001/* end confdefs.h. */ 15002int i; 15003_ACEOF 15004if ac_fn_c_try_compile "$LINENO"; then : 15005 xorg_cv_cc_flag_unknown_warning_option=yes 15006else 15007 xorg_cv_cc_flag_unknown_warning_option=no 15008fi 15009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15010fi 15011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15012$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15014 CFLAGS="$xorg_testset_save_CFLAGS" 15015fi 15016 15017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15020 fi 15021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15023$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15024if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15025 $as_echo_n "(cached) " >&6 15026else 15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15028/* end confdefs.h. */ 15029int i; 15030_ACEOF 15031if ac_fn_c_try_compile "$LINENO"; then : 15032 xorg_cv_cc_flag_unused_command_line_argument=yes 15033else 15034 xorg_cv_cc_flag_unused_command_line_argument=no 15035fi 15036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15037fi 15038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15039$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15040 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15041 CFLAGS="$xorg_testset_save_CFLAGS" 15042fi 15043 15044found="no" 15045 15046 if test $found = "no" ; then 15047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15049 fi 15050 15051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15053 fi 15054 15055 CFLAGS="$CFLAGS -Werror=implicit" 15056 15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15058$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 15059 cacheid=xorg_cv_cc_flag__Werror_implicit 15060 if eval \${$cacheid+:} false; then : 15061 $as_echo_n "(cached) " >&6 15062else 15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15064/* end confdefs.h. */ 15065int i; 15066int 15067main () 15068{ 15069 15070 ; 15071 return 0; 15072} 15073_ACEOF 15074if ac_fn_c_try_link "$LINENO"; then : 15075 eval $cacheid=yes 15076else 15077 eval $cacheid=no 15078fi 15079rm -f core conftest.err conftest.$ac_objext \ 15080 conftest$ac_exeext conftest.$ac_ext 15081fi 15082 15083 15084 CFLAGS="$xorg_testset_save_CFLAGS" 15085 15086 eval supported=\$$cacheid 15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15088$as_echo "$supported" >&6; } 15089 if test "$supported" = "yes" ; then 15090 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15091 found="yes" 15092 fi 15093 fi 15094 15095 if test $found = "no" ; then 15096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15098 fi 15099 15100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15102 fi 15103 15104 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15105 15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 15107$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15108 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15109 if eval \${$cacheid+:} false; then : 15110 $as_echo_n "(cached) " >&6 15111else 15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15113/* end confdefs.h. */ 15114int i; 15115int 15116main () 15117{ 15118 15119 ; 15120 return 0; 15121} 15122_ACEOF 15123if ac_fn_c_try_link "$LINENO"; then : 15124 eval $cacheid=yes 15125else 15126 eval $cacheid=no 15127fi 15128rm -f core conftest.err conftest.$ac_objext \ 15129 conftest$ac_exeext conftest.$ac_ext 15130fi 15131 15132 15133 CFLAGS="$xorg_testset_save_CFLAGS" 15134 15135 eval supported=\$$cacheid 15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15137$as_echo "$supported" >&6; } 15138 if test "$supported" = "yes" ; then 15139 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15140 found="yes" 15141 fi 15142 fi 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158xorg_testset_save_CFLAGS="$CFLAGS" 15159 15160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15165 $as_echo_n "(cached) " >&6 15166else 15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15168/* end confdefs.h. */ 15169int i; 15170_ACEOF 15171if ac_fn_c_try_compile "$LINENO"; then : 15172 xorg_cv_cc_flag_unknown_warning_option=yes 15173else 15174 xorg_cv_cc_flag_unknown_warning_option=no 15175fi 15176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15177fi 15178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15181 CFLAGS="$xorg_testset_save_CFLAGS" 15182fi 15183 15184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15187 fi 15188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15192 $as_echo_n "(cached) " >&6 15193else 15194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15195/* end confdefs.h. */ 15196int i; 15197_ACEOF 15198if ac_fn_c_try_compile "$LINENO"; then : 15199 xorg_cv_cc_flag_unused_command_line_argument=yes 15200else 15201 xorg_cv_cc_flag_unused_command_line_argument=no 15202fi 15203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15204fi 15205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15208 CFLAGS="$xorg_testset_save_CFLAGS" 15209fi 15210 15211found="no" 15212 15213 if test $found = "no" ; then 15214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15216 fi 15217 15218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15220 fi 15221 15222 CFLAGS="$CFLAGS -Werror=nonnull" 15223 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15225$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 15226 cacheid=xorg_cv_cc_flag__Werror_nonnull 15227 if eval \${$cacheid+:} false; then : 15228 $as_echo_n "(cached) " >&6 15229else 15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15231/* end confdefs.h. */ 15232int i; 15233int 15234main () 15235{ 15236 15237 ; 15238 return 0; 15239} 15240_ACEOF 15241if ac_fn_c_try_link "$LINENO"; then : 15242 eval $cacheid=yes 15243else 15244 eval $cacheid=no 15245fi 15246rm -f core conftest.err conftest.$ac_objext \ 15247 conftest$ac_exeext conftest.$ac_ext 15248fi 15249 15250 15251 CFLAGS="$xorg_testset_save_CFLAGS" 15252 15253 eval supported=\$$cacheid 15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15255$as_echo "$supported" >&6; } 15256 if test "$supported" = "yes" ; then 15257 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15258 found="yes" 15259 fi 15260 fi 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276xorg_testset_save_CFLAGS="$CFLAGS" 15277 15278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15281$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15282if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15283 $as_echo_n "(cached) " >&6 15284else 15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15286/* end confdefs.h. */ 15287int i; 15288_ACEOF 15289if ac_fn_c_try_compile "$LINENO"; then : 15290 xorg_cv_cc_flag_unknown_warning_option=yes 15291else 15292 xorg_cv_cc_flag_unknown_warning_option=no 15293fi 15294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15295fi 15296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15297$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15299 CFLAGS="$xorg_testset_save_CFLAGS" 15300fi 15301 15302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15305 fi 15306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15308$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15309if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15310 $as_echo_n "(cached) " >&6 15311else 15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15313/* end confdefs.h. */ 15314int i; 15315_ACEOF 15316if ac_fn_c_try_compile "$LINENO"; then : 15317 xorg_cv_cc_flag_unused_command_line_argument=yes 15318else 15319 xorg_cv_cc_flag_unused_command_line_argument=no 15320fi 15321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15322fi 15323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15324$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15326 CFLAGS="$xorg_testset_save_CFLAGS" 15327fi 15328 15329found="no" 15330 15331 if test $found = "no" ; then 15332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15334 fi 15335 15336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15338 fi 15339 15340 CFLAGS="$CFLAGS -Werror=init-self" 15341 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15343$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 15344 cacheid=xorg_cv_cc_flag__Werror_init_self 15345 if eval \${$cacheid+:} false; then : 15346 $as_echo_n "(cached) " >&6 15347else 15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15349/* end confdefs.h. */ 15350int i; 15351int 15352main () 15353{ 15354 15355 ; 15356 return 0; 15357} 15358_ACEOF 15359if ac_fn_c_try_link "$LINENO"; then : 15360 eval $cacheid=yes 15361else 15362 eval $cacheid=no 15363fi 15364rm -f core conftest.err conftest.$ac_objext \ 15365 conftest$ac_exeext conftest.$ac_ext 15366fi 15367 15368 15369 CFLAGS="$xorg_testset_save_CFLAGS" 15370 15371 eval supported=\$$cacheid 15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15373$as_echo "$supported" >&6; } 15374 if test "$supported" = "yes" ; then 15375 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15376 found="yes" 15377 fi 15378 fi 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394xorg_testset_save_CFLAGS="$CFLAGS" 15395 15396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15399$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15400if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15401 $as_echo_n "(cached) " >&6 15402else 15403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15404/* end confdefs.h. */ 15405int i; 15406_ACEOF 15407if ac_fn_c_try_compile "$LINENO"; then : 15408 xorg_cv_cc_flag_unknown_warning_option=yes 15409else 15410 xorg_cv_cc_flag_unknown_warning_option=no 15411fi 15412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15413fi 15414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15415$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15417 CFLAGS="$xorg_testset_save_CFLAGS" 15418fi 15419 15420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15423 fi 15424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15426$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15427if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15428 $as_echo_n "(cached) " >&6 15429else 15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15431/* end confdefs.h. */ 15432int i; 15433_ACEOF 15434if ac_fn_c_try_compile "$LINENO"; then : 15435 xorg_cv_cc_flag_unused_command_line_argument=yes 15436else 15437 xorg_cv_cc_flag_unused_command_line_argument=no 15438fi 15439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15440fi 15441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15442$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15444 CFLAGS="$xorg_testset_save_CFLAGS" 15445fi 15446 15447found="no" 15448 15449 if test $found = "no" ; then 15450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15452 fi 15453 15454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15456 fi 15457 15458 CFLAGS="$CFLAGS -Werror=main" 15459 15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15461$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15462 cacheid=xorg_cv_cc_flag__Werror_main 15463 if eval \${$cacheid+:} false; then : 15464 $as_echo_n "(cached) " >&6 15465else 15466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15467/* end confdefs.h. */ 15468int i; 15469int 15470main () 15471{ 15472 15473 ; 15474 return 0; 15475} 15476_ACEOF 15477if ac_fn_c_try_link "$LINENO"; then : 15478 eval $cacheid=yes 15479else 15480 eval $cacheid=no 15481fi 15482rm -f core conftest.err conftest.$ac_objext \ 15483 conftest$ac_exeext conftest.$ac_ext 15484fi 15485 15486 15487 CFLAGS="$xorg_testset_save_CFLAGS" 15488 15489 eval supported=\$$cacheid 15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15491$as_echo "$supported" >&6; } 15492 if test "$supported" = "yes" ; then 15493 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15494 found="yes" 15495 fi 15496 fi 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512xorg_testset_save_CFLAGS="$CFLAGS" 15513 15514if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15517$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15518if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15519 $as_echo_n "(cached) " >&6 15520else 15521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15522/* end confdefs.h. */ 15523int i; 15524_ACEOF 15525if ac_fn_c_try_compile "$LINENO"; then : 15526 xorg_cv_cc_flag_unknown_warning_option=yes 15527else 15528 xorg_cv_cc_flag_unknown_warning_option=no 15529fi 15530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15531fi 15532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15533$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15535 CFLAGS="$xorg_testset_save_CFLAGS" 15536fi 15537 15538if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15541 fi 15542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15544$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15545if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15546 $as_echo_n "(cached) " >&6 15547else 15548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15549/* end confdefs.h. */ 15550int i; 15551_ACEOF 15552if ac_fn_c_try_compile "$LINENO"; then : 15553 xorg_cv_cc_flag_unused_command_line_argument=yes 15554else 15555 xorg_cv_cc_flag_unused_command_line_argument=no 15556fi 15557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15558fi 15559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15560$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15562 CFLAGS="$xorg_testset_save_CFLAGS" 15563fi 15564 15565found="no" 15566 15567 if test $found = "no" ; then 15568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15570 fi 15571 15572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15574 fi 15575 15576 CFLAGS="$CFLAGS -Werror=missing-braces" 15577 15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15579$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15580 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15581 if eval \${$cacheid+:} false; then : 15582 $as_echo_n "(cached) " >&6 15583else 15584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15585/* end confdefs.h. */ 15586int i; 15587int 15588main () 15589{ 15590 15591 ; 15592 return 0; 15593} 15594_ACEOF 15595if ac_fn_c_try_link "$LINENO"; then : 15596 eval $cacheid=yes 15597else 15598 eval $cacheid=no 15599fi 15600rm -f core conftest.err conftest.$ac_objext \ 15601 conftest$ac_exeext conftest.$ac_ext 15602fi 15603 15604 15605 CFLAGS="$xorg_testset_save_CFLAGS" 15606 15607 eval supported=\$$cacheid 15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15609$as_echo "$supported" >&6; } 15610 if test "$supported" = "yes" ; then 15611 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15612 found="yes" 15613 fi 15614 fi 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630xorg_testset_save_CFLAGS="$CFLAGS" 15631 15632if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15635$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15636if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15637 $as_echo_n "(cached) " >&6 15638else 15639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15640/* end confdefs.h. */ 15641int i; 15642_ACEOF 15643if ac_fn_c_try_compile "$LINENO"; then : 15644 xorg_cv_cc_flag_unknown_warning_option=yes 15645else 15646 xorg_cv_cc_flag_unknown_warning_option=no 15647fi 15648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15649fi 15650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15651$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15653 CFLAGS="$xorg_testset_save_CFLAGS" 15654fi 15655 15656if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15659 fi 15660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15662$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15663if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15664 $as_echo_n "(cached) " >&6 15665else 15666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15667/* end confdefs.h. */ 15668int i; 15669_ACEOF 15670if ac_fn_c_try_compile "$LINENO"; then : 15671 xorg_cv_cc_flag_unused_command_line_argument=yes 15672else 15673 xorg_cv_cc_flag_unused_command_line_argument=no 15674fi 15675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15676fi 15677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15678$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15680 CFLAGS="$xorg_testset_save_CFLAGS" 15681fi 15682 15683found="no" 15684 15685 if test $found = "no" ; then 15686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15688 fi 15689 15690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15692 fi 15693 15694 CFLAGS="$CFLAGS -Werror=sequence-point" 15695 15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15697$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15698 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15699 if eval \${$cacheid+:} false; then : 15700 $as_echo_n "(cached) " >&6 15701else 15702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15703/* end confdefs.h. */ 15704int i; 15705int 15706main () 15707{ 15708 15709 ; 15710 return 0; 15711} 15712_ACEOF 15713if ac_fn_c_try_link "$LINENO"; then : 15714 eval $cacheid=yes 15715else 15716 eval $cacheid=no 15717fi 15718rm -f core conftest.err conftest.$ac_objext \ 15719 conftest$ac_exeext conftest.$ac_ext 15720fi 15721 15722 15723 CFLAGS="$xorg_testset_save_CFLAGS" 15724 15725 eval supported=\$$cacheid 15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15727$as_echo "$supported" >&6; } 15728 if test "$supported" = "yes" ; then 15729 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15730 found="yes" 15731 fi 15732 fi 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748xorg_testset_save_CFLAGS="$CFLAGS" 15749 15750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15753$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15754if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15755 $as_echo_n "(cached) " >&6 15756else 15757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15758/* end confdefs.h. */ 15759int i; 15760_ACEOF 15761if ac_fn_c_try_compile "$LINENO"; then : 15762 xorg_cv_cc_flag_unknown_warning_option=yes 15763else 15764 xorg_cv_cc_flag_unknown_warning_option=no 15765fi 15766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15767fi 15768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15769$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15771 CFLAGS="$xorg_testset_save_CFLAGS" 15772fi 15773 15774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15777 fi 15778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15780$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15781if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15782 $as_echo_n "(cached) " >&6 15783else 15784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15785/* end confdefs.h. */ 15786int i; 15787_ACEOF 15788if ac_fn_c_try_compile "$LINENO"; then : 15789 xorg_cv_cc_flag_unused_command_line_argument=yes 15790else 15791 xorg_cv_cc_flag_unused_command_line_argument=no 15792fi 15793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15794fi 15795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15796$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15798 CFLAGS="$xorg_testset_save_CFLAGS" 15799fi 15800 15801found="no" 15802 15803 if test $found = "no" ; then 15804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15806 fi 15807 15808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15810 fi 15811 15812 CFLAGS="$CFLAGS -Werror=return-type" 15813 15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15815$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15816 cacheid=xorg_cv_cc_flag__Werror_return_type 15817 if eval \${$cacheid+:} false; then : 15818 $as_echo_n "(cached) " >&6 15819else 15820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15821/* end confdefs.h. */ 15822int i; 15823int 15824main () 15825{ 15826 15827 ; 15828 return 0; 15829} 15830_ACEOF 15831if ac_fn_c_try_link "$LINENO"; then : 15832 eval $cacheid=yes 15833else 15834 eval $cacheid=no 15835fi 15836rm -f core conftest.err conftest.$ac_objext \ 15837 conftest$ac_exeext conftest.$ac_ext 15838fi 15839 15840 15841 CFLAGS="$xorg_testset_save_CFLAGS" 15842 15843 eval supported=\$$cacheid 15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15845$as_echo "$supported" >&6; } 15846 if test "$supported" = "yes" ; then 15847 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15848 found="yes" 15849 fi 15850 fi 15851 15852 if test $found = "no" ; then 15853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15855 fi 15856 15857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15859 fi 15860 15861 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15862 15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15864$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15865 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15866 if eval \${$cacheid+:} false; then : 15867 $as_echo_n "(cached) " >&6 15868else 15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15870/* end confdefs.h. */ 15871int i; 15872int 15873main () 15874{ 15875 15876 ; 15877 return 0; 15878} 15879_ACEOF 15880if ac_fn_c_try_link "$LINENO"; then : 15881 eval $cacheid=yes 15882else 15883 eval $cacheid=no 15884fi 15885rm -f core conftest.err conftest.$ac_objext \ 15886 conftest$ac_exeext conftest.$ac_ext 15887fi 15888 15889 15890 CFLAGS="$xorg_testset_save_CFLAGS" 15891 15892 eval supported=\$$cacheid 15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15894$as_echo "$supported" >&6; } 15895 if test "$supported" = "yes" ; then 15896 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15897 found="yes" 15898 fi 15899 fi 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915xorg_testset_save_CFLAGS="$CFLAGS" 15916 15917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15920$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15921if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15922 $as_echo_n "(cached) " >&6 15923else 15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15925/* end confdefs.h. */ 15926int i; 15927_ACEOF 15928if ac_fn_c_try_compile "$LINENO"; then : 15929 xorg_cv_cc_flag_unknown_warning_option=yes 15930else 15931 xorg_cv_cc_flag_unknown_warning_option=no 15932fi 15933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15934fi 15935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15936$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15937 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15938 CFLAGS="$xorg_testset_save_CFLAGS" 15939fi 15940 15941if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15944 fi 15945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15947$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15948if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15949 $as_echo_n "(cached) " >&6 15950else 15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15952/* end confdefs.h. */ 15953int i; 15954_ACEOF 15955if ac_fn_c_try_compile "$LINENO"; then : 15956 xorg_cv_cc_flag_unused_command_line_argument=yes 15957else 15958 xorg_cv_cc_flag_unused_command_line_argument=no 15959fi 15960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15961fi 15962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15963$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15965 CFLAGS="$xorg_testset_save_CFLAGS" 15966fi 15967 15968found="no" 15969 15970 if test $found = "no" ; then 15971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15973 fi 15974 15975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15977 fi 15978 15979 CFLAGS="$CFLAGS -Werror=trigraphs" 15980 15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15982$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15983 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15984 if eval \${$cacheid+:} false; then : 15985 $as_echo_n "(cached) " >&6 15986else 15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15988/* end confdefs.h. */ 15989int i; 15990int 15991main () 15992{ 15993 15994 ; 15995 return 0; 15996} 15997_ACEOF 15998if ac_fn_c_try_link "$LINENO"; then : 15999 eval $cacheid=yes 16000else 16001 eval $cacheid=no 16002fi 16003rm -f core conftest.err conftest.$ac_objext \ 16004 conftest$ac_exeext conftest.$ac_ext 16005fi 16006 16007 16008 CFLAGS="$xorg_testset_save_CFLAGS" 16009 16010 eval supported=\$$cacheid 16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16012$as_echo "$supported" >&6; } 16013 if test "$supported" = "yes" ; then 16014 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16015 found="yes" 16016 fi 16017 fi 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033xorg_testset_save_CFLAGS="$CFLAGS" 16034 16035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16039if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16040 $as_echo_n "(cached) " >&6 16041else 16042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16043/* end confdefs.h. */ 16044int i; 16045_ACEOF 16046if ac_fn_c_try_compile "$LINENO"; then : 16047 xorg_cv_cc_flag_unknown_warning_option=yes 16048else 16049 xorg_cv_cc_flag_unknown_warning_option=no 16050fi 16051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16052fi 16053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16054$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16056 CFLAGS="$xorg_testset_save_CFLAGS" 16057fi 16058 16059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16062 fi 16063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16065$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16066if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16067 $as_echo_n "(cached) " >&6 16068else 16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16070/* end confdefs.h. */ 16071int i; 16072_ACEOF 16073if ac_fn_c_try_compile "$LINENO"; then : 16074 xorg_cv_cc_flag_unused_command_line_argument=yes 16075else 16076 xorg_cv_cc_flag_unused_command_line_argument=no 16077fi 16078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16079fi 16080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16081$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16083 CFLAGS="$xorg_testset_save_CFLAGS" 16084fi 16085 16086found="no" 16087 16088 if test $found = "no" ; then 16089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16091 fi 16092 16093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16095 fi 16096 16097 CFLAGS="$CFLAGS -Werror=array-bounds" 16098 16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16100$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 16101 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16102 if eval \${$cacheid+:} false; then : 16103 $as_echo_n "(cached) " >&6 16104else 16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16106/* end confdefs.h. */ 16107int i; 16108int 16109main () 16110{ 16111 16112 ; 16113 return 0; 16114} 16115_ACEOF 16116if ac_fn_c_try_link "$LINENO"; then : 16117 eval $cacheid=yes 16118else 16119 eval $cacheid=no 16120fi 16121rm -f core conftest.err conftest.$ac_objext \ 16122 conftest$ac_exeext conftest.$ac_ext 16123fi 16124 16125 16126 CFLAGS="$xorg_testset_save_CFLAGS" 16127 16128 eval supported=\$$cacheid 16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16130$as_echo "$supported" >&6; } 16131 if test "$supported" = "yes" ; then 16132 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16133 found="yes" 16134 fi 16135 fi 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151xorg_testset_save_CFLAGS="$CFLAGS" 16152 16153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16158 $as_echo_n "(cached) " >&6 16159else 16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16161/* end confdefs.h. */ 16162int i; 16163_ACEOF 16164if ac_fn_c_try_compile "$LINENO"; then : 16165 xorg_cv_cc_flag_unknown_warning_option=yes 16166else 16167 xorg_cv_cc_flag_unknown_warning_option=no 16168fi 16169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16170fi 16171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16174 CFLAGS="$xorg_testset_save_CFLAGS" 16175fi 16176 16177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16180 fi 16181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16185 $as_echo_n "(cached) " >&6 16186else 16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16188/* end confdefs.h. */ 16189int i; 16190_ACEOF 16191if ac_fn_c_try_compile "$LINENO"; then : 16192 xorg_cv_cc_flag_unused_command_line_argument=yes 16193else 16194 xorg_cv_cc_flag_unused_command_line_argument=no 16195fi 16196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16197fi 16198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16201 CFLAGS="$xorg_testset_save_CFLAGS" 16202fi 16203 16204found="no" 16205 16206 if test $found = "no" ; then 16207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16209 fi 16210 16211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16213 fi 16214 16215 CFLAGS="$CFLAGS -Werror=write-strings" 16216 16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16218$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 16219 cacheid=xorg_cv_cc_flag__Werror_write_strings 16220 if eval \${$cacheid+:} false; then : 16221 $as_echo_n "(cached) " >&6 16222else 16223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16224/* end confdefs.h. */ 16225int i; 16226int 16227main () 16228{ 16229 16230 ; 16231 return 0; 16232} 16233_ACEOF 16234if ac_fn_c_try_link "$LINENO"; then : 16235 eval $cacheid=yes 16236else 16237 eval $cacheid=no 16238fi 16239rm -f core conftest.err conftest.$ac_objext \ 16240 conftest$ac_exeext conftest.$ac_ext 16241fi 16242 16243 16244 CFLAGS="$xorg_testset_save_CFLAGS" 16245 16246 eval supported=\$$cacheid 16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16248$as_echo "$supported" >&6; } 16249 if test "$supported" = "yes" ; then 16250 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16251 found="yes" 16252 fi 16253 fi 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269xorg_testset_save_CFLAGS="$CFLAGS" 16270 16271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16276 $as_echo_n "(cached) " >&6 16277else 16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16279/* end confdefs.h. */ 16280int i; 16281_ACEOF 16282if ac_fn_c_try_compile "$LINENO"; then : 16283 xorg_cv_cc_flag_unknown_warning_option=yes 16284else 16285 xorg_cv_cc_flag_unknown_warning_option=no 16286fi 16287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16288fi 16289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16292 CFLAGS="$xorg_testset_save_CFLAGS" 16293fi 16294 16295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16298 fi 16299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16303 $as_echo_n "(cached) " >&6 16304else 16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16306/* end confdefs.h. */ 16307int i; 16308_ACEOF 16309if ac_fn_c_try_compile "$LINENO"; then : 16310 xorg_cv_cc_flag_unused_command_line_argument=yes 16311else 16312 xorg_cv_cc_flag_unused_command_line_argument=no 16313fi 16314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16315fi 16316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16319 CFLAGS="$xorg_testset_save_CFLAGS" 16320fi 16321 16322found="no" 16323 16324 if test $found = "no" ; then 16325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16327 fi 16328 16329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16331 fi 16332 16333 CFLAGS="$CFLAGS -Werror=address" 16334 16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16336$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 16337 cacheid=xorg_cv_cc_flag__Werror_address 16338 if eval \${$cacheid+:} false; then : 16339 $as_echo_n "(cached) " >&6 16340else 16341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16342/* end confdefs.h. */ 16343int i; 16344int 16345main () 16346{ 16347 16348 ; 16349 return 0; 16350} 16351_ACEOF 16352if ac_fn_c_try_link "$LINENO"; then : 16353 eval $cacheid=yes 16354else 16355 eval $cacheid=no 16356fi 16357rm -f core conftest.err conftest.$ac_objext \ 16358 conftest$ac_exeext conftest.$ac_ext 16359fi 16360 16361 16362 CFLAGS="$xorg_testset_save_CFLAGS" 16363 16364 eval supported=\$$cacheid 16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16366$as_echo "$supported" >&6; } 16367 if test "$supported" = "yes" ; then 16368 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16369 found="yes" 16370 fi 16371 fi 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387xorg_testset_save_CFLAGS="$CFLAGS" 16388 16389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16394 $as_echo_n "(cached) " >&6 16395else 16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16397/* end confdefs.h. */ 16398int i; 16399_ACEOF 16400if ac_fn_c_try_compile "$LINENO"; then : 16401 xorg_cv_cc_flag_unknown_warning_option=yes 16402else 16403 xorg_cv_cc_flag_unknown_warning_option=no 16404fi 16405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16406fi 16407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16410 CFLAGS="$xorg_testset_save_CFLAGS" 16411fi 16412 16413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16416 fi 16417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16421 $as_echo_n "(cached) " >&6 16422else 16423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16424/* end confdefs.h. */ 16425int i; 16426_ACEOF 16427if ac_fn_c_try_compile "$LINENO"; then : 16428 xorg_cv_cc_flag_unused_command_line_argument=yes 16429else 16430 xorg_cv_cc_flag_unused_command_line_argument=no 16431fi 16432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16433fi 16434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16437 CFLAGS="$xorg_testset_save_CFLAGS" 16438fi 16439 16440found="no" 16441 16442 if test $found = "no" ; then 16443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16445 fi 16446 16447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16449 fi 16450 16451 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16452 16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16454$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16455 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16456 if eval \${$cacheid+:} false; then : 16457 $as_echo_n "(cached) " >&6 16458else 16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16460/* end confdefs.h. */ 16461int i; 16462int 16463main () 16464{ 16465 16466 ; 16467 return 0; 16468} 16469_ACEOF 16470if ac_fn_c_try_link "$LINENO"; then : 16471 eval $cacheid=yes 16472else 16473 eval $cacheid=no 16474fi 16475rm -f core conftest.err conftest.$ac_objext \ 16476 conftest$ac_exeext conftest.$ac_ext 16477fi 16478 16479 16480 CFLAGS="$xorg_testset_save_CFLAGS" 16481 16482 eval supported=\$$cacheid 16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16484$as_echo "$supported" >&6; } 16485 if test "$supported" = "yes" ; then 16486 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16487 found="yes" 16488 fi 16489 fi 16490 16491 if test $found = "no" ; then 16492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16494 fi 16495 16496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16498 fi 16499 16500 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16501 16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16503$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16504 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16505 if eval \${$cacheid+:} false; then : 16506 $as_echo_n "(cached) " >&6 16507else 16508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16509/* end confdefs.h. */ 16510int i; 16511int 16512main () 16513{ 16514 16515 ; 16516 return 0; 16517} 16518_ACEOF 16519if ac_fn_c_try_link "$LINENO"; then : 16520 eval $cacheid=yes 16521else 16522 eval $cacheid=no 16523fi 16524rm -f core conftest.err conftest.$ac_objext \ 16525 conftest$ac_exeext conftest.$ac_ext 16526fi 16527 16528 16529 CFLAGS="$xorg_testset_save_CFLAGS" 16530 16531 eval supported=\$$cacheid 16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16533$as_echo "$supported" >&6; } 16534 if test "$supported" = "yes" ; then 16535 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16536 found="yes" 16537 fi 16538 fi 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554xorg_testset_save_CFLAGS="$CFLAGS" 16555 16556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16561 $as_echo_n "(cached) " >&6 16562else 16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16564/* end confdefs.h. */ 16565int i; 16566_ACEOF 16567if ac_fn_c_try_compile "$LINENO"; then : 16568 xorg_cv_cc_flag_unknown_warning_option=yes 16569else 16570 xorg_cv_cc_flag_unknown_warning_option=no 16571fi 16572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16573fi 16574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16577 CFLAGS="$xorg_testset_save_CFLAGS" 16578fi 16579 16580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16583 fi 16584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16588 $as_echo_n "(cached) " >&6 16589else 16590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16591/* end confdefs.h. */ 16592int i; 16593_ACEOF 16594if ac_fn_c_try_compile "$LINENO"; then : 16595 xorg_cv_cc_flag_unused_command_line_argument=yes 16596else 16597 xorg_cv_cc_flag_unused_command_line_argument=no 16598fi 16599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16600fi 16601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16604 CFLAGS="$xorg_testset_save_CFLAGS" 16605fi 16606 16607found="no" 16608 16609 if test $found = "no" ; then 16610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16612 fi 16613 16614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16616 fi 16617 16618 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16619 16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16621$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16622 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16623 if eval \${$cacheid+:} false; then : 16624 $as_echo_n "(cached) " >&6 16625else 16626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16627/* end confdefs.h. */ 16628int i; 16629int 16630main () 16631{ 16632 16633 ; 16634 return 0; 16635} 16636_ACEOF 16637if ac_fn_c_try_link "$LINENO"; then : 16638 eval $cacheid=yes 16639else 16640 eval $cacheid=no 16641fi 16642rm -f core conftest.err conftest.$ac_objext \ 16643 conftest$ac_exeext conftest.$ac_ext 16644fi 16645 16646 16647 CFLAGS="$xorg_testset_save_CFLAGS" 16648 16649 eval supported=\$$cacheid 16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16651$as_echo "$supported" >&6; } 16652 if test "$supported" = "yes" ; then 16653 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16654 found="yes" 16655 fi 16656 fi 16657 16658 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16659else 16660{ $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 16661$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;} 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675xorg_testset_save_CFLAGS="$CFLAGS" 16676 16677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16682 $as_echo_n "(cached) " >&6 16683else 16684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16685/* end confdefs.h. */ 16686int i; 16687_ACEOF 16688if ac_fn_c_try_compile "$LINENO"; then : 16689 xorg_cv_cc_flag_unknown_warning_option=yes 16690else 16691 xorg_cv_cc_flag_unknown_warning_option=no 16692fi 16693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16694fi 16695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16698 CFLAGS="$xorg_testset_save_CFLAGS" 16699fi 16700 16701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16704 fi 16705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16709 $as_echo_n "(cached) " >&6 16710else 16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16712/* end confdefs.h. */ 16713int i; 16714_ACEOF 16715if ac_fn_c_try_compile "$LINENO"; then : 16716 xorg_cv_cc_flag_unused_command_line_argument=yes 16717else 16718 xorg_cv_cc_flag_unused_command_line_argument=no 16719fi 16720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16721fi 16722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16725 CFLAGS="$xorg_testset_save_CFLAGS" 16726fi 16727 16728found="no" 16729 16730 if test $found = "no" ; then 16731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16733 fi 16734 16735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16737 fi 16738 16739 CFLAGS="$CFLAGS -Wimplicit" 16740 16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16742$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16743 cacheid=xorg_cv_cc_flag__Wimplicit 16744 if eval \${$cacheid+:} false; then : 16745 $as_echo_n "(cached) " >&6 16746else 16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16748/* end confdefs.h. */ 16749int i; 16750int 16751main () 16752{ 16753 16754 ; 16755 return 0; 16756} 16757_ACEOF 16758if ac_fn_c_try_link "$LINENO"; then : 16759 eval $cacheid=yes 16760else 16761 eval $cacheid=no 16762fi 16763rm -f core conftest.err conftest.$ac_objext \ 16764 conftest$ac_exeext conftest.$ac_ext 16765fi 16766 16767 16768 CFLAGS="$xorg_testset_save_CFLAGS" 16769 16770 eval supported=\$$cacheid 16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16772$as_echo "$supported" >&6; } 16773 if test "$supported" = "yes" ; then 16774 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16775 found="yes" 16776 fi 16777 fi 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793xorg_testset_save_CFLAGS="$CFLAGS" 16794 16795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16800 $as_echo_n "(cached) " >&6 16801else 16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16803/* end confdefs.h. */ 16804int i; 16805_ACEOF 16806if ac_fn_c_try_compile "$LINENO"; then : 16807 xorg_cv_cc_flag_unknown_warning_option=yes 16808else 16809 xorg_cv_cc_flag_unknown_warning_option=no 16810fi 16811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16812fi 16813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16816 CFLAGS="$xorg_testset_save_CFLAGS" 16817fi 16818 16819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16822 fi 16823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16827 $as_echo_n "(cached) " >&6 16828else 16829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16830/* end confdefs.h. */ 16831int i; 16832_ACEOF 16833if ac_fn_c_try_compile "$LINENO"; then : 16834 xorg_cv_cc_flag_unused_command_line_argument=yes 16835else 16836 xorg_cv_cc_flag_unused_command_line_argument=no 16837fi 16838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16839fi 16840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16843 CFLAGS="$xorg_testset_save_CFLAGS" 16844fi 16845 16846found="no" 16847 16848 if test $found = "no" ; then 16849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16851 fi 16852 16853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16855 fi 16856 16857 CFLAGS="$CFLAGS -Wnonnull" 16858 16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16860$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16861 cacheid=xorg_cv_cc_flag__Wnonnull 16862 if eval \${$cacheid+:} false; then : 16863 $as_echo_n "(cached) " >&6 16864else 16865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16866/* end confdefs.h. */ 16867int i; 16868int 16869main () 16870{ 16871 16872 ; 16873 return 0; 16874} 16875_ACEOF 16876if ac_fn_c_try_link "$LINENO"; then : 16877 eval $cacheid=yes 16878else 16879 eval $cacheid=no 16880fi 16881rm -f core conftest.err conftest.$ac_objext \ 16882 conftest$ac_exeext conftest.$ac_ext 16883fi 16884 16885 16886 CFLAGS="$xorg_testset_save_CFLAGS" 16887 16888 eval supported=\$$cacheid 16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16890$as_echo "$supported" >&6; } 16891 if test "$supported" = "yes" ; then 16892 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16893 found="yes" 16894 fi 16895 fi 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911xorg_testset_save_CFLAGS="$CFLAGS" 16912 16913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16918 $as_echo_n "(cached) " >&6 16919else 16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16921/* end confdefs.h. */ 16922int i; 16923_ACEOF 16924if ac_fn_c_try_compile "$LINENO"; then : 16925 xorg_cv_cc_flag_unknown_warning_option=yes 16926else 16927 xorg_cv_cc_flag_unknown_warning_option=no 16928fi 16929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16930fi 16931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16934 CFLAGS="$xorg_testset_save_CFLAGS" 16935fi 16936 16937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16940 fi 16941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16945 $as_echo_n "(cached) " >&6 16946else 16947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16948/* end confdefs.h. */ 16949int i; 16950_ACEOF 16951if ac_fn_c_try_compile "$LINENO"; then : 16952 xorg_cv_cc_flag_unused_command_line_argument=yes 16953else 16954 xorg_cv_cc_flag_unused_command_line_argument=no 16955fi 16956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16957fi 16958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16961 CFLAGS="$xorg_testset_save_CFLAGS" 16962fi 16963 16964found="no" 16965 16966 if test $found = "no" ; then 16967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16969 fi 16970 16971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16973 fi 16974 16975 CFLAGS="$CFLAGS -Winit-self" 16976 16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16978$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16979 cacheid=xorg_cv_cc_flag__Winit_self 16980 if eval \${$cacheid+:} false; then : 16981 $as_echo_n "(cached) " >&6 16982else 16983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16984/* end confdefs.h. */ 16985int i; 16986int 16987main () 16988{ 16989 16990 ; 16991 return 0; 16992} 16993_ACEOF 16994if ac_fn_c_try_link "$LINENO"; then : 16995 eval $cacheid=yes 16996else 16997 eval $cacheid=no 16998fi 16999rm -f core conftest.err conftest.$ac_objext \ 17000 conftest$ac_exeext conftest.$ac_ext 17001fi 17002 17003 17004 CFLAGS="$xorg_testset_save_CFLAGS" 17005 17006 eval supported=\$$cacheid 17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17008$as_echo "$supported" >&6; } 17009 if test "$supported" = "yes" ; then 17010 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17011 found="yes" 17012 fi 17013 fi 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029xorg_testset_save_CFLAGS="$CFLAGS" 17030 17031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17036 $as_echo_n "(cached) " >&6 17037else 17038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17039/* end confdefs.h. */ 17040int i; 17041_ACEOF 17042if ac_fn_c_try_compile "$LINENO"; then : 17043 xorg_cv_cc_flag_unknown_warning_option=yes 17044else 17045 xorg_cv_cc_flag_unknown_warning_option=no 17046fi 17047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17048fi 17049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17052 CFLAGS="$xorg_testset_save_CFLAGS" 17053fi 17054 17055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17058 fi 17059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17063 $as_echo_n "(cached) " >&6 17064else 17065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17066/* end confdefs.h. */ 17067int i; 17068_ACEOF 17069if ac_fn_c_try_compile "$LINENO"; then : 17070 xorg_cv_cc_flag_unused_command_line_argument=yes 17071else 17072 xorg_cv_cc_flag_unused_command_line_argument=no 17073fi 17074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17075fi 17076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17079 CFLAGS="$xorg_testset_save_CFLAGS" 17080fi 17081 17082found="no" 17083 17084 if test $found = "no" ; then 17085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17087 fi 17088 17089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17091 fi 17092 17093 CFLAGS="$CFLAGS -Wmain" 17094 17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17096$as_echo_n "checking if $CC supports -Wmain... " >&6; } 17097 cacheid=xorg_cv_cc_flag__Wmain 17098 if eval \${$cacheid+:} false; then : 17099 $as_echo_n "(cached) " >&6 17100else 17101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17102/* end confdefs.h. */ 17103int i; 17104int 17105main () 17106{ 17107 17108 ; 17109 return 0; 17110} 17111_ACEOF 17112if ac_fn_c_try_link "$LINENO"; then : 17113 eval $cacheid=yes 17114else 17115 eval $cacheid=no 17116fi 17117rm -f core conftest.err conftest.$ac_objext \ 17118 conftest$ac_exeext conftest.$ac_ext 17119fi 17120 17121 17122 CFLAGS="$xorg_testset_save_CFLAGS" 17123 17124 eval supported=\$$cacheid 17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17126$as_echo "$supported" >&6; } 17127 if test "$supported" = "yes" ; then 17128 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17129 found="yes" 17130 fi 17131 fi 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147xorg_testset_save_CFLAGS="$CFLAGS" 17148 17149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17153if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17154 $as_echo_n "(cached) " >&6 17155else 17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17157/* end confdefs.h. */ 17158int i; 17159_ACEOF 17160if ac_fn_c_try_compile "$LINENO"; then : 17161 xorg_cv_cc_flag_unknown_warning_option=yes 17162else 17163 xorg_cv_cc_flag_unknown_warning_option=no 17164fi 17165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17166fi 17167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17170 CFLAGS="$xorg_testset_save_CFLAGS" 17171fi 17172 17173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17176 fi 17177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17180if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17181 $as_echo_n "(cached) " >&6 17182else 17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17184/* end confdefs.h. */ 17185int i; 17186_ACEOF 17187if ac_fn_c_try_compile "$LINENO"; then : 17188 xorg_cv_cc_flag_unused_command_line_argument=yes 17189else 17190 xorg_cv_cc_flag_unused_command_line_argument=no 17191fi 17192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17193fi 17194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17197 CFLAGS="$xorg_testset_save_CFLAGS" 17198fi 17199 17200found="no" 17201 17202 if test $found = "no" ; then 17203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17205 fi 17206 17207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17209 fi 17210 17211 CFLAGS="$CFLAGS -Wmissing-braces" 17212 17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17214$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 17215 cacheid=xorg_cv_cc_flag__Wmissing_braces 17216 if eval \${$cacheid+:} false; then : 17217 $as_echo_n "(cached) " >&6 17218else 17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17220/* end confdefs.h. */ 17221int i; 17222int 17223main () 17224{ 17225 17226 ; 17227 return 0; 17228} 17229_ACEOF 17230if ac_fn_c_try_link "$LINENO"; then : 17231 eval $cacheid=yes 17232else 17233 eval $cacheid=no 17234fi 17235rm -f core conftest.err conftest.$ac_objext \ 17236 conftest$ac_exeext conftest.$ac_ext 17237fi 17238 17239 17240 CFLAGS="$xorg_testset_save_CFLAGS" 17241 17242 eval supported=\$$cacheid 17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17244$as_echo "$supported" >&6; } 17245 if test "$supported" = "yes" ; then 17246 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17247 found="yes" 17248 fi 17249 fi 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265xorg_testset_save_CFLAGS="$CFLAGS" 17266 17267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17270$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17271if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17272 $as_echo_n "(cached) " >&6 17273else 17274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17275/* end confdefs.h. */ 17276int i; 17277_ACEOF 17278if ac_fn_c_try_compile "$LINENO"; then : 17279 xorg_cv_cc_flag_unknown_warning_option=yes 17280else 17281 xorg_cv_cc_flag_unknown_warning_option=no 17282fi 17283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17284fi 17285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17286$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17288 CFLAGS="$xorg_testset_save_CFLAGS" 17289fi 17290 17291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17294 fi 17295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17297$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17298if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17299 $as_echo_n "(cached) " >&6 17300else 17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17302/* end confdefs.h. */ 17303int i; 17304_ACEOF 17305if ac_fn_c_try_compile "$LINENO"; then : 17306 xorg_cv_cc_flag_unused_command_line_argument=yes 17307else 17308 xorg_cv_cc_flag_unused_command_line_argument=no 17309fi 17310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17311fi 17312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17313$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17315 CFLAGS="$xorg_testset_save_CFLAGS" 17316fi 17317 17318found="no" 17319 17320 if test $found = "no" ; then 17321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17323 fi 17324 17325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17327 fi 17328 17329 CFLAGS="$CFLAGS -Wsequence-point" 17330 17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17332$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 17333 cacheid=xorg_cv_cc_flag__Wsequence_point 17334 if eval \${$cacheid+:} false; then : 17335 $as_echo_n "(cached) " >&6 17336else 17337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17338/* end confdefs.h. */ 17339int i; 17340int 17341main () 17342{ 17343 17344 ; 17345 return 0; 17346} 17347_ACEOF 17348if ac_fn_c_try_link "$LINENO"; then : 17349 eval $cacheid=yes 17350else 17351 eval $cacheid=no 17352fi 17353rm -f core conftest.err conftest.$ac_objext \ 17354 conftest$ac_exeext conftest.$ac_ext 17355fi 17356 17357 17358 CFLAGS="$xorg_testset_save_CFLAGS" 17359 17360 eval supported=\$$cacheid 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17362$as_echo "$supported" >&6; } 17363 if test "$supported" = "yes" ; then 17364 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17365 found="yes" 17366 fi 17367 fi 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383xorg_testset_save_CFLAGS="$CFLAGS" 17384 17385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17388$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17389if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17390 $as_echo_n "(cached) " >&6 17391else 17392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17393/* end confdefs.h. */ 17394int i; 17395_ACEOF 17396if ac_fn_c_try_compile "$LINENO"; then : 17397 xorg_cv_cc_flag_unknown_warning_option=yes 17398else 17399 xorg_cv_cc_flag_unknown_warning_option=no 17400fi 17401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17402fi 17403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17404$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17406 CFLAGS="$xorg_testset_save_CFLAGS" 17407fi 17408 17409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17412 fi 17413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17415$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17416if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17417 $as_echo_n "(cached) " >&6 17418else 17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17420/* end confdefs.h. */ 17421int i; 17422_ACEOF 17423if ac_fn_c_try_compile "$LINENO"; then : 17424 xorg_cv_cc_flag_unused_command_line_argument=yes 17425else 17426 xorg_cv_cc_flag_unused_command_line_argument=no 17427fi 17428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17429fi 17430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17431$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17433 CFLAGS="$xorg_testset_save_CFLAGS" 17434fi 17435 17436found="no" 17437 17438 if test $found = "no" ; then 17439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17441 fi 17442 17443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17445 fi 17446 17447 CFLAGS="$CFLAGS -Wreturn-type" 17448 17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17450$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 17451 cacheid=xorg_cv_cc_flag__Wreturn_type 17452 if eval \${$cacheid+:} false; then : 17453 $as_echo_n "(cached) " >&6 17454else 17455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17456/* end confdefs.h. */ 17457int i; 17458int 17459main () 17460{ 17461 17462 ; 17463 return 0; 17464} 17465_ACEOF 17466if ac_fn_c_try_link "$LINENO"; then : 17467 eval $cacheid=yes 17468else 17469 eval $cacheid=no 17470fi 17471rm -f core conftest.err conftest.$ac_objext \ 17472 conftest$ac_exeext conftest.$ac_ext 17473fi 17474 17475 17476 CFLAGS="$xorg_testset_save_CFLAGS" 17477 17478 eval supported=\$$cacheid 17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17480$as_echo "$supported" >&6; } 17481 if test "$supported" = "yes" ; then 17482 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17483 found="yes" 17484 fi 17485 fi 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501xorg_testset_save_CFLAGS="$CFLAGS" 17502 17503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17508 $as_echo_n "(cached) " >&6 17509else 17510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17511/* end confdefs.h. */ 17512int i; 17513_ACEOF 17514if ac_fn_c_try_compile "$LINENO"; then : 17515 xorg_cv_cc_flag_unknown_warning_option=yes 17516else 17517 xorg_cv_cc_flag_unknown_warning_option=no 17518fi 17519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17520fi 17521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17524 CFLAGS="$xorg_testset_save_CFLAGS" 17525fi 17526 17527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17530 fi 17531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17535 $as_echo_n "(cached) " >&6 17536else 17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17538/* end confdefs.h. */ 17539int i; 17540_ACEOF 17541if ac_fn_c_try_compile "$LINENO"; then : 17542 xorg_cv_cc_flag_unused_command_line_argument=yes 17543else 17544 xorg_cv_cc_flag_unused_command_line_argument=no 17545fi 17546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17547fi 17548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17551 CFLAGS="$xorg_testset_save_CFLAGS" 17552fi 17553 17554found="no" 17555 17556 if test $found = "no" ; then 17557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17559 fi 17560 17561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17563 fi 17564 17565 CFLAGS="$CFLAGS -Wtrigraphs" 17566 17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17568$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17569 cacheid=xorg_cv_cc_flag__Wtrigraphs 17570 if eval \${$cacheid+:} false; then : 17571 $as_echo_n "(cached) " >&6 17572else 17573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17574/* end confdefs.h. */ 17575int i; 17576int 17577main () 17578{ 17579 17580 ; 17581 return 0; 17582} 17583_ACEOF 17584if ac_fn_c_try_link "$LINENO"; then : 17585 eval $cacheid=yes 17586else 17587 eval $cacheid=no 17588fi 17589rm -f core conftest.err conftest.$ac_objext \ 17590 conftest$ac_exeext conftest.$ac_ext 17591fi 17592 17593 17594 CFLAGS="$xorg_testset_save_CFLAGS" 17595 17596 eval supported=\$$cacheid 17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17598$as_echo "$supported" >&6; } 17599 if test "$supported" = "yes" ; then 17600 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17601 found="yes" 17602 fi 17603 fi 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619xorg_testset_save_CFLAGS="$CFLAGS" 17620 17621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17626 $as_echo_n "(cached) " >&6 17627else 17628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17629/* end confdefs.h. */ 17630int i; 17631_ACEOF 17632if ac_fn_c_try_compile "$LINENO"; then : 17633 xorg_cv_cc_flag_unknown_warning_option=yes 17634else 17635 xorg_cv_cc_flag_unknown_warning_option=no 17636fi 17637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17638fi 17639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17642 CFLAGS="$xorg_testset_save_CFLAGS" 17643fi 17644 17645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17648 fi 17649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17653 $as_echo_n "(cached) " >&6 17654else 17655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17656/* end confdefs.h. */ 17657int i; 17658_ACEOF 17659if ac_fn_c_try_compile "$LINENO"; then : 17660 xorg_cv_cc_flag_unused_command_line_argument=yes 17661else 17662 xorg_cv_cc_flag_unused_command_line_argument=no 17663fi 17664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17665fi 17666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17669 CFLAGS="$xorg_testset_save_CFLAGS" 17670fi 17671 17672found="no" 17673 17674 if test $found = "no" ; then 17675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17677 fi 17678 17679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17681 fi 17682 17683 CFLAGS="$CFLAGS -Warray-bounds" 17684 17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17686$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17687 cacheid=xorg_cv_cc_flag__Warray_bounds 17688 if eval \${$cacheid+:} false; then : 17689 $as_echo_n "(cached) " >&6 17690else 17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17692/* end confdefs.h. */ 17693int i; 17694int 17695main () 17696{ 17697 17698 ; 17699 return 0; 17700} 17701_ACEOF 17702if ac_fn_c_try_link "$LINENO"; then : 17703 eval $cacheid=yes 17704else 17705 eval $cacheid=no 17706fi 17707rm -f core conftest.err conftest.$ac_objext \ 17708 conftest$ac_exeext conftest.$ac_ext 17709fi 17710 17711 17712 CFLAGS="$xorg_testset_save_CFLAGS" 17713 17714 eval supported=\$$cacheid 17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17716$as_echo "$supported" >&6; } 17717 if test "$supported" = "yes" ; then 17718 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17719 found="yes" 17720 fi 17721 fi 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737xorg_testset_save_CFLAGS="$CFLAGS" 17738 17739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17742$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17743if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17744 $as_echo_n "(cached) " >&6 17745else 17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17747/* end confdefs.h. */ 17748int i; 17749_ACEOF 17750if ac_fn_c_try_compile "$LINENO"; then : 17751 xorg_cv_cc_flag_unknown_warning_option=yes 17752else 17753 xorg_cv_cc_flag_unknown_warning_option=no 17754fi 17755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17756fi 17757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17758$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17760 CFLAGS="$xorg_testset_save_CFLAGS" 17761fi 17762 17763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17766 fi 17767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17770if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17771 $as_echo_n "(cached) " >&6 17772else 17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17774/* end confdefs.h. */ 17775int i; 17776_ACEOF 17777if ac_fn_c_try_compile "$LINENO"; then : 17778 xorg_cv_cc_flag_unused_command_line_argument=yes 17779else 17780 xorg_cv_cc_flag_unused_command_line_argument=no 17781fi 17782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17783fi 17784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17785$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17787 CFLAGS="$xorg_testset_save_CFLAGS" 17788fi 17789 17790found="no" 17791 17792 if test $found = "no" ; then 17793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17795 fi 17796 17797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17799 fi 17800 17801 CFLAGS="$CFLAGS -Wwrite-strings" 17802 17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17804$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17805 cacheid=xorg_cv_cc_flag__Wwrite_strings 17806 if eval \${$cacheid+:} false; then : 17807 $as_echo_n "(cached) " >&6 17808else 17809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17810/* end confdefs.h. */ 17811int i; 17812int 17813main () 17814{ 17815 17816 ; 17817 return 0; 17818} 17819_ACEOF 17820if ac_fn_c_try_link "$LINENO"; then : 17821 eval $cacheid=yes 17822else 17823 eval $cacheid=no 17824fi 17825rm -f core conftest.err conftest.$ac_objext \ 17826 conftest$ac_exeext conftest.$ac_ext 17827fi 17828 17829 17830 CFLAGS="$xorg_testset_save_CFLAGS" 17831 17832 eval supported=\$$cacheid 17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17834$as_echo "$supported" >&6; } 17835 if test "$supported" = "yes" ; then 17836 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17837 found="yes" 17838 fi 17839 fi 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855xorg_testset_save_CFLAGS="$CFLAGS" 17856 17857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17862 $as_echo_n "(cached) " >&6 17863else 17864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17865/* end confdefs.h. */ 17866int i; 17867_ACEOF 17868if ac_fn_c_try_compile "$LINENO"; then : 17869 xorg_cv_cc_flag_unknown_warning_option=yes 17870else 17871 xorg_cv_cc_flag_unknown_warning_option=no 17872fi 17873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17874fi 17875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17878 CFLAGS="$xorg_testset_save_CFLAGS" 17879fi 17880 17881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17884 fi 17885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17889 $as_echo_n "(cached) " >&6 17890else 17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17892/* end confdefs.h. */ 17893int i; 17894_ACEOF 17895if ac_fn_c_try_compile "$LINENO"; then : 17896 xorg_cv_cc_flag_unused_command_line_argument=yes 17897else 17898 xorg_cv_cc_flag_unused_command_line_argument=no 17899fi 17900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17901fi 17902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17905 CFLAGS="$xorg_testset_save_CFLAGS" 17906fi 17907 17908found="no" 17909 17910 if test $found = "no" ; then 17911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17913 fi 17914 17915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17917 fi 17918 17919 CFLAGS="$CFLAGS -Waddress" 17920 17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17922$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17923 cacheid=xorg_cv_cc_flag__Waddress 17924 if eval \${$cacheid+:} false; then : 17925 $as_echo_n "(cached) " >&6 17926else 17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17928/* end confdefs.h. */ 17929int i; 17930int 17931main () 17932{ 17933 17934 ; 17935 return 0; 17936} 17937_ACEOF 17938if ac_fn_c_try_link "$LINENO"; then : 17939 eval $cacheid=yes 17940else 17941 eval $cacheid=no 17942fi 17943rm -f core conftest.err conftest.$ac_objext \ 17944 conftest$ac_exeext conftest.$ac_ext 17945fi 17946 17947 17948 CFLAGS="$xorg_testset_save_CFLAGS" 17949 17950 eval supported=\$$cacheid 17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17952$as_echo "$supported" >&6; } 17953 if test "$supported" = "yes" ; then 17954 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17955 found="yes" 17956 fi 17957 fi 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973xorg_testset_save_CFLAGS="$CFLAGS" 17974 17975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17980 $as_echo_n "(cached) " >&6 17981else 17982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17983/* end confdefs.h. */ 17984int i; 17985_ACEOF 17986if ac_fn_c_try_compile "$LINENO"; then : 17987 xorg_cv_cc_flag_unknown_warning_option=yes 17988else 17989 xorg_cv_cc_flag_unknown_warning_option=no 17990fi 17991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17992fi 17993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17996 CFLAGS="$xorg_testset_save_CFLAGS" 17997fi 17998 17999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18002 fi 18003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18007 $as_echo_n "(cached) " >&6 18008else 18009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18010/* end confdefs.h. */ 18011int i; 18012_ACEOF 18013if ac_fn_c_try_compile "$LINENO"; then : 18014 xorg_cv_cc_flag_unused_command_line_argument=yes 18015else 18016 xorg_cv_cc_flag_unused_command_line_argument=no 18017fi 18018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18019fi 18020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18023 CFLAGS="$xorg_testset_save_CFLAGS" 18024fi 18025 18026found="no" 18027 18028 if test $found = "no" ; then 18029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18031 fi 18032 18033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18035 fi 18036 18037 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18038 18039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18040$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18041 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18042 if eval \${$cacheid+:} false; then : 18043 $as_echo_n "(cached) " >&6 18044else 18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18046/* end confdefs.h. */ 18047int i; 18048int 18049main () 18050{ 18051 18052 ; 18053 return 0; 18054} 18055_ACEOF 18056if ac_fn_c_try_link "$LINENO"; then : 18057 eval $cacheid=yes 18058else 18059 eval $cacheid=no 18060fi 18061rm -f core conftest.err conftest.$ac_objext \ 18062 conftest$ac_exeext conftest.$ac_ext 18063fi 18064 18065 18066 CFLAGS="$xorg_testset_save_CFLAGS" 18067 18068 eval supported=\$$cacheid 18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18070$as_echo "$supported" >&6; } 18071 if test "$supported" = "yes" ; then 18072 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18073 found="yes" 18074 fi 18075 fi 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091xorg_testset_save_CFLAGS="$CFLAGS" 18092 18093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18098 $as_echo_n "(cached) " >&6 18099else 18100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18101/* end confdefs.h. */ 18102int i; 18103_ACEOF 18104if ac_fn_c_try_compile "$LINENO"; then : 18105 xorg_cv_cc_flag_unknown_warning_option=yes 18106else 18107 xorg_cv_cc_flag_unknown_warning_option=no 18108fi 18109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18110fi 18111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18114 CFLAGS="$xorg_testset_save_CFLAGS" 18115fi 18116 18117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18120 fi 18121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18125 $as_echo_n "(cached) " >&6 18126else 18127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18128/* end confdefs.h. */ 18129int i; 18130_ACEOF 18131if ac_fn_c_try_compile "$LINENO"; then : 18132 xorg_cv_cc_flag_unused_command_line_argument=yes 18133else 18134 xorg_cv_cc_flag_unused_command_line_argument=no 18135fi 18136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18137fi 18138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18141 CFLAGS="$xorg_testset_save_CFLAGS" 18142fi 18143 18144found="no" 18145 18146 if test $found = "no" ; then 18147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18149 fi 18150 18151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18153 fi 18154 18155 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18156 18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18158$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18159 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18160 if eval \${$cacheid+:} false; then : 18161 $as_echo_n "(cached) " >&6 18162else 18163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18164/* end confdefs.h. */ 18165int i; 18166int 18167main () 18168{ 18169 18170 ; 18171 return 0; 18172} 18173_ACEOF 18174if ac_fn_c_try_link "$LINENO"; then : 18175 eval $cacheid=yes 18176else 18177 eval $cacheid=no 18178fi 18179rm -f core conftest.err conftest.$ac_objext \ 18180 conftest$ac_exeext conftest.$ac_ext 18181fi 18182 18183 18184 CFLAGS="$xorg_testset_save_CFLAGS" 18185 18186 eval supported=\$$cacheid 18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18188$as_echo "$supported" >&6; } 18189 if test "$supported" = "yes" ; then 18190 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18191 found="yes" 18192 fi 18193 fi 18194 18195 18196fi 18197 18198 18199 18200 18201 18202 18203 18204 CWARNFLAGS="$BASE_CFLAGS" 18205 if test "x$GCC" = xyes ; then 18206 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18207 fi 18208 18209 18210 18211 18212 18213 18214 18215 18216# Check whether --enable-strict-compilation was given. 18217if test "${enable_strict_compilation+set}" = set; then : 18218 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18219else 18220 STRICT_COMPILE=no 18221fi 18222 18223 18224 18225 18226 18227 18228STRICT_CFLAGS="" 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242xorg_testset_save_CFLAGS="$CFLAGS" 18243 18244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18247$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18248if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18249 $as_echo_n "(cached) " >&6 18250else 18251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18252/* end confdefs.h. */ 18253int i; 18254_ACEOF 18255if ac_fn_c_try_compile "$LINENO"; then : 18256 xorg_cv_cc_flag_unknown_warning_option=yes 18257else 18258 xorg_cv_cc_flag_unknown_warning_option=no 18259fi 18260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18261fi 18262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18263$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18265 CFLAGS="$xorg_testset_save_CFLAGS" 18266fi 18267 18268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18271 fi 18272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18274$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18275if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18276 $as_echo_n "(cached) " >&6 18277else 18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18279/* end confdefs.h. */ 18280int i; 18281_ACEOF 18282if ac_fn_c_try_compile "$LINENO"; then : 18283 xorg_cv_cc_flag_unused_command_line_argument=yes 18284else 18285 xorg_cv_cc_flag_unused_command_line_argument=no 18286fi 18287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18288fi 18289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18290$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18292 CFLAGS="$xorg_testset_save_CFLAGS" 18293fi 18294 18295found="no" 18296 18297 if test $found = "no" ; then 18298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18300 fi 18301 18302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18304 fi 18305 18306 CFLAGS="$CFLAGS -pedantic" 18307 18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18309$as_echo_n "checking if $CC supports -pedantic... " >&6; } 18310 cacheid=xorg_cv_cc_flag__pedantic 18311 if eval \${$cacheid+:} false; then : 18312 $as_echo_n "(cached) " >&6 18313else 18314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18315/* end confdefs.h. */ 18316int i; 18317int 18318main () 18319{ 18320 18321 ; 18322 return 0; 18323} 18324_ACEOF 18325if ac_fn_c_try_link "$LINENO"; then : 18326 eval $cacheid=yes 18327else 18328 eval $cacheid=no 18329fi 18330rm -f core conftest.err conftest.$ac_objext \ 18331 conftest$ac_exeext conftest.$ac_ext 18332fi 18333 18334 18335 CFLAGS="$xorg_testset_save_CFLAGS" 18336 18337 eval supported=\$$cacheid 18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18339$as_echo "$supported" >&6; } 18340 if test "$supported" = "yes" ; then 18341 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18342 found="yes" 18343 fi 18344 fi 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360xorg_testset_save_CFLAGS="$CFLAGS" 18361 18362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18365$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18366if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18367 $as_echo_n "(cached) " >&6 18368else 18369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18370/* end confdefs.h. */ 18371int i; 18372_ACEOF 18373if ac_fn_c_try_compile "$LINENO"; then : 18374 xorg_cv_cc_flag_unknown_warning_option=yes 18375else 18376 xorg_cv_cc_flag_unknown_warning_option=no 18377fi 18378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18379fi 18380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18381$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18383 CFLAGS="$xorg_testset_save_CFLAGS" 18384fi 18385 18386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18389 fi 18390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18392$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18393if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18394 $as_echo_n "(cached) " >&6 18395else 18396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18397/* end confdefs.h. */ 18398int i; 18399_ACEOF 18400if ac_fn_c_try_compile "$LINENO"; then : 18401 xorg_cv_cc_flag_unused_command_line_argument=yes 18402else 18403 xorg_cv_cc_flag_unused_command_line_argument=no 18404fi 18405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18406fi 18407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18408$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18410 CFLAGS="$xorg_testset_save_CFLAGS" 18411fi 18412 18413found="no" 18414 18415 if test $found = "no" ; then 18416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18418 fi 18419 18420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18422 fi 18423 18424 CFLAGS="$CFLAGS -Werror" 18425 18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18427$as_echo_n "checking if $CC supports -Werror... " >&6; } 18428 cacheid=xorg_cv_cc_flag__Werror 18429 if eval \${$cacheid+:} false; then : 18430 $as_echo_n "(cached) " >&6 18431else 18432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18433/* end confdefs.h. */ 18434int i; 18435int 18436main () 18437{ 18438 18439 ; 18440 return 0; 18441} 18442_ACEOF 18443if ac_fn_c_try_link "$LINENO"; then : 18444 eval $cacheid=yes 18445else 18446 eval $cacheid=no 18447fi 18448rm -f core conftest.err conftest.$ac_objext \ 18449 conftest$ac_exeext conftest.$ac_ext 18450fi 18451 18452 18453 CFLAGS="$xorg_testset_save_CFLAGS" 18454 18455 eval supported=\$$cacheid 18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18457$as_echo "$supported" >&6; } 18458 if test "$supported" = "yes" ; then 18459 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18460 found="yes" 18461 fi 18462 fi 18463 18464 if test $found = "no" ; then 18465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18467 fi 18468 18469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18471 fi 18472 18473 CFLAGS="$CFLAGS -errwarn" 18474 18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18476$as_echo_n "checking if $CC supports -errwarn... " >&6; } 18477 cacheid=xorg_cv_cc_flag__errwarn 18478 if eval \${$cacheid+:} false; then : 18479 $as_echo_n "(cached) " >&6 18480else 18481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18482/* end confdefs.h. */ 18483int i; 18484int 18485main () 18486{ 18487 18488 ; 18489 return 0; 18490} 18491_ACEOF 18492if ac_fn_c_try_link "$LINENO"; then : 18493 eval $cacheid=yes 18494else 18495 eval $cacheid=no 18496fi 18497rm -f core conftest.err conftest.$ac_objext \ 18498 conftest$ac_exeext conftest.$ac_ext 18499fi 18500 18501 18502 CFLAGS="$xorg_testset_save_CFLAGS" 18503 18504 eval supported=\$$cacheid 18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18506$as_echo "$supported" >&6; } 18507 if test "$supported" = "yes" ; then 18508 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18509 found="yes" 18510 fi 18511 fi 18512 18513 18514 18515# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18516# activate it with -Werror, so we add it here explicitly. 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530xorg_testset_save_CFLAGS="$CFLAGS" 18531 18532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18537 $as_echo_n "(cached) " >&6 18538else 18539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18540/* end confdefs.h. */ 18541int i; 18542_ACEOF 18543if ac_fn_c_try_compile "$LINENO"; then : 18544 xorg_cv_cc_flag_unknown_warning_option=yes 18545else 18546 xorg_cv_cc_flag_unknown_warning_option=no 18547fi 18548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18549fi 18550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18553 CFLAGS="$xorg_testset_save_CFLAGS" 18554fi 18555 18556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18559 fi 18560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18564 $as_echo_n "(cached) " >&6 18565else 18566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18567/* end confdefs.h. */ 18568int i; 18569_ACEOF 18570if ac_fn_c_try_compile "$LINENO"; then : 18571 xorg_cv_cc_flag_unused_command_line_argument=yes 18572else 18573 xorg_cv_cc_flag_unused_command_line_argument=no 18574fi 18575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18576fi 18577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18580 CFLAGS="$xorg_testset_save_CFLAGS" 18581fi 18582 18583found="no" 18584 18585 if test $found = "no" ; then 18586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18588 fi 18589 18590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18592 fi 18593 18594 CFLAGS="$CFLAGS -Werror=attributes" 18595 18596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18597$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18598 cacheid=xorg_cv_cc_flag__Werror_attributes 18599 if eval \${$cacheid+:} false; then : 18600 $as_echo_n "(cached) " >&6 18601else 18602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18603/* end confdefs.h. */ 18604int i; 18605int 18606main () 18607{ 18608 18609 ; 18610 return 0; 18611} 18612_ACEOF 18613if ac_fn_c_try_link "$LINENO"; then : 18614 eval $cacheid=yes 18615else 18616 eval $cacheid=no 18617fi 18618rm -f core conftest.err conftest.$ac_objext \ 18619 conftest$ac_exeext conftest.$ac_ext 18620fi 18621 18622 18623 CFLAGS="$xorg_testset_save_CFLAGS" 18624 18625 eval supported=\$$cacheid 18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18627$as_echo "$supported" >&6; } 18628 if test "$supported" = "yes" ; then 18629 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18630 found="yes" 18631 fi 18632 fi 18633 18634 18635 18636if test "x$STRICT_COMPILE" = "xyes"; then 18637 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18638 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18639fi 18640 18641 18642 18643 18644 18645 18646cat >>confdefs.h <<_ACEOF 18647#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18648_ACEOF 18649 18650 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18651 if test "x$PVM" = "x"; then 18652 PVM="0" 18653 fi 18654 18655cat >>confdefs.h <<_ACEOF 18656#define PACKAGE_VERSION_MINOR $PVM 18657_ACEOF 18658 18659 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18660 if test "x$PVP" = "x"; then 18661 PVP="0" 18662 fi 18663 18664cat >>confdefs.h <<_ACEOF 18665#define PACKAGE_VERSION_PATCHLEVEL $PVP 18666_ACEOF 18667 18668 18669 18670CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18671mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18672|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18673echo 'git directory not found: installing possibly empty changelog.' >&2)" 18674 18675 18676 18677 18678macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18679INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18680mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18681|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18682echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18683 18684 18685 18686 18687 18688 18689if test x$APP_MAN_SUFFIX = x ; then 18690 APP_MAN_SUFFIX=1 18691fi 18692if test x$APP_MAN_DIR = x ; then 18693 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18694fi 18695 18696if test x$LIB_MAN_SUFFIX = x ; then 18697 LIB_MAN_SUFFIX=3 18698fi 18699if test x$LIB_MAN_DIR = x ; then 18700 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18701fi 18702 18703if test x$FILE_MAN_SUFFIX = x ; then 18704 case $host_os in 18705 solaris*) FILE_MAN_SUFFIX=4 ;; 18706 *) FILE_MAN_SUFFIX=5 ;; 18707 esac 18708fi 18709if test x$FILE_MAN_DIR = x ; then 18710 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18711fi 18712 18713if test x$MISC_MAN_SUFFIX = x ; then 18714 case $host_os in 18715 solaris*) MISC_MAN_SUFFIX=5 ;; 18716 *) MISC_MAN_SUFFIX=7 ;; 18717 esac 18718fi 18719if test x$MISC_MAN_DIR = x ; then 18720 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18721fi 18722 18723if test x$DRIVER_MAN_SUFFIX = x ; then 18724 case $host_os in 18725 solaris*) DRIVER_MAN_SUFFIX=7 ;; 18726 *) DRIVER_MAN_SUFFIX=4 ;; 18727 esac 18728fi 18729if test x$DRIVER_MAN_DIR = x ; then 18730 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18731fi 18732 18733if test x$ADMIN_MAN_SUFFIX = x ; then 18734 case $host_os in 18735 solaris*) ADMIN_MAN_SUFFIX=1m ;; 18736 *) ADMIN_MAN_SUFFIX=8 ;; 18737 esac 18738fi 18739if test x$ADMIN_MAN_DIR = x ; then 18740 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18741fi 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757XORG_MAN_PAGE="X Version 11" 18758 18759MAN_SUBSTS="\ 18760 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18761 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18762 -e 's|__xservername__|Xorg|g' \ 18763 -e 's|__xconfigfile__|xorg.conf|g' \ 18764 -e 's|__projectroot__|\$(prefix)|g' \ 18765 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18766 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18767 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18768 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18769 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18770 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18771 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18772 18773 18774 18775# Check whether --enable-silent-rules was given. 18776if test "${enable_silent_rules+set}" = set; then : 18777 enableval=$enable_silent_rules; 18778fi 18779 18780case $enable_silent_rules in # ((( 18781 yes) AM_DEFAULT_VERBOSITY=0;; 18782 no) AM_DEFAULT_VERBOSITY=1;; 18783 *) AM_DEFAULT_VERBOSITY=0;; 18784esac 18785am_make=${MAKE-make} 18786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18787$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18788if ${am_cv_make_support_nested_variables+:} false; then : 18789 $as_echo_n "(cached) " >&6 18790else 18791 if $as_echo 'TRUE=$(BAR$(V)) 18792BAR0=false 18793BAR1=true 18794V=1 18795am__doit: 18796 @$(TRUE) 18797.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18798 am_cv_make_support_nested_variables=yes 18799else 18800 am_cv_make_support_nested_variables=no 18801fi 18802fi 18803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18804$as_echo "$am_cv_make_support_nested_variables" >&6; } 18805if test $am_cv_make_support_nested_variables = yes; then 18806 AM_V='$(V)' 18807 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18808else 18809 AM_V=$AM_DEFAULT_VERBOSITY 18810 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18811fi 18812AM_BACKSLASH='\' 18813 18814 18815 18816 18817# Check whether --enable-devel-docs was given. 18818if test "${enable_devel_docs+set}" = set; then : 18819 enableval=$enable_devel_docs; build_devel_docs=$enableval 18820else 18821 build_devel_docs=yes 18822fi 18823 18824 18825 if test x$build_devel_docs = xyes; then 18826 ENABLE_DEVEL_DOCS_TRUE= 18827 ENABLE_DEVEL_DOCS_FALSE='#' 18828else 18829 ENABLE_DEVEL_DOCS_TRUE='#' 18830 ENABLE_DEVEL_DOCS_FALSE= 18831fi 18832 18833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 18834$as_echo_n "checking whether to build developer documentation... " >&6; } 18835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 18836$as_echo "$build_devel_docs" >&6; } 18837 18838 18839 18840 18841 18842 18843# Check whether --with-doxygen was given. 18844if test "${with_doxygen+set}" = set; then : 18845 withval=$with_doxygen; use_doxygen=$withval 18846else 18847 use_doxygen=auto 18848fi 18849 18850 18851 18852if test "x$use_doxygen" = x"auto"; then 18853 # Extract the first word of "doxygen", so it can be a program name with args. 18854set dummy doxygen; ac_word=$2 18855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18856$as_echo_n "checking for $ac_word... " >&6; } 18857if ${ac_cv_path_DOXYGEN+:} false; then : 18858 $as_echo_n "(cached) " >&6 18859else 18860 case $DOXYGEN in 18861 [\\/]* | ?:[\\/]*) 18862 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 18863 ;; 18864 *) 18865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18866for as_dir in $PATH 18867do 18868 IFS=$as_save_IFS 18869 test -z "$as_dir" && as_dir=. 18870 for ac_exec_ext in '' $ac_executable_extensions; do 18871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18872 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 18873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18874 break 2 18875 fi 18876done 18877 done 18878IFS=$as_save_IFS 18879 18880 ;; 18881esac 18882fi 18883DOXYGEN=$ac_cv_path_DOXYGEN 18884if test -n "$DOXYGEN"; then 18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 18886$as_echo "$DOXYGEN" >&6; } 18887else 18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18889$as_echo "no" >&6; } 18890fi 18891 18892 18893 if test "x$DOXYGEN" = "x"; then 18894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 18895$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 18896 have_doxygen=no 18897 else 18898 have_doxygen=yes 18899 fi 18900elif test "x$use_doxygen" = x"yes" ; then 18901 # Extract the first word of "doxygen", so it can be a program name with args. 18902set dummy doxygen; ac_word=$2 18903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18904$as_echo_n "checking for $ac_word... " >&6; } 18905if ${ac_cv_path_DOXYGEN+:} false; then : 18906 $as_echo_n "(cached) " >&6 18907else 18908 case $DOXYGEN in 18909 [\\/]* | ?:[\\/]*) 18910 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 18911 ;; 18912 *) 18913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18914for as_dir in $PATH 18915do 18916 IFS=$as_save_IFS 18917 test -z "$as_dir" && as_dir=. 18918 for ac_exec_ext in '' $ac_executable_extensions; do 18919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18920 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 18921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18922 break 2 18923 fi 18924done 18925 done 18926IFS=$as_save_IFS 18927 18928 ;; 18929esac 18930fi 18931DOXYGEN=$ac_cv_path_DOXYGEN 18932if test -n "$DOXYGEN"; then 18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 18934$as_echo "$DOXYGEN" >&6; } 18935else 18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18937$as_echo "no" >&6; } 18938fi 18939 18940 18941 if test "x$DOXYGEN" = "x"; then 18942 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 18943 fi 18944 have_doxygen=yes 18945elif test "x$use_doxygen" = x"no" ; then 18946 if test "x$DOXYGEN" != "x"; then 18947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 18948$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 18949 fi 18950 have_doxygen=no 18951else 18952 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 18953fi 18954 18955 18956HAVE_DOT=no 18957if test "x$have_doxygen" = "xyes"; then 18958 # Extract the first word of "dot", so it can be a program name with args. 18959set dummy dot; ac_word=$2 18960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18961$as_echo_n "checking for $ac_word... " >&6; } 18962if ${ac_cv_path_DOT+:} false; then : 18963 $as_echo_n "(cached) " >&6 18964else 18965 case $DOT in 18966 [\\/]* | ?:[\\/]*) 18967 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 18968 ;; 18969 *) 18970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18971for as_dir in $PATH 18972do 18973 IFS=$as_save_IFS 18974 test -z "$as_dir" && as_dir=. 18975 for ac_exec_ext in '' $ac_executable_extensions; do 18976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18977 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 18978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18979 break 2 18980 fi 18981done 18982 done 18983IFS=$as_save_IFS 18984 18985 ;; 18986esac 18987fi 18988DOT=$ac_cv_path_DOT 18989if test -n "$DOT"; then 18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 18991$as_echo "$DOT" >&6; } 18992else 18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18994$as_echo "no" >&6; } 18995fi 18996 18997 18998 if test "x$DOT" != "x"; then 18999 HAVE_DOT=yes 19000 fi 19001fi 19002 19003 19004 if test "$HAVE_DOT" = "yes"; then 19005 HAVE_DOT_TRUE= 19006 HAVE_DOT_FALSE='#' 19007else 19008 HAVE_DOT_TRUE='#' 19009 HAVE_DOT_FALSE= 19010fi 19011 19012 if test "$have_doxygen" = yes; then 19013 HAVE_DOXYGEN_TRUE= 19014 HAVE_DOXYGEN_FALSE='#' 19015else 19016 HAVE_DOXYGEN_TRUE='#' 19017 HAVE_DOXYGEN_FALSE= 19018fi 19019 19020 19021 19022 19023 19024GPERF=${GPERF-"${am_missing_run}gperf"} 19025 19026 19027for ac_header in endian.h sys/endian.h sys/byteorder.h libkern/OSByteOrder.h 19028do : 19029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19030ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19031if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19032 cat >>confdefs.h <<_ACEOF 19033#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19034_ACEOF 19035 break 19036fi 19037 19038done 19039 19040for ac_func in le32toh 19041do : 19042 ac_fn_c_check_func "$LINENO" "le32toh" "ac_cv_func_le32toh" 19043if test "x$ac_cv_func_le32toh" = xyes; then : 19044 cat >>confdefs.h <<_ACEOF 19045#define HAVE_LE32TOH 1 19046_ACEOF 19047 19048fi 19049done 19050 19051 19052 19053pkg_failed=no 19054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_RENDER" >&5 19055$as_echo_n "checking for XCB_RENDER... " >&6; } 19056 19057if test -n "$XCB_RENDER_CFLAGS"; then 19058 pkg_cv_XCB_RENDER_CFLAGS="$XCB_RENDER_CFLAGS" 19059 elif test -n "$PKG_CONFIG"; then 19060 if test -n "$PKG_CONFIG" && \ 19061 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render\""; } >&5 19062 ($PKG_CONFIG --exists --print-errors "xcb-render") 2>&5 19063 ac_status=$? 19064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19065 test $ac_status = 0; }; then 19066 pkg_cv_XCB_RENDER_CFLAGS=`$PKG_CONFIG --cflags "xcb-render" 2>/dev/null` 19067 test "x$?" != "x0" && pkg_failed=yes 19068else 19069 pkg_failed=yes 19070fi 19071 else 19072 pkg_failed=untried 19073fi 19074if test -n "$XCB_RENDER_LIBS"; then 19075 pkg_cv_XCB_RENDER_LIBS="$XCB_RENDER_LIBS" 19076 elif test -n "$PKG_CONFIG"; then 19077 if test -n "$PKG_CONFIG" && \ 19078 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render\""; } >&5 19079 ($PKG_CONFIG --exists --print-errors "xcb-render") 2>&5 19080 ac_status=$? 19081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19082 test $ac_status = 0; }; then 19083 pkg_cv_XCB_RENDER_LIBS=`$PKG_CONFIG --libs "xcb-render" 2>/dev/null` 19084 test "x$?" != "x0" && pkg_failed=yes 19085else 19086 pkg_failed=yes 19087fi 19088 else 19089 pkg_failed=untried 19090fi 19091 19092 19093 19094if test $pkg_failed = yes; then 19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19096$as_echo "no" >&6; } 19097 19098if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19099 _pkg_short_errors_supported=yes 19100else 19101 _pkg_short_errors_supported=no 19102fi 19103 if test $_pkg_short_errors_supported = yes; then 19104 XCB_RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-render" 2>&1` 19105 else 19106 XCB_RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-render" 2>&1` 19107 fi 19108 # Put the nasty error message in config.log where it belongs 19109 echo "$XCB_RENDER_PKG_ERRORS" >&5 19110 19111 as_fn_error $? "Package requirements (xcb-render) were not met: 19112 19113$XCB_RENDER_PKG_ERRORS 19114 19115Consider adjusting the PKG_CONFIG_PATH environment variable if you 19116installed software in a non-standard prefix. 19117 19118Alternatively, you may set the environment variables XCB_RENDER_CFLAGS 19119and XCB_RENDER_LIBS to avoid the need to call pkg-config. 19120See the pkg-config man page for more details." "$LINENO" 5 19121elif test $pkg_failed = untried; then 19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19123$as_echo "no" >&6; } 19124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19126as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19127is in your PATH or set the PKG_CONFIG environment variable to the full 19128path to pkg-config. 19129 19130Alternatively, you may set the environment variables XCB_RENDER_CFLAGS 19131and XCB_RENDER_LIBS to avoid the need to call pkg-config. 19132See the pkg-config man page for more details. 19133 19134To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19135See \`config.log' for more details" "$LINENO" 5; } 19136else 19137 XCB_RENDER_CFLAGS=$pkg_cv_XCB_RENDER_CFLAGS 19138 XCB_RENDER_LIBS=$pkg_cv_XCB_RENDER_LIBS 19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19140$as_echo "yes" >&6; } 19141 19142fi 19143 19144pkg_failed=no 19145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_RENDERUTIL" >&5 19146$as_echo_n "checking for XCB_RENDERUTIL... " >&6; } 19147 19148if test -n "$XCB_RENDERUTIL_CFLAGS"; then 19149 pkg_cv_XCB_RENDERUTIL_CFLAGS="$XCB_RENDERUTIL_CFLAGS" 19150 elif test -n "$PKG_CONFIG"; then 19151 if test -n "$PKG_CONFIG" && \ 19152 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-renderutil\""; } >&5 19153 ($PKG_CONFIG --exists --print-errors "xcb-renderutil") 2>&5 19154 ac_status=$? 19155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19156 test $ac_status = 0; }; then 19157 pkg_cv_XCB_RENDERUTIL_CFLAGS=`$PKG_CONFIG --cflags "xcb-renderutil" 2>/dev/null` 19158 test "x$?" != "x0" && pkg_failed=yes 19159else 19160 pkg_failed=yes 19161fi 19162 else 19163 pkg_failed=untried 19164fi 19165if test -n "$XCB_RENDERUTIL_LIBS"; then 19166 pkg_cv_XCB_RENDERUTIL_LIBS="$XCB_RENDERUTIL_LIBS" 19167 elif test -n "$PKG_CONFIG"; then 19168 if test -n "$PKG_CONFIG" && \ 19169 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-renderutil\""; } >&5 19170 ($PKG_CONFIG --exists --print-errors "xcb-renderutil") 2>&5 19171 ac_status=$? 19172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19173 test $ac_status = 0; }; then 19174 pkg_cv_XCB_RENDERUTIL_LIBS=`$PKG_CONFIG --libs "xcb-renderutil" 2>/dev/null` 19175 test "x$?" != "x0" && pkg_failed=yes 19176else 19177 pkg_failed=yes 19178fi 19179 else 19180 pkg_failed=untried 19181fi 19182 19183 19184 19185if test $pkg_failed = yes; then 19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19187$as_echo "no" >&6; } 19188 19189if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19190 _pkg_short_errors_supported=yes 19191else 19192 _pkg_short_errors_supported=no 19193fi 19194 if test $_pkg_short_errors_supported = yes; then 19195 XCB_RENDERUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-renderutil" 2>&1` 19196 else 19197 XCB_RENDERUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-renderutil" 2>&1` 19198 fi 19199 # Put the nasty error message in config.log where it belongs 19200 echo "$XCB_RENDERUTIL_PKG_ERRORS" >&5 19201 19202 as_fn_error $? "Package requirements (xcb-renderutil) were not met: 19203 19204$XCB_RENDERUTIL_PKG_ERRORS 19205 19206Consider adjusting the PKG_CONFIG_PATH environment variable if you 19207installed software in a non-standard prefix. 19208 19209Alternatively, you may set the environment variables XCB_RENDERUTIL_CFLAGS 19210and XCB_RENDERUTIL_LIBS to avoid the need to call pkg-config. 19211See the pkg-config man page for more details." "$LINENO" 5 19212elif test $pkg_failed = untried; then 19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19214$as_echo "no" >&6; } 19215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19217as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19218is in your PATH or set the PKG_CONFIG environment variable to the full 19219path to pkg-config. 19220 19221Alternatively, you may set the environment variables XCB_RENDERUTIL_CFLAGS 19222and XCB_RENDERUTIL_LIBS to avoid the need to call pkg-config. 19223See the pkg-config man page for more details. 19224 19225To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19226See \`config.log' for more details" "$LINENO" 5; } 19227else 19228 XCB_RENDERUTIL_CFLAGS=$pkg_cv_XCB_RENDERUTIL_CFLAGS 19229 XCB_RENDERUTIL_LIBS=$pkg_cv_XCB_RENDERUTIL_LIBS 19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19231$as_echo "yes" >&6; } 19232 19233fi 19234 19235pkg_failed=no 19236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_IMAGE" >&5 19237$as_echo_n "checking for XCB_IMAGE... " >&6; } 19238 19239if test -n "$XCB_IMAGE_CFLAGS"; then 19240 pkg_cv_XCB_IMAGE_CFLAGS="$XCB_IMAGE_CFLAGS" 19241 elif test -n "$PKG_CONFIG"; then 19242 if test -n "$PKG_CONFIG" && \ 19243 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-image\""; } >&5 19244 ($PKG_CONFIG --exists --print-errors "xcb-image") 2>&5 19245 ac_status=$? 19246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19247 test $ac_status = 0; }; then 19248 pkg_cv_XCB_IMAGE_CFLAGS=`$PKG_CONFIG --cflags "xcb-image" 2>/dev/null` 19249 test "x$?" != "x0" && pkg_failed=yes 19250else 19251 pkg_failed=yes 19252fi 19253 else 19254 pkg_failed=untried 19255fi 19256if test -n "$XCB_IMAGE_LIBS"; then 19257 pkg_cv_XCB_IMAGE_LIBS="$XCB_IMAGE_LIBS" 19258 elif test -n "$PKG_CONFIG"; then 19259 if test -n "$PKG_CONFIG" && \ 19260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-image\""; } >&5 19261 ($PKG_CONFIG --exists --print-errors "xcb-image") 2>&5 19262 ac_status=$? 19263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19264 test $ac_status = 0; }; then 19265 pkg_cv_XCB_IMAGE_LIBS=`$PKG_CONFIG --libs "xcb-image" 2>/dev/null` 19266 test "x$?" != "x0" && pkg_failed=yes 19267else 19268 pkg_failed=yes 19269fi 19270 else 19271 pkg_failed=untried 19272fi 19273 19274 19275 19276if test $pkg_failed = yes; then 19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19278$as_echo "no" >&6; } 19279 19280if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19281 _pkg_short_errors_supported=yes 19282else 19283 _pkg_short_errors_supported=no 19284fi 19285 if test $_pkg_short_errors_supported = yes; then 19286 XCB_IMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-image" 2>&1` 19287 else 19288 XCB_IMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-image" 2>&1` 19289 fi 19290 # Put the nasty error message in config.log where it belongs 19291 echo "$XCB_IMAGE_PKG_ERRORS" >&5 19292 19293 as_fn_error $? "Package requirements (xcb-image) were not met: 19294 19295$XCB_IMAGE_PKG_ERRORS 19296 19297Consider adjusting the PKG_CONFIG_PATH environment variable if you 19298installed software in a non-standard prefix. 19299 19300Alternatively, you may set the environment variables XCB_IMAGE_CFLAGS 19301and XCB_IMAGE_LIBS to avoid the need to call pkg-config. 19302See the pkg-config man page for more details." "$LINENO" 5 19303elif test $pkg_failed = untried; then 19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19305$as_echo "no" >&6; } 19306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19308as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19309is in your PATH or set the PKG_CONFIG environment variable to the full 19310path to pkg-config. 19311 19312Alternatively, you may set the environment variables XCB_IMAGE_CFLAGS 19313and XCB_IMAGE_LIBS to avoid the need to call pkg-config. 19314See the pkg-config man page for more details. 19315 19316To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19317See \`config.log' for more details" "$LINENO" 5; } 19318else 19319 XCB_IMAGE_CFLAGS=$pkg_cv_XCB_IMAGE_CFLAGS 19320 XCB_IMAGE_LIBS=$pkg_cv_XCB_IMAGE_LIBS 19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19322$as_echo "yes" >&6; } 19323 19324fi 19325 19326DEF_CURSORPATH="~/.icons:/usr/share/icons:/usr/share/pixmaps:/usr/X11R6/lib/X11/icons" 19327 19328# Check whether --with-cursorpath was given. 19329if test "${with_cursorpath+set}" = set; then : 19330 withval=$with_cursorpath; XCURSORPATH="$withval" 19331else 19332 XCURSORPATH="$DEF_CURSORPATH" 19333fi 19334 19335cat >>confdefs.h <<_ACEOF 19336#define XCURSORPATH "$XCURSORPATH" 19337_ACEOF 19338 19339 19340ac_config_files="$ac_config_files Makefile cursor/Makefile cursor/xcb-cursor.pc xcb_util_intro" 19341 19342cat >confcache <<\_ACEOF 19343# This file is a shell script that caches the results of configure 19344# tests run on this system so they can be shared between configure 19345# scripts and configure runs, see configure's option --config-cache. 19346# It is not useful on other systems. If it contains results you don't 19347# want to keep, you may remove or edit it. 19348# 19349# config.status only pays attention to the cache file if you give it 19350# the --recheck option to rerun configure. 19351# 19352# `ac_cv_env_foo' variables (set or unset) will be overridden when 19353# loading this file, other *unset* `ac_cv_foo' will be assigned the 19354# following values. 19355 19356_ACEOF 19357 19358# The following way of writing the cache mishandles newlines in values, 19359# but we know of no workaround that is simple, portable, and efficient. 19360# So, we kill variables containing newlines. 19361# Ultrix sh set writes to stderr and can't be redirected directly, 19362# and sets the high bit in the cache file unless we assign to the vars. 19363( 19364 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19365 eval ac_val=\$$ac_var 19366 case $ac_val in #( 19367 *${as_nl}*) 19368 case $ac_var in #( 19369 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19370$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19371 esac 19372 case $ac_var in #( 19373 _ | IFS | as_nl) ;; #( 19374 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19375 *) { eval $ac_var=; unset $ac_var;} ;; 19376 esac ;; 19377 esac 19378 done 19379 19380 (set) 2>&1 | 19381 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19382 *${as_nl}ac_space=\ *) 19383 # `set' does not quote correctly, so add quotes: double-quote 19384 # substitution turns \\\\ into \\, and sed turns \\ into \. 19385 sed -n \ 19386 "s/'/'\\\\''/g; 19387 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19388 ;; #( 19389 *) 19390 # `set' quotes correctly as required by POSIX, so do not add quotes. 19391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19392 ;; 19393 esac | 19394 sort 19395) | 19396 sed ' 19397 /^ac_cv_env_/b end 19398 t clear 19399 :clear 19400 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19401 t end 19402 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19403 :end' >>confcache 19404if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19405 if test -w "$cache_file"; then 19406 if test "x$cache_file" != "x/dev/null"; then 19407 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19408$as_echo "$as_me: updating cache $cache_file" >&6;} 19409 if test ! -f "$cache_file" || test -h "$cache_file"; then 19410 cat confcache >"$cache_file" 19411 else 19412 case $cache_file in #( 19413 */* | ?:*) 19414 mv -f confcache "$cache_file"$$ && 19415 mv -f "$cache_file"$$ "$cache_file" ;; #( 19416 *) 19417 mv -f confcache "$cache_file" ;; 19418 esac 19419 fi 19420 fi 19421 else 19422 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19423$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19424 fi 19425fi 19426rm -f confcache 19427 19428test "x$prefix" = xNONE && prefix=$ac_default_prefix 19429# Let make expand exec_prefix. 19430test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19431 19432# Transform confdefs.h into DEFS. 19433# Protect against shell expansion while executing Makefile rules. 19434# Protect against Makefile macro expansion. 19435# 19436# If the first sed substitution is executed (which looks for macros that 19437# take arguments), then branch to the quote section. Otherwise, 19438# look for a macro that doesn't take arguments. 19439ac_script=' 19440:mline 19441/\\$/{ 19442 N 19443 s,\\\n,, 19444 b mline 19445} 19446t clear 19447:clear 19448s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 19449t quote 19450s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 19451t quote 19452b any 19453:quote 19454s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 19455s/\[/\\&/g 19456s/\]/\\&/g 19457s/\$/$$/g 19458H 19459:any 19460${ 19461 g 19462 s/^\n// 19463 s/\n/ /g 19464 p 19465} 19466' 19467DEFS=`sed -n "$ac_script" confdefs.h` 19468 19469 19470ac_libobjs= 19471ac_ltlibobjs= 19472U= 19473for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19474 # 1. Remove the extension, and $U if already installed. 19475 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19476 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19477 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19478 # will be set to the directory where LIBOBJS objects are built. 19479 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19480 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19481done 19482LIBOBJS=$ac_libobjs 19483 19484LTLIBOBJS=$ac_ltlibobjs 19485 19486 19487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19488$as_echo_n "checking that generated files are newer than configure... " >&6; } 19489 if test -n "$am_sleep_pid"; then 19490 # Hide warnings about reused PIDs. 19491 wait $am_sleep_pid 2>/dev/null 19492 fi 19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19494$as_echo "done" >&6; } 19495if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19496 as_fn_error $? "conditional \"AMDEP\" was never defined. 19497Usually this means the macro was only invoked conditionally." "$LINENO" 5 19498fi 19499if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19500 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19501Usually this means the macro was only invoked conditionally." "$LINENO" 5 19502fi 19503 if test -n "$EXEEXT"; then 19504 am__EXEEXT_TRUE= 19505 am__EXEEXT_FALSE='#' 19506else 19507 am__EXEEXT_TRUE='#' 19508 am__EXEEXT_FALSE= 19509fi 19510 19511if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19512 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19513Usually this means the macro was only invoked conditionally." "$LINENO" 5 19514fi 19515if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 19516 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 19517Usually this means the macro was only invoked conditionally." "$LINENO" 5 19518fi 19519if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 19520 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 19521Usually this means the macro was only invoked conditionally." "$LINENO" 5 19522fi 19523if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 19524 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 19525Usually this means the macro was only invoked conditionally." "$LINENO" 5 19526fi 19527 19528: "${CONFIG_STATUS=./config.status}" 19529ac_write_fail=0 19530ac_clean_files_save=$ac_clean_files 19531ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19532{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19533$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19534as_write_fail=0 19535cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19536#! $SHELL 19537# Generated by $as_me. 19538# Run this file to recreate the current configuration. 19539# Compiler output produced by configure, useful for debugging 19540# configure, is in config.log if it exists. 19541 19542debug=false 19543ac_cs_recheck=false 19544ac_cs_silent=false 19545 19546SHELL=\${CONFIG_SHELL-$SHELL} 19547export SHELL 19548_ASEOF 19549cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19550## -------------------- ## 19551## M4sh Initialization. ## 19552## -------------------- ## 19553 19554# Be more Bourne compatible 19555DUALCASE=1; export DUALCASE # for MKS sh 19556if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19557 emulate sh 19558 NULLCMD=: 19559 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19560 # is contrary to our usage. Disable this feature. 19561 alias -g '${1+"$@"}'='"$@"' 19562 setopt NO_GLOB_SUBST 19563else 19564 case `(set -o) 2>/dev/null` in #( 19565 *posix*) : 19566 set -o posix ;; #( 19567 *) : 19568 ;; 19569esac 19570fi 19571 19572 19573as_nl=' 19574' 19575export as_nl 19576# Printing a long string crashes Solaris 7 /usr/bin/printf. 19577as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19578as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19579as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19580# Prefer a ksh shell builtin over an external printf program on Solaris, 19581# but without wasting forks for bash or zsh. 19582if test -z "$BASH_VERSION$ZSH_VERSION" \ 19583 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19584 as_echo='print -r --' 19585 as_echo_n='print -rn --' 19586elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19587 as_echo='printf %s\n' 19588 as_echo_n='printf %s' 19589else 19590 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19591 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19592 as_echo_n='/usr/ucb/echo -n' 19593 else 19594 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19595 as_echo_n_body='eval 19596 arg=$1; 19597 case $arg in #( 19598 *"$as_nl"*) 19599 expr "X$arg" : "X\\(.*\\)$as_nl"; 19600 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19601 esac; 19602 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19603 ' 19604 export as_echo_n_body 19605 as_echo_n='sh -c $as_echo_n_body as_echo' 19606 fi 19607 export as_echo_body 19608 as_echo='sh -c $as_echo_body as_echo' 19609fi 19610 19611# The user is always right. 19612if test "${PATH_SEPARATOR+set}" != set; then 19613 PATH_SEPARATOR=: 19614 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19615 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19616 PATH_SEPARATOR=';' 19617 } 19618fi 19619 19620 19621# IFS 19622# We need space, tab and new line, in precisely that order. Quoting is 19623# there to prevent editors from complaining about space-tab. 19624# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19625# splitting by setting IFS to empty value.) 19626IFS=" "" $as_nl" 19627 19628# Find who we are. Look in the path if we contain no directory separator. 19629as_myself= 19630case $0 in #(( 19631 *[\\/]* ) as_myself=$0 ;; 19632 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19633for as_dir in $PATH 19634do 19635 IFS=$as_save_IFS 19636 test -z "$as_dir" && as_dir=. 19637 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19638 done 19639IFS=$as_save_IFS 19640 19641 ;; 19642esac 19643# We did not find ourselves, most probably we were run as `sh COMMAND' 19644# in which case we are not to be found in the path. 19645if test "x$as_myself" = x; then 19646 as_myself=$0 19647fi 19648if test ! -f "$as_myself"; then 19649 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19650 exit 1 19651fi 19652 19653# Unset variables that we do not need and which cause bugs (e.g. in 19654# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19655# suppresses any "Segmentation fault" message there. '((' could 19656# trigger a bug in pdksh 5.2.14. 19657for as_var in BASH_ENV ENV MAIL MAILPATH 19658do eval test x\${$as_var+set} = xset \ 19659 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19660done 19661PS1='$ ' 19662PS2='> ' 19663PS4='+ ' 19664 19665# NLS nuisances. 19666LC_ALL=C 19667export LC_ALL 19668LANGUAGE=C 19669export LANGUAGE 19670 19671# CDPATH. 19672(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19673 19674 19675# as_fn_error STATUS ERROR [LINENO LOG_FD] 19676# ---------------------------------------- 19677# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19678# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19679# script with STATUS, using 1 if that was 0. 19680as_fn_error () 19681{ 19682 as_status=$1; test $as_status -eq 0 && as_status=1 19683 if test "$4"; then 19684 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19685 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19686 fi 19687 $as_echo "$as_me: error: $2" >&2 19688 as_fn_exit $as_status 19689} # as_fn_error 19690 19691 19692# as_fn_set_status STATUS 19693# ----------------------- 19694# Set $? to STATUS, without forking. 19695as_fn_set_status () 19696{ 19697 return $1 19698} # as_fn_set_status 19699 19700# as_fn_exit STATUS 19701# ----------------- 19702# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19703as_fn_exit () 19704{ 19705 set +e 19706 as_fn_set_status $1 19707 exit $1 19708} # as_fn_exit 19709 19710# as_fn_unset VAR 19711# --------------- 19712# Portably unset VAR. 19713as_fn_unset () 19714{ 19715 { eval $1=; unset $1;} 19716} 19717as_unset=as_fn_unset 19718# as_fn_append VAR VALUE 19719# ---------------------- 19720# Append the text in VALUE to the end of the definition contained in VAR. Take 19721# advantage of any shell optimizations that allow amortized linear growth over 19722# repeated appends, instead of the typical quadratic growth present in naive 19723# implementations. 19724if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19725 eval 'as_fn_append () 19726 { 19727 eval $1+=\$2 19728 }' 19729else 19730 as_fn_append () 19731 { 19732 eval $1=\$$1\$2 19733 } 19734fi # as_fn_append 19735 19736# as_fn_arith ARG... 19737# ------------------ 19738# Perform arithmetic evaluation on the ARGs, and store the result in the 19739# global $as_val. Take advantage of shells that can avoid forks. The arguments 19740# must be portable across $(()) and expr. 19741if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19742 eval 'as_fn_arith () 19743 { 19744 as_val=$(( $* )) 19745 }' 19746else 19747 as_fn_arith () 19748 { 19749 as_val=`expr "$@" || test $? -eq 1` 19750 } 19751fi # as_fn_arith 19752 19753 19754if expr a : '\(a\)' >/dev/null 2>&1 && 19755 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19756 as_expr=expr 19757else 19758 as_expr=false 19759fi 19760 19761if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19762 as_basename=basename 19763else 19764 as_basename=false 19765fi 19766 19767if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19768 as_dirname=dirname 19769else 19770 as_dirname=false 19771fi 19772 19773as_me=`$as_basename -- "$0" || 19774$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19775 X"$0" : 'X\(//\)$' \| \ 19776 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19777$as_echo X/"$0" | 19778 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19779 s//\1/ 19780 q 19781 } 19782 /^X\/\(\/\/\)$/{ 19783 s//\1/ 19784 q 19785 } 19786 /^X\/\(\/\).*/{ 19787 s//\1/ 19788 q 19789 } 19790 s/.*/./; q'` 19791 19792# Avoid depending upon Character Ranges. 19793as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19794as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19795as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19796as_cr_digits='0123456789' 19797as_cr_alnum=$as_cr_Letters$as_cr_digits 19798 19799ECHO_C= ECHO_N= ECHO_T= 19800case `echo -n x` in #((((( 19801-n*) 19802 case `echo 'xy\c'` in 19803 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19804 xy) ECHO_C='\c';; 19805 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19806 ECHO_T=' ';; 19807 esac;; 19808*) 19809 ECHO_N='-n';; 19810esac 19811 19812rm -f conf$$ conf$$.exe conf$$.file 19813if test -d conf$$.dir; then 19814 rm -f conf$$.dir/conf$$.file 19815else 19816 rm -f conf$$.dir 19817 mkdir conf$$.dir 2>/dev/null 19818fi 19819if (echo >conf$$.file) 2>/dev/null; then 19820 if ln -s conf$$.file conf$$ 2>/dev/null; then 19821 as_ln_s='ln -s' 19822 # ... but there are two gotchas: 19823 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19824 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19825 # In both cases, we have to default to `cp -pR'. 19826 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19827 as_ln_s='cp -pR' 19828 elif ln conf$$.file conf$$ 2>/dev/null; then 19829 as_ln_s=ln 19830 else 19831 as_ln_s='cp -pR' 19832 fi 19833else 19834 as_ln_s='cp -pR' 19835fi 19836rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19837rmdir conf$$.dir 2>/dev/null 19838 19839 19840# as_fn_mkdir_p 19841# ------------- 19842# Create "$as_dir" as a directory, including parents if necessary. 19843as_fn_mkdir_p () 19844{ 19845 19846 case $as_dir in #( 19847 -*) as_dir=./$as_dir;; 19848 esac 19849 test -d "$as_dir" || eval $as_mkdir_p || { 19850 as_dirs= 19851 while :; do 19852 case $as_dir in #( 19853 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19854 *) as_qdir=$as_dir;; 19855 esac 19856 as_dirs="'$as_qdir' $as_dirs" 19857 as_dir=`$as_dirname -- "$as_dir" || 19858$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19859 X"$as_dir" : 'X\(//\)[^/]' \| \ 19860 X"$as_dir" : 'X\(//\)$' \| \ 19861 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19862$as_echo X"$as_dir" | 19863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19864 s//\1/ 19865 q 19866 } 19867 /^X\(\/\/\)[^/].*/{ 19868 s//\1/ 19869 q 19870 } 19871 /^X\(\/\/\)$/{ 19872 s//\1/ 19873 q 19874 } 19875 /^X\(\/\).*/{ 19876 s//\1/ 19877 q 19878 } 19879 s/.*/./; q'` 19880 test -d "$as_dir" && break 19881 done 19882 test -z "$as_dirs" || eval "mkdir $as_dirs" 19883 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19884 19885 19886} # as_fn_mkdir_p 19887if mkdir -p . 2>/dev/null; then 19888 as_mkdir_p='mkdir -p "$as_dir"' 19889else 19890 test -d ./-p && rmdir ./-p 19891 as_mkdir_p=false 19892fi 19893 19894 19895# as_fn_executable_p FILE 19896# ----------------------- 19897# Test if FILE is an executable regular file. 19898as_fn_executable_p () 19899{ 19900 test -f "$1" && test -x "$1" 19901} # as_fn_executable_p 19902as_test_x='test -x' 19903as_executable_p=as_fn_executable_p 19904 19905# Sed expression to map a string onto a valid CPP name. 19906as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19907 19908# Sed expression to map a string onto a valid variable name. 19909as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19910 19911 19912exec 6>&1 19913## ----------------------------------- ## 19914## Main body of $CONFIG_STATUS script. ## 19915## ----------------------------------- ## 19916_ASEOF 19917test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19918 19919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19920# Save the log message, to keep $0 and so on meaningful, and to 19921# report actual input values of CONFIG_FILES etc. instead of their 19922# values after options handling. 19923ac_log=" 19924This file was extended by xcb-util-cursor $as_me 0.1.3, which was 19925generated by GNU Autoconf 2.69. Invocation command line was 19926 19927 CONFIG_FILES = $CONFIG_FILES 19928 CONFIG_HEADERS = $CONFIG_HEADERS 19929 CONFIG_LINKS = $CONFIG_LINKS 19930 CONFIG_COMMANDS = $CONFIG_COMMANDS 19931 $ $0 $@ 19932 19933on `(hostname || uname -n) 2>/dev/null | sed 1q` 19934" 19935 19936_ACEOF 19937 19938case $ac_config_files in *" 19939"*) set x $ac_config_files; shift; ac_config_files=$*;; 19940esac 19941 19942 19943 19944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19945# Files that config.status was made for. 19946config_files="$ac_config_files" 19947config_commands="$ac_config_commands" 19948 19949_ACEOF 19950 19951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19952ac_cs_usage="\ 19953\`$as_me' instantiates files and other configuration actions 19954from templates according to the current configuration. Unless the files 19955and actions are specified as TAGs, all are instantiated by default. 19956 19957Usage: $0 [OPTION]... [TAG]... 19958 19959 -h, --help print this help, then exit 19960 -V, --version print version number and configuration settings, then exit 19961 --config print configuration, then exit 19962 -q, --quiet, --silent 19963 do not print progress messages 19964 -d, --debug don't remove temporary files 19965 --recheck update $as_me by reconfiguring in the same conditions 19966 --file=FILE[:TEMPLATE] 19967 instantiate the configuration file FILE 19968 19969Configuration files: 19970$config_files 19971 19972Configuration commands: 19973$config_commands 19974 19975Report bugs to <xcb@lists.freedesktop.org>." 19976 19977_ACEOF 19978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19979ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19980ac_cs_version="\\ 19981xcb-util-cursor config.status 0.1.3 19982configured by $0, generated by GNU Autoconf 2.69, 19983 with options \\"\$ac_cs_config\\" 19984 19985Copyright (C) 2012 Free Software Foundation, Inc. 19986This config.status script is free software; the Free Software Foundation 19987gives unlimited permission to copy, distribute and modify it." 19988 19989ac_pwd='$ac_pwd' 19990srcdir='$srcdir' 19991INSTALL='$INSTALL' 19992MKDIR_P='$MKDIR_P' 19993AWK='$AWK' 19994test -n "\$AWK" || AWK=awk 19995_ACEOF 19996 19997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19998# The default lists apply if the user does not specify any file. 19999ac_need_defaults=: 20000while test $# != 0 20001do 20002 case $1 in 20003 --*=?*) 20004 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20005 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20006 ac_shift=: 20007 ;; 20008 --*=) 20009 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20010 ac_optarg= 20011 ac_shift=: 20012 ;; 20013 *) 20014 ac_option=$1 20015 ac_optarg=$2 20016 ac_shift=shift 20017 ;; 20018 esac 20019 20020 case $ac_option in 20021 # Handling of the options. 20022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20023 ac_cs_recheck=: ;; 20024 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20025 $as_echo "$ac_cs_version"; exit ;; 20026 --config | --confi | --conf | --con | --co | --c ) 20027 $as_echo "$ac_cs_config"; exit ;; 20028 --debug | --debu | --deb | --de | --d | -d ) 20029 debug=: ;; 20030 --file | --fil | --fi | --f ) 20031 $ac_shift 20032 case $ac_optarg in 20033 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20034 '') as_fn_error $? "missing file argument" ;; 20035 esac 20036 as_fn_append CONFIG_FILES " '$ac_optarg'" 20037 ac_need_defaults=false;; 20038 --he | --h | --help | --hel | -h ) 20039 $as_echo "$ac_cs_usage"; exit ;; 20040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20041 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20042 ac_cs_silent=: ;; 20043 20044 # This is an error. 20045 -*) as_fn_error $? "unrecognized option: \`$1' 20046Try \`$0 --help' for more information." ;; 20047 20048 *) as_fn_append ac_config_targets " $1" 20049 ac_need_defaults=false ;; 20050 20051 esac 20052 shift 20053done 20054 20055ac_configure_extra_args= 20056 20057if $ac_cs_silent; then 20058 exec 6>/dev/null 20059 ac_configure_extra_args="$ac_configure_extra_args --silent" 20060fi 20061 20062_ACEOF 20063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20064if \$ac_cs_recheck; then 20065 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20066 shift 20067 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20068 CONFIG_SHELL='$SHELL' 20069 export CONFIG_SHELL 20070 exec "\$@" 20071fi 20072 20073_ACEOF 20074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20075exec 5>>config.log 20076{ 20077 echo 20078 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20079## Running $as_me. ## 20080_ASBOX 20081 $as_echo "$ac_log" 20082} >&5 20083 20084_ACEOF 20085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20086# 20087# INIT-COMMANDS 20088# 20089AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20090 20091 20092# The HP-UX ksh and POSIX shell print the target directory to stdout 20093# if CDPATH is set. 20094(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20095 20096sed_quote_subst='$sed_quote_subst' 20097double_quote_subst='$double_quote_subst' 20098delay_variable_subst='$delay_variable_subst' 20099macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20100macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20101enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20102enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20103pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20104enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20105shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20106SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20107ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20108PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20109host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20110host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20111host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20112build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20113build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20114build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20115SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20116Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20117GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20118EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20119FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20120LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20121NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20122LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20123max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20124ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20125exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20126lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20127lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20128lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20129lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20130lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20131reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20132reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20133OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20134deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20135file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20136file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20137want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20138DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20139sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20140AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20141AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20142archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20143STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20144RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20145old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20146old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20147old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20148lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20149CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20150CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20151compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20152GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20153lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20154lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20155lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20156lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20157lt_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"`' 20158lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20159nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20160lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20161lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20162objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20163MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20164lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20165lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20166lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20167lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20168lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20169need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20170MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20171DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20172NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20173LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20174OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20175OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20176libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20177shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20178extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20179archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20180enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20181export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20182whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20183compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20184old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20185old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20186archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20187archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20188module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20189module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20190with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20191allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20192no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20193hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20194hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20195hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20196hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20197hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20198hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20199hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20200inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20201link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20202always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20203export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20204exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20205include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20206prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20207postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20208file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20209variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20210need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20211need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20212version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20213runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20214shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20215shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20216libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20217library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20218soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20219install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20220postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20221postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20222finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20223finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20224hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20225sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20226configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20227configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20228hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20229enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20230enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20231enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20232old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20233striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20234 20235LTCC='$LTCC' 20236LTCFLAGS='$LTCFLAGS' 20237compiler='$compiler_DEFAULT' 20238 20239# A function that is used when there is no print builtin or printf. 20240func_fallback_echo () 20241{ 20242 eval 'cat <<_LTECHO_EOF 20243\$1 20244_LTECHO_EOF' 20245} 20246 20247# Quote evaled strings. 20248for var in SHELL \ 20249ECHO \ 20250PATH_SEPARATOR \ 20251SED \ 20252GREP \ 20253EGREP \ 20254FGREP \ 20255LD \ 20256NM \ 20257LN_S \ 20258lt_SP2NL \ 20259lt_NL2SP \ 20260reload_flag \ 20261OBJDUMP \ 20262deplibs_check_method \ 20263file_magic_cmd \ 20264file_magic_glob \ 20265want_nocaseglob \ 20266DLLTOOL \ 20267sharedlib_from_linklib_cmd \ 20268AR \ 20269AR_FLAGS \ 20270archiver_list_spec \ 20271STRIP \ 20272RANLIB \ 20273CC \ 20274CFLAGS \ 20275compiler \ 20276lt_cv_sys_global_symbol_pipe \ 20277lt_cv_sys_global_symbol_to_cdecl \ 20278lt_cv_sys_global_symbol_to_import \ 20279lt_cv_sys_global_symbol_to_c_name_address \ 20280lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20281lt_cv_nm_interface \ 20282nm_file_list_spec \ 20283lt_cv_truncate_bin \ 20284lt_prog_compiler_no_builtin_flag \ 20285lt_prog_compiler_pic \ 20286lt_prog_compiler_wl \ 20287lt_prog_compiler_static \ 20288lt_cv_prog_compiler_c_o \ 20289need_locks \ 20290MANIFEST_TOOL \ 20291DSYMUTIL \ 20292NMEDIT \ 20293LIPO \ 20294OTOOL \ 20295OTOOL64 \ 20296shrext_cmds \ 20297export_dynamic_flag_spec \ 20298whole_archive_flag_spec \ 20299compiler_needs_object \ 20300with_gnu_ld \ 20301allow_undefined_flag \ 20302no_undefined_flag \ 20303hardcode_libdir_flag_spec \ 20304hardcode_libdir_separator \ 20305exclude_expsyms \ 20306include_expsyms \ 20307file_list_spec \ 20308variables_saved_for_relink \ 20309libname_spec \ 20310library_names_spec \ 20311soname_spec \ 20312install_override_mode \ 20313finish_eval \ 20314old_striplib \ 20315striplib; do 20316 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20317 *[\\\\\\\`\\"\\\$]*) 20318 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20319 ;; 20320 *) 20321 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20322 ;; 20323 esac 20324done 20325 20326# Double-quote double-evaled strings. 20327for var in reload_cmds \ 20328old_postinstall_cmds \ 20329old_postuninstall_cmds \ 20330old_archive_cmds \ 20331extract_expsyms_cmds \ 20332old_archive_from_new_cmds \ 20333old_archive_from_expsyms_cmds \ 20334archive_cmds \ 20335archive_expsym_cmds \ 20336module_cmds \ 20337module_expsym_cmds \ 20338export_symbols_cmds \ 20339prelink_cmds \ 20340postlink_cmds \ 20341postinstall_cmds \ 20342postuninstall_cmds \ 20343finish_cmds \ 20344sys_lib_search_path_spec \ 20345configure_time_dlsearch_path \ 20346configure_time_lt_sys_library_path; do 20347 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20348 *[\\\\\\\`\\"\\\$]*) 20349 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20350 ;; 20351 *) 20352 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20353 ;; 20354 esac 20355done 20356 20357ac_aux_dir='$ac_aux_dir' 20358 20359# See if we are running on zsh, and set the options that allow our 20360# commands through without removal of \ escapes INIT. 20361if test -n "\${ZSH_VERSION+set}"; then 20362 setopt NO_GLOB_SUBST 20363fi 20364 20365 20366 PACKAGE='$PACKAGE' 20367 VERSION='$VERSION' 20368 RM='$RM' 20369 ofile='$ofile' 20370 20371 20372 20373 20374_ACEOF 20375 20376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20377 20378# Handling of arguments. 20379for ac_config_target in $ac_config_targets 20380do 20381 case $ac_config_target in 20382 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20383 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20384 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20385 "cursor/Makefile") CONFIG_FILES="$CONFIG_FILES cursor/Makefile" ;; 20386 "cursor/xcb-cursor.pc") CONFIG_FILES="$CONFIG_FILES cursor/xcb-cursor.pc" ;; 20387 "xcb_util_intro") CONFIG_FILES="$CONFIG_FILES xcb_util_intro" ;; 20388 20389 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20390 esac 20391done 20392 20393 20394# If the user did not use the arguments to specify the items to instantiate, 20395# then the envvar interface is used. Set only those that are not. 20396# We use the long form for the default assignment because of an extremely 20397# bizarre bug on SunOS 4.1.3. 20398if $ac_need_defaults; then 20399 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20400 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20401fi 20402 20403# Have a temporary directory for convenience. Make it in the build tree 20404# simply because there is no reason against having it here, and in addition, 20405# creating and moving files from /tmp can sometimes cause problems. 20406# Hook for its removal unless debugging. 20407# Note that there is a small window in which the directory will not be cleaned: 20408# after its creation but before its name has been assigned to `$tmp'. 20409$debug || 20410{ 20411 tmp= ac_tmp= 20412 trap 'exit_status=$? 20413 : "${ac_tmp:=$tmp}" 20414 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20415' 0 20416 trap 'as_fn_exit 1' 1 2 13 15 20417} 20418# Create a (secure) tmp directory for tmp files. 20419 20420{ 20421 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20422 test -d "$tmp" 20423} || 20424{ 20425 tmp=./conf$$-$RANDOM 20426 (umask 077 && mkdir "$tmp") 20427} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20428ac_tmp=$tmp 20429 20430# Set up the scripts for CONFIG_FILES section. 20431# No need to generate them if there are no CONFIG_FILES. 20432# This happens for instance with `./config.status config.h'. 20433if test -n "$CONFIG_FILES"; then 20434 20435 20436ac_cr=`echo X | tr X '\015'` 20437# On cygwin, bash can eat \r inside `` if the user requested igncr. 20438# But we know of no other shell where ac_cr would be empty at this 20439# point, so we can use a bashism as a fallback. 20440if test "x$ac_cr" = x; then 20441 eval ac_cr=\$\'\\r\' 20442fi 20443ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20444if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20445 ac_cs_awk_cr='\\r' 20446else 20447 ac_cs_awk_cr=$ac_cr 20448fi 20449 20450echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20451_ACEOF 20452 20453 20454{ 20455 echo "cat >conf$$subs.awk <<_ACEOF" && 20456 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20457 echo "_ACEOF" 20458} >conf$$subs.sh || 20459 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20460ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20461ac_delim='%!_!# ' 20462for ac_last_try in false false false false false :; do 20463 . ./conf$$subs.sh || 20464 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20465 20466 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20467 if test $ac_delim_n = $ac_delim_num; then 20468 break 20469 elif $ac_last_try; then 20470 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20471 else 20472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20473 fi 20474done 20475rm -f conf$$subs.sh 20476 20477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20478cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20479_ACEOF 20480sed -n ' 20481h 20482s/^/S["/; s/!.*/"]=/ 20483p 20484g 20485s/^[^!]*!// 20486:repl 20487t repl 20488s/'"$ac_delim"'$// 20489t delim 20490:nl 20491h 20492s/\(.\{148\}\)..*/\1/ 20493t more1 20494s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20495p 20496n 20497b repl 20498:more1 20499s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20500p 20501g 20502s/.\{148\}// 20503t nl 20504:delim 20505h 20506s/\(.\{148\}\)..*/\1/ 20507t more2 20508s/["\\]/\\&/g; s/^/"/; s/$/"/ 20509p 20510b 20511:more2 20512s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20513p 20514g 20515s/.\{148\}// 20516t delim 20517' <conf$$subs.awk | sed ' 20518/^[^""]/{ 20519 N 20520 s/\n// 20521} 20522' >>$CONFIG_STATUS || ac_write_fail=1 20523rm -f conf$$subs.awk 20524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20525_ACAWK 20526cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20527 for (key in S) S_is_set[key] = 1 20528 FS = "" 20529 20530} 20531{ 20532 line = $ 0 20533 nfields = split(line, field, "@") 20534 substed = 0 20535 len = length(field[1]) 20536 for (i = 2; i < nfields; i++) { 20537 key = field[i] 20538 keylen = length(key) 20539 if (S_is_set[key]) { 20540 value = S[key] 20541 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20542 len += length(value) + length(field[++i]) 20543 substed = 1 20544 } else 20545 len += 1 + keylen 20546 } 20547 20548 print line 20549} 20550 20551_ACAWK 20552_ACEOF 20553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20554if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20555 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20556else 20557 cat 20558fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20559 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20560_ACEOF 20561 20562# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20563# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20564# trailing colons and then remove the whole line if VPATH becomes empty 20565# (actually we leave an empty line to preserve line numbers). 20566if test "x$srcdir" = x.; then 20567 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20568h 20569s/// 20570s/^/:/ 20571s/[ ]*$/:/ 20572s/:\$(srcdir):/:/g 20573s/:\${srcdir}:/:/g 20574s/:@srcdir@:/:/g 20575s/^:*// 20576s/:*$// 20577x 20578s/\(=[ ]*\).*/\1/ 20579G 20580s/\n// 20581s/^[^=]*=[ ]*$// 20582}' 20583fi 20584 20585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20586fi # test -n "$CONFIG_FILES" 20587 20588 20589eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 20590shift 20591for ac_tag 20592do 20593 case $ac_tag in 20594 :[FHLC]) ac_mode=$ac_tag; continue;; 20595 esac 20596 case $ac_mode$ac_tag in 20597 :[FHL]*:*);; 20598 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20599 :[FH]-) ac_tag=-:-;; 20600 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20601 esac 20602 ac_save_IFS=$IFS 20603 IFS=: 20604 set x $ac_tag 20605 IFS=$ac_save_IFS 20606 shift 20607 ac_file=$1 20608 shift 20609 20610 case $ac_mode in 20611 :L) ac_source=$1;; 20612 :[FH]) 20613 ac_file_inputs= 20614 for ac_f 20615 do 20616 case $ac_f in 20617 -) ac_f="$ac_tmp/stdin";; 20618 *) # Look for the file first in the build tree, then in the source tree 20619 # (if the path is not absolute). The absolute path cannot be DOS-style, 20620 # because $ac_f cannot contain `:'. 20621 test -f "$ac_f" || 20622 case $ac_f in 20623 [\\/$]*) false;; 20624 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20625 esac || 20626 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20627 esac 20628 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20629 as_fn_append ac_file_inputs " '$ac_f'" 20630 done 20631 20632 # Let's still pretend it is `configure' which instantiates (i.e., don't 20633 # use $as_me), people would be surprised to read: 20634 # /* config.h. Generated by config.status. */ 20635 configure_input='Generated from '` 20636 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20637 `' by configure.' 20638 if test x"$ac_file" != x-; then 20639 configure_input="$ac_file. $configure_input" 20640 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20641$as_echo "$as_me: creating $ac_file" >&6;} 20642 fi 20643 # Neutralize special characters interpreted by sed in replacement strings. 20644 case $configure_input in #( 20645 *\&* | *\|* | *\\* ) 20646 ac_sed_conf_input=`$as_echo "$configure_input" | 20647 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20648 *) ac_sed_conf_input=$configure_input;; 20649 esac 20650 20651 case $ac_tag in 20652 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20654 esac 20655 ;; 20656 esac 20657 20658 ac_dir=`$as_dirname -- "$ac_file" || 20659$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20660 X"$ac_file" : 'X\(//\)[^/]' \| \ 20661 X"$ac_file" : 'X\(//\)$' \| \ 20662 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20663$as_echo X"$ac_file" | 20664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20665 s//\1/ 20666 q 20667 } 20668 /^X\(\/\/\)[^/].*/{ 20669 s//\1/ 20670 q 20671 } 20672 /^X\(\/\/\)$/{ 20673 s//\1/ 20674 q 20675 } 20676 /^X\(\/\).*/{ 20677 s//\1/ 20678 q 20679 } 20680 s/.*/./; q'` 20681 as_dir="$ac_dir"; as_fn_mkdir_p 20682 ac_builddir=. 20683 20684case "$ac_dir" in 20685.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20686*) 20687 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20688 # A ".." for each directory in $ac_dir_suffix. 20689 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20690 case $ac_top_builddir_sub in 20691 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20692 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20693 esac ;; 20694esac 20695ac_abs_top_builddir=$ac_pwd 20696ac_abs_builddir=$ac_pwd$ac_dir_suffix 20697# for backward compatibility: 20698ac_top_builddir=$ac_top_build_prefix 20699 20700case $srcdir in 20701 .) # We are building in place. 20702 ac_srcdir=. 20703 ac_top_srcdir=$ac_top_builddir_sub 20704 ac_abs_top_srcdir=$ac_pwd ;; 20705 [\\/]* | ?:[\\/]* ) # Absolute name. 20706 ac_srcdir=$srcdir$ac_dir_suffix; 20707 ac_top_srcdir=$srcdir 20708 ac_abs_top_srcdir=$srcdir ;; 20709 *) # Relative name. 20710 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20711 ac_top_srcdir=$ac_top_build_prefix$srcdir 20712 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20713esac 20714ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20715 20716 20717 case $ac_mode in 20718 :F) 20719 # 20720 # CONFIG_FILE 20721 # 20722 20723 case $INSTALL in 20724 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20725 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20726 esac 20727 ac_MKDIR_P=$MKDIR_P 20728 case $MKDIR_P in 20729 [\\/$]* | ?:[\\/]* ) ;; 20730 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20731 esac 20732_ACEOF 20733 20734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20735# If the template does not know about datarootdir, expand it. 20736# FIXME: This hack should be removed a few years after 2.60. 20737ac_datarootdir_hack=; ac_datarootdir_seen= 20738ac_sed_dataroot=' 20739/datarootdir/ { 20740 p 20741 q 20742} 20743/@datadir@/p 20744/@docdir@/p 20745/@infodir@/p 20746/@localedir@/p 20747/@mandir@/p' 20748case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20749*datarootdir*) ac_datarootdir_seen=yes;; 20750*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20752$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20753_ACEOF 20754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20755 ac_datarootdir_hack=' 20756 s&@datadir@&$datadir&g 20757 s&@docdir@&$docdir&g 20758 s&@infodir@&$infodir&g 20759 s&@localedir@&$localedir&g 20760 s&@mandir@&$mandir&g 20761 s&\\\${datarootdir}&$datarootdir&g' ;; 20762esac 20763_ACEOF 20764 20765# Neutralize VPATH when `$srcdir' = `.'. 20766# Shell code in configure.ac might set extrasub. 20767# FIXME: do we really want to maintain this feature? 20768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20769ac_sed_extra="$ac_vpsub 20770$extrasub 20771_ACEOF 20772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20773:t 20774/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20775s|@configure_input@|$ac_sed_conf_input|;t t 20776s&@top_builddir@&$ac_top_builddir_sub&;t t 20777s&@top_build_prefix@&$ac_top_build_prefix&;t t 20778s&@srcdir@&$ac_srcdir&;t t 20779s&@abs_srcdir@&$ac_abs_srcdir&;t t 20780s&@top_srcdir@&$ac_top_srcdir&;t t 20781s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20782s&@builddir@&$ac_builddir&;t t 20783s&@abs_builddir@&$ac_abs_builddir&;t t 20784s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20785s&@INSTALL@&$ac_INSTALL&;t t 20786s&@MKDIR_P@&$ac_MKDIR_P&;t t 20787$ac_datarootdir_hack 20788" 20789eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20790 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20791 20792test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20793 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20794 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20795 "$ac_tmp/out"`; test -z "$ac_out"; } && 20796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20797which seems to be undefined. Please make sure it is defined" >&5 20798$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20799which seems to be undefined. Please make sure it is defined" >&2;} 20800 20801 rm -f "$ac_tmp/stdin" 20802 case $ac_file in 20803 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20804 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20805 esac \ 20806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20807 ;; 20808 20809 20810 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20811$as_echo "$as_me: executing $ac_file commands" >&6;} 20812 ;; 20813 esac 20814 20815 20816 case $ac_file$ac_mode in 20817 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20818 # Older Autoconf quotes --file arguments for eval, but not when files 20819 # are listed without --file. Let's play safe and only enable the eval 20820 # if we detect the quoting. 20821 case $CONFIG_FILES in 20822 *\'*) eval set x "$CONFIG_FILES" ;; 20823 *) set x $CONFIG_FILES ;; 20824 esac 20825 shift 20826 for mf 20827 do 20828 # Strip MF so we end up with the name of the file. 20829 mf=`echo "$mf" | sed -e 's/:.*$//'` 20830 # Check whether this is an Automake generated Makefile or not. 20831 # We used to match only the files named 'Makefile.in', but 20832 # some people rename them; so instead we look at the file content. 20833 # Grep'ing the first line is not enough: some people post-process 20834 # each Makefile.in and add a new line on top of each file to say so. 20835 # Grep'ing the whole file is not good either: AIX grep has a line 20836 # limit of 2048, but all sed's we know have understand at least 4000. 20837 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20838 dirpart=`$as_dirname -- "$mf" || 20839$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20840 X"$mf" : 'X\(//\)[^/]' \| \ 20841 X"$mf" : 'X\(//\)$' \| \ 20842 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20843$as_echo X"$mf" | 20844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20845 s//\1/ 20846 q 20847 } 20848 /^X\(\/\/\)[^/].*/{ 20849 s//\1/ 20850 q 20851 } 20852 /^X\(\/\/\)$/{ 20853 s//\1/ 20854 q 20855 } 20856 /^X\(\/\).*/{ 20857 s//\1/ 20858 q 20859 } 20860 s/.*/./; q'` 20861 else 20862 continue 20863 fi 20864 # Extract the definition of DEPDIR, am__include, and am__quote 20865 # from the Makefile without running 'make'. 20866 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20867 test -z "$DEPDIR" && continue 20868 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20869 test -z "$am__include" && continue 20870 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20871 # Find all dependency output files, they are included files with 20872 # $(DEPDIR) in their names. We invoke sed twice because it is the 20873 # simplest approach to changing $(DEPDIR) to its actual value in the 20874 # expansion. 20875 for file in `sed -n " 20876 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20877 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20878 # Make sure the directory exists. 20879 test -f "$dirpart/$file" && continue 20880 fdir=`$as_dirname -- "$file" || 20881$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20882 X"$file" : 'X\(//\)[^/]' \| \ 20883 X"$file" : 'X\(//\)$' \| \ 20884 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20885$as_echo X"$file" | 20886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20887 s//\1/ 20888 q 20889 } 20890 /^X\(\/\/\)[^/].*/{ 20891 s//\1/ 20892 q 20893 } 20894 /^X\(\/\/\)$/{ 20895 s//\1/ 20896 q 20897 } 20898 /^X\(\/\).*/{ 20899 s//\1/ 20900 q 20901 } 20902 s/.*/./; q'` 20903 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20904 # echo "creating $dirpart/$file" 20905 echo '# dummy' > "$dirpart/$file" 20906 done 20907 done 20908} 20909 ;; 20910 "libtool":C) 20911 20912 # See if we are running on zsh, and set the options that allow our 20913 # commands through without removal of \ escapes. 20914 if test -n "${ZSH_VERSION+set}"; then 20915 setopt NO_GLOB_SUBST 20916 fi 20917 20918 cfgfile=${ofile}T 20919 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20920 $RM "$cfgfile" 20921 20922 cat <<_LT_EOF >> "$cfgfile" 20923#! $SHELL 20924# Generated automatically by $as_me ($PACKAGE) $VERSION 20925# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20926# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20927 20928# Provide generalized library-building support services. 20929# Written by Gordon Matzigkeit, 1996 20930 20931# Copyright (C) 2014 Free Software Foundation, Inc. 20932# This is free software; see the source for copying conditions. There is NO 20933# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20934 20935# GNU Libtool is free software; you can redistribute it and/or modify 20936# it under the terms of the GNU General Public License as published by 20937# the Free Software Foundation; either version 2 of of the License, or 20938# (at your option) any later version. 20939# 20940# As a special exception to the GNU General Public License, if you 20941# distribute this file as part of a program or library that is built 20942# using GNU Libtool, you may include this file under the same 20943# distribution terms that you use for the rest of that program. 20944# 20945# GNU Libtool is distributed in the hope that it will be useful, but 20946# WITHOUT ANY WARRANTY; without even the implied warranty of 20947# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20948# GNU General Public License for more details. 20949# 20950# You should have received a copy of the GNU General Public License 20951# along with this program. If not, see <http://www.gnu.org/licenses/>. 20952 20953 20954# The names of the tagged configurations supported by this script. 20955available_tags='' 20956 20957# Configured defaults for sys_lib_dlsearch_path munging. 20958: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20959 20960# ### BEGIN LIBTOOL CONFIG 20961 20962# Which release of libtool.m4 was used? 20963macro_version=$macro_version 20964macro_revision=$macro_revision 20965 20966# Whether or not to build shared libraries. 20967build_libtool_libs=$enable_shared 20968 20969# Whether or not to build static libraries. 20970build_old_libs=$enable_static 20971 20972# What type of objects to build. 20973pic_mode=$pic_mode 20974 20975# Whether or not to optimize for fast installation. 20976fast_install=$enable_fast_install 20977 20978# Shared archive member basename,for filename based shared library versioning on AIX. 20979shared_archive_member_spec=$shared_archive_member_spec 20980 20981# Shell to use when invoking shell scripts. 20982SHELL=$lt_SHELL 20983 20984# An echo program that protects backslashes. 20985ECHO=$lt_ECHO 20986 20987# The PATH separator for the build system. 20988PATH_SEPARATOR=$lt_PATH_SEPARATOR 20989 20990# The host system. 20991host_alias=$host_alias 20992host=$host 20993host_os=$host_os 20994 20995# The build system. 20996build_alias=$build_alias 20997build=$build 20998build_os=$build_os 20999 21000# A sed program that does not truncate output. 21001SED=$lt_SED 21002 21003# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21004Xsed="\$SED -e 1s/^X//" 21005 21006# A grep program that handles long lines. 21007GREP=$lt_GREP 21008 21009# An ERE matcher. 21010EGREP=$lt_EGREP 21011 21012# A literal string matcher. 21013FGREP=$lt_FGREP 21014 21015# A BSD- or MS-compatible name lister. 21016NM=$lt_NM 21017 21018# Whether we need soft or hard links. 21019LN_S=$lt_LN_S 21020 21021# What is the maximum length of a command? 21022max_cmd_len=$max_cmd_len 21023 21024# Object file suffix (normally "o"). 21025objext=$ac_objext 21026 21027# Executable file suffix (normally ""). 21028exeext=$exeext 21029 21030# whether the shell understands "unset". 21031lt_unset=$lt_unset 21032 21033# turn spaces into newlines. 21034SP2NL=$lt_lt_SP2NL 21035 21036# turn newlines into spaces. 21037NL2SP=$lt_lt_NL2SP 21038 21039# convert \$build file names to \$host format. 21040to_host_file_cmd=$lt_cv_to_host_file_cmd 21041 21042# convert \$build files to toolchain format. 21043to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21044 21045# An object symbol dumper. 21046OBJDUMP=$lt_OBJDUMP 21047 21048# Method to check whether dependent libraries are shared objects. 21049deplibs_check_method=$lt_deplibs_check_method 21050 21051# Command to use when deplibs_check_method = "file_magic". 21052file_magic_cmd=$lt_file_magic_cmd 21053 21054# How to find potential files when deplibs_check_method = "file_magic". 21055file_magic_glob=$lt_file_magic_glob 21056 21057# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21058want_nocaseglob=$lt_want_nocaseglob 21059 21060# DLL creation program. 21061DLLTOOL=$lt_DLLTOOL 21062 21063# Command to associate shared and link libraries. 21064sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21065 21066# The archiver. 21067AR=$lt_AR 21068 21069# Flags to create an archive. 21070AR_FLAGS=$lt_AR_FLAGS 21071 21072# How to feed a file listing to the archiver. 21073archiver_list_spec=$lt_archiver_list_spec 21074 21075# A symbol stripping program. 21076STRIP=$lt_STRIP 21077 21078# Commands used to install an old-style archive. 21079RANLIB=$lt_RANLIB 21080old_postinstall_cmds=$lt_old_postinstall_cmds 21081old_postuninstall_cmds=$lt_old_postuninstall_cmds 21082 21083# Whether to use a lock for old archive extraction. 21084lock_old_archive_extraction=$lock_old_archive_extraction 21085 21086# A C compiler. 21087LTCC=$lt_CC 21088 21089# LTCC compiler flags. 21090LTCFLAGS=$lt_CFLAGS 21091 21092# Take the output of nm and produce a listing of raw symbols and C names. 21093global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21094 21095# Transform the output of nm in a proper C declaration. 21096global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21097 21098# Transform the output of nm into a list of symbols to manually relocate. 21099global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21100 21101# Transform the output of nm in a C name address pair. 21102global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21103 21104# Transform the output of nm in a C name address pair when lib prefix is needed. 21105global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21106 21107# The name lister interface. 21108nm_interface=$lt_lt_cv_nm_interface 21109 21110# Specify filename containing input files for \$NM. 21111nm_file_list_spec=$lt_nm_file_list_spec 21112 21113# The root where to search for dependent libraries,and where our libraries should be installed. 21114lt_sysroot=$lt_sysroot 21115 21116# Command to truncate a binary pipe. 21117lt_truncate_bin=$lt_lt_cv_truncate_bin 21118 21119# The name of the directory that contains temporary libtool files. 21120objdir=$objdir 21121 21122# Used to examine libraries when file_magic_cmd begins with "file". 21123MAGIC_CMD=$MAGIC_CMD 21124 21125# Must we lock files when doing compilation? 21126need_locks=$lt_need_locks 21127 21128# Manifest tool. 21129MANIFEST_TOOL=$lt_MANIFEST_TOOL 21130 21131# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21132DSYMUTIL=$lt_DSYMUTIL 21133 21134# Tool to change global to local symbols on Mac OS X. 21135NMEDIT=$lt_NMEDIT 21136 21137# Tool to manipulate fat objects and archives on Mac OS X. 21138LIPO=$lt_LIPO 21139 21140# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21141OTOOL=$lt_OTOOL 21142 21143# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21144OTOOL64=$lt_OTOOL64 21145 21146# Old archive suffix (normally "a"). 21147libext=$libext 21148 21149# Shared library suffix (normally ".so"). 21150shrext_cmds=$lt_shrext_cmds 21151 21152# The commands to extract the exported symbol list from a shared archive. 21153extract_expsyms_cmds=$lt_extract_expsyms_cmds 21154 21155# Variables whose values should be saved in libtool wrapper scripts and 21156# restored at link time. 21157variables_saved_for_relink=$lt_variables_saved_for_relink 21158 21159# Do we need the "lib" prefix for modules? 21160need_lib_prefix=$need_lib_prefix 21161 21162# Do we need a version for libraries? 21163need_version=$need_version 21164 21165# Library versioning type. 21166version_type=$version_type 21167 21168# Shared library runtime path variable. 21169runpath_var=$runpath_var 21170 21171# Shared library path variable. 21172shlibpath_var=$shlibpath_var 21173 21174# Is shlibpath searched before the hard-coded library search path? 21175shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21176 21177# Format of library name prefix. 21178libname_spec=$lt_libname_spec 21179 21180# List of archive names. First name is the real one, the rest are links. 21181# The last name is the one that the linker finds with -lNAME 21182library_names_spec=$lt_library_names_spec 21183 21184# The coded name of the library, if different from the real name. 21185soname_spec=$lt_soname_spec 21186 21187# Permission mode override for installation of shared libraries. 21188install_override_mode=$lt_install_override_mode 21189 21190# Command to use after installation of a shared archive. 21191postinstall_cmds=$lt_postinstall_cmds 21192 21193# Command to use after uninstallation of a shared archive. 21194postuninstall_cmds=$lt_postuninstall_cmds 21195 21196# Commands used to finish a libtool library installation in a directory. 21197finish_cmds=$lt_finish_cmds 21198 21199# As "finish_cmds", except a single script fragment to be evaled but 21200# not shown. 21201finish_eval=$lt_finish_eval 21202 21203# Whether we should hardcode library paths into libraries. 21204hardcode_into_libs=$hardcode_into_libs 21205 21206# Compile-time system search path for libraries. 21207sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21208 21209# Detected run-time system search path for libraries. 21210sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21211 21212# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21213configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21214 21215# Whether dlopen is supported. 21216dlopen_support=$enable_dlopen 21217 21218# Whether dlopen of programs is supported. 21219dlopen_self=$enable_dlopen_self 21220 21221# Whether dlopen of statically linked programs is supported. 21222dlopen_self_static=$enable_dlopen_self_static 21223 21224# Commands to strip libraries. 21225old_striplib=$lt_old_striplib 21226striplib=$lt_striplib 21227 21228 21229# The linker used to build libraries. 21230LD=$lt_LD 21231 21232# How to create reloadable object files. 21233reload_flag=$lt_reload_flag 21234reload_cmds=$lt_reload_cmds 21235 21236# Commands used to build an old-style archive. 21237old_archive_cmds=$lt_old_archive_cmds 21238 21239# A language specific compiler. 21240CC=$lt_compiler 21241 21242# Is the compiler the GNU compiler? 21243with_gcc=$GCC 21244 21245# Compiler flag to turn off builtin functions. 21246no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21247 21248# Additional compiler flags for building library objects. 21249pic_flag=$lt_lt_prog_compiler_pic 21250 21251# How to pass a linker flag through the compiler. 21252wl=$lt_lt_prog_compiler_wl 21253 21254# Compiler flag to prevent dynamic linking. 21255link_static_flag=$lt_lt_prog_compiler_static 21256 21257# Does compiler simultaneously support -c and -o options? 21258compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21259 21260# Whether or not to add -lc for building shared libraries. 21261build_libtool_need_lc=$archive_cmds_need_lc 21262 21263# Whether or not to disallow shared libs when runtime libs are static. 21264allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21265 21266# Compiler flag to allow reflexive dlopens. 21267export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21268 21269# Compiler flag to generate shared objects directly from archives. 21270whole_archive_flag_spec=$lt_whole_archive_flag_spec 21271 21272# Whether the compiler copes with passing no objects directly. 21273compiler_needs_object=$lt_compiler_needs_object 21274 21275# Create an old-style archive from a shared archive. 21276old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21277 21278# Create a temporary old-style archive to link instead of a shared archive. 21279old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21280 21281# Commands used to build a shared archive. 21282archive_cmds=$lt_archive_cmds 21283archive_expsym_cmds=$lt_archive_expsym_cmds 21284 21285# Commands used to build a loadable module if different from building 21286# a shared archive. 21287module_cmds=$lt_module_cmds 21288module_expsym_cmds=$lt_module_expsym_cmds 21289 21290# Whether we are building with GNU ld or not. 21291with_gnu_ld=$lt_with_gnu_ld 21292 21293# Flag that allows shared libraries with undefined symbols to be built. 21294allow_undefined_flag=$lt_allow_undefined_flag 21295 21296# Flag that enforces no undefined symbols. 21297no_undefined_flag=$lt_no_undefined_flag 21298 21299# Flag to hardcode \$libdir into a binary during linking. 21300# This must work even if \$libdir does not exist 21301hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21302 21303# Whether we need a single "-rpath" flag with a separated argument. 21304hardcode_libdir_separator=$lt_hardcode_libdir_separator 21305 21306# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21307# DIR into the resulting binary. 21308hardcode_direct=$hardcode_direct 21309 21310# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21311# DIR into the resulting binary and the resulting library dependency is 21312# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21313# library is relocated. 21314hardcode_direct_absolute=$hardcode_direct_absolute 21315 21316# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21317# into the resulting binary. 21318hardcode_minus_L=$hardcode_minus_L 21319 21320# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21321# into the resulting binary. 21322hardcode_shlibpath_var=$hardcode_shlibpath_var 21323 21324# Set to "yes" if building a shared library automatically hardcodes DIR 21325# into the library and all subsequent libraries and executables linked 21326# against it. 21327hardcode_automatic=$hardcode_automatic 21328 21329# Set to yes if linker adds runtime paths of dependent libraries 21330# to runtime path list. 21331inherit_rpath=$inherit_rpath 21332 21333# Whether libtool must link a program against all its dependency libraries. 21334link_all_deplibs=$link_all_deplibs 21335 21336# Set to "yes" if exported symbols are required. 21337always_export_symbols=$always_export_symbols 21338 21339# The commands to list exported symbols. 21340export_symbols_cmds=$lt_export_symbols_cmds 21341 21342# Symbols that should not be listed in the preloaded symbols. 21343exclude_expsyms=$lt_exclude_expsyms 21344 21345# Symbols that must always be exported. 21346include_expsyms=$lt_include_expsyms 21347 21348# Commands necessary for linking programs (against libraries) with templates. 21349prelink_cmds=$lt_prelink_cmds 21350 21351# Commands necessary for finishing linking programs. 21352postlink_cmds=$lt_postlink_cmds 21353 21354# Specify filename containing input files. 21355file_list_spec=$lt_file_list_spec 21356 21357# How to hardcode a shared library path into an executable. 21358hardcode_action=$hardcode_action 21359 21360# ### END LIBTOOL CONFIG 21361 21362_LT_EOF 21363 21364 cat <<'_LT_EOF' >> "$cfgfile" 21365 21366# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21367 21368# func_munge_path_list VARIABLE PATH 21369# ----------------------------------- 21370# VARIABLE is name of variable containing _space_ separated list of 21371# directories to be munged by the contents of PATH, which is string 21372# having a format: 21373# "DIR[:DIR]:" 21374# string "DIR[ DIR]" will be prepended to VARIABLE 21375# ":DIR[:DIR]" 21376# string "DIR[ DIR]" will be appended to VARIABLE 21377# "DIRP[:DIRP]::[DIRA:]DIRA" 21378# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21379# "DIRA[ DIRA]" will be appended to VARIABLE 21380# "DIR[:DIR]" 21381# VARIABLE will be replaced by "DIR[ DIR]" 21382func_munge_path_list () 21383{ 21384 case x$2 in 21385 x) 21386 ;; 21387 *:) 21388 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21389 ;; 21390 x:*) 21391 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21392 ;; 21393 *::*) 21394 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21395 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21396 ;; 21397 *) 21398 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21399 ;; 21400 esac 21401} 21402 21403 21404# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21405func_cc_basename () 21406{ 21407 for cc_temp in $*""; do 21408 case $cc_temp in 21409 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21410 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21411 \-*) ;; 21412 *) break;; 21413 esac 21414 done 21415 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21416} 21417 21418 21419# ### END FUNCTIONS SHARED WITH CONFIGURE 21420 21421_LT_EOF 21422 21423 case $host_os in 21424 aix3*) 21425 cat <<\_LT_EOF >> "$cfgfile" 21426# AIX sometimes has problems with the GCC collect2 program. For some 21427# reason, if we set the COLLECT_NAMES environment variable, the problems 21428# vanish in a puff of smoke. 21429if test set != "${COLLECT_NAMES+set}"; then 21430 COLLECT_NAMES= 21431 export COLLECT_NAMES 21432fi 21433_LT_EOF 21434 ;; 21435 esac 21436 21437 21438ltmain=$ac_aux_dir/ltmain.sh 21439 21440 21441 # We use sed instead of cat because bash on DJGPP gets confused if 21442 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21443 # text mode, it properly converts lines to CR/LF. This bash problem 21444 # is reportedly fixed, but why not run on old versions too? 21445 sed '$q' "$ltmain" >> "$cfgfile" \ 21446 || (rm -f "$cfgfile"; exit 1) 21447 21448 mv -f "$cfgfile" "$ofile" || 21449 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21450 chmod +x "$ofile" 21451 21452 ;; 21453 21454 esac 21455done # for ac_tag 21456 21457 21458as_fn_exit 0 21459_ACEOF 21460ac_clean_files=$ac_clean_files_save 21461 21462test $ac_write_fail = 0 || 21463 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21464 21465 21466# configure is writing to config.log, and then calls config.status. 21467# config.status does its own redirection, appending to config.log. 21468# Unfortunately, on DOS this fails, as config.log is still kept open 21469# by configure, so config.status won't be able to write to it; its 21470# output is simply discarded. So we exec the FD to /dev/null, 21471# effectively closing config.log, so it can be properly (re)opened and 21472# appended to by config.status. When coming back to configure, we 21473# need to make the FD available again. 21474if test "$no_create" != yes; then 21475 ac_cs_success=: 21476 ac_config_status_args= 21477 test "$silent" = yes && 21478 ac_config_status_args="$ac_config_status_args --quiet" 21479 exec 5>/dev/null 21480 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21481 exec 5>>config.log 21482 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21483 # would make configure fail if this is the last instruction. 21484 $ac_cs_success || as_fn_exit 1 21485fi 21486if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21488$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21489fi 21490 21491