1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-input-libinput 0.30.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/issues 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='xf86-input-libinput' 593PACKAGE_TARNAME='xf86-input-libinput' 594PACKAGE_VERSION='0.30.0' 595PACKAGE_STRING='xf86-input-libinput 0.30.0' 596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/issues' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640DRIVER_NAME 641sdkdir 642xorgconfdir 643inputdir 644LIBINPUT_LIBS 645LIBINPUT_CFLAGS 646XORG_LIBS 647XORG_CFLAGS 648MAN_SUBSTS 649XORG_MAN_PAGE 650ADMIN_MAN_DIR 651DRIVER_MAN_DIR 652MISC_MAN_DIR 653FILE_MAN_DIR 654LIB_MAN_DIR 655APP_MAN_DIR 656ADMIN_MAN_SUFFIX 657DRIVER_MAN_SUFFIX 658MISC_MAN_SUFFIX 659FILE_MAN_SUFFIX 660LIB_MAN_SUFFIX 661APP_MAN_SUFFIX 662INSTALL_CMD 663PKG_CONFIG_LIBDIR 664PKG_CONFIG_PATH 665PKG_CONFIG 666CHANGELOG_CMD 667STRICT_CFLAGS 668CWARNFLAGS 669BASE_CFLAGS 670CPP 671LT_SYS_LIBRARY_PATH 672OTOOL64 673OTOOL 674LIPO 675NMEDIT 676DSYMUTIL 677MANIFEST_TOOL 678RANLIB 679ac_ct_AR 680AR 681DLLTOOL 682OBJDUMP 683LN_S 684NM 685ac_ct_DUMPBIN 686DUMPBIN 687LD 688FGREP 689EGREP 690GREP 691SED 692am__fastdepCC_FALSE 693am__fastdepCC_TRUE 694CCDEPMODE 695am__nodep 696AMDEPBACKSLASH 697AMDEP_FALSE 698AMDEP_TRUE 699am__include 700DEPDIR 701OBJEXT 702EXEEXT 703ac_ct_CC 704CPPFLAGS 705LDFLAGS 706CFLAGS 707CC 708host_os 709host_vendor 710host_cpu 711host 712build_os 713build_vendor 714build_cpu 715build 716LIBTOOL 717AM_BACKSLASH 718AM_DEFAULT_VERBOSITY 719AM_DEFAULT_V 720AM_V 721am__untar 722am__tar 723AMTAR 724am__leading_dot 725SET_MAKE 726AWK 727mkdir_p 728MKDIR_P 729INSTALL_STRIP_PROGRAM 730STRIP 731install_sh 732MAKEINFO 733AUTOHEADER 734AUTOMAKE 735AUTOCONF 736ACLOCAL 737VERSION 738PACKAGE 739CYGPATH_W 740am__isrc 741INSTALL_DATA 742INSTALL_SCRIPT 743INSTALL_PROGRAM 744target_alias 745host_alias 746build_alias 747LIBS 748ECHO_T 749ECHO_N 750ECHO_C 751DEFS 752mandir 753localedir 754libdir 755psdir 756pdfdir 757dvidir 758htmldir 759infodir 760docdir 761oldincludedir 762includedir 763localstatedir 764sharedstatedir 765sysconfdir 766datadir 767datarootdir 768libexecdir 769sbindir 770bindir 771program_transform_name 772prefix 773exec_prefix 774PACKAGE_URL 775PACKAGE_BUGREPORT 776PACKAGE_STRING 777PACKAGE_VERSION 778PACKAGE_TARNAME 779PACKAGE_NAME 780PATH_SEPARATOR 781SHELL 782am__quote' 783ac_subst_files='' 784ac_user_opts=' 785enable_option_checking 786enable_silent_rules 787enable_static 788enable_shared 789with_pic 790enable_fast_install 791with_aix_soname 792enable_dependency_tracking 793with_gnu_ld 794with_sysroot 795enable_libtool_lock 796enable_selective_werror 797enable_strict_compilation 798with_xorg_module_dir 799with_xorg_conf_dir 800with_sdkdir 801' 802 ac_precious_vars='build_alias 803host_alias 804target_alias 805CC 806CFLAGS 807LDFLAGS 808LIBS 809CPPFLAGS 810LT_SYS_LIBRARY_PATH 811CPP 812PKG_CONFIG 813PKG_CONFIG_PATH 814PKG_CONFIG_LIBDIR 815XORG_CFLAGS 816XORG_LIBS 817LIBINPUT_CFLAGS 818LIBINPUT_LIBS' 819 820 821# Initialize some variables set by options. 822ac_init_help= 823ac_init_version=false 824ac_unrecognized_opts= 825ac_unrecognized_sep= 826# The variables have the same names as the options, with 827# dashes changed to underlines. 828cache_file=/dev/null 829exec_prefix=NONE 830no_create= 831no_recursion= 832prefix=NONE 833program_prefix=NONE 834program_suffix=NONE 835program_transform_name=s,x,x, 836silent= 837site= 838srcdir= 839verbose= 840x_includes=NONE 841x_libraries=NONE 842 843# Installation directory options. 844# These are left unexpanded so users can "make install exec_prefix=/foo" 845# and all the variables that are supposed to be based on exec_prefix 846# by default will actually change. 847# Use braces instead of parens because sh, perl, etc. also accept them. 848# (The list follows the same order as the GNU Coding Standards.) 849bindir='${exec_prefix}/bin' 850sbindir='${exec_prefix}/sbin' 851libexecdir='${exec_prefix}/libexec' 852datarootdir='${prefix}/share' 853datadir='${datarootdir}' 854sysconfdir='${prefix}/etc' 855sharedstatedir='${prefix}/com' 856localstatedir='${prefix}/var' 857includedir='${prefix}/include' 858oldincludedir='/usr/include' 859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 860infodir='${datarootdir}/info' 861htmldir='${docdir}' 862dvidir='${docdir}' 863pdfdir='${docdir}' 864psdir='${docdir}' 865libdir='${exec_prefix}/lib' 866localedir='${datarootdir}/locale' 867mandir='${datarootdir}/man' 868 869ac_prev= 870ac_dashdash= 871for ac_option 872do 873 # If the previous option needs an argument, assign it. 874 if test -n "$ac_prev"; then 875 eval $ac_prev=\$ac_option 876 ac_prev= 877 continue 878 fi 879 880 case $ac_option in 881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 882 *=) ac_optarg= ;; 883 *) ac_optarg=yes ;; 884 esac 885 886 # Accept the important Cygnus configure options, so we can diagnose typos. 887 888 case $ac_dashdash$ac_option in 889 --) 890 ac_dashdash=yes ;; 891 892 -bindir | --bindir | --bindi | --bind | --bin | --bi) 893 ac_prev=bindir ;; 894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 895 bindir=$ac_optarg ;; 896 897 -build | --build | --buil | --bui | --bu) 898 ac_prev=build_alias ;; 899 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 900 build_alias=$ac_optarg ;; 901 902 -cache-file | --cache-file | --cache-fil | --cache-fi \ 903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 904 ac_prev=cache_file ;; 905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 907 cache_file=$ac_optarg ;; 908 909 --config-cache | -C) 910 cache_file=config.cache ;; 911 912 -datadir | --datadir | --datadi | --datad) 913 ac_prev=datadir ;; 914 -datadir=* | --datadir=* | --datadi=* | --datad=*) 915 datadir=$ac_optarg ;; 916 917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 918 | --dataroo | --dataro | --datar) 919 ac_prev=datarootdir ;; 920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 922 datarootdir=$ac_optarg ;; 923 924 -disable-* | --disable-*) 925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 926 # Reject names that are not valid shell variable names. 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 928 as_fn_error $? "invalid feature name: $ac_useropt" 929 ac_useropt_orig=$ac_useropt 930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 931 case $ac_user_opts in 932 *" 933"enable_$ac_useropt" 934"*) ;; 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 936 ac_unrecognized_sep=', ';; 937 esac 938 eval enable_$ac_useropt=no ;; 939 940 -docdir | --docdir | --docdi | --doc | --do) 941 ac_prev=docdir ;; 942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 943 docdir=$ac_optarg ;; 944 945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 946 ac_prev=dvidir ;; 947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 948 dvidir=$ac_optarg ;; 949 950 -enable-* | --enable-*) 951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 952 # Reject names that are not valid shell variable names. 953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 954 as_fn_error $? "invalid feature name: $ac_useropt" 955 ac_useropt_orig=$ac_useropt 956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 957 case $ac_user_opts in 958 *" 959"enable_$ac_useropt" 960"*) ;; 961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 962 ac_unrecognized_sep=', ';; 963 esac 964 eval enable_$ac_useropt=\$ac_optarg ;; 965 966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 968 | --exec | --exe | --ex) 969 ac_prev=exec_prefix ;; 970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 972 | --exec=* | --exe=* | --ex=*) 973 exec_prefix=$ac_optarg ;; 974 975 -gas | --gas | --ga | --g) 976 # Obsolete; use --with-gas. 977 with_gas=yes ;; 978 979 -help | --help | --hel | --he | -h) 980 ac_init_help=long ;; 981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 982 ac_init_help=recursive ;; 983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 984 ac_init_help=short ;; 985 986 -host | --host | --hos | --ho) 987 ac_prev=host_alias ;; 988 -host=* | --host=* | --hos=* | --ho=*) 989 host_alias=$ac_optarg ;; 990 991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 992 ac_prev=htmldir ;; 993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 994 | --ht=*) 995 htmldir=$ac_optarg ;; 996 997 -includedir | --includedir | --includedi | --included | --include \ 998 | --includ | --inclu | --incl | --inc) 999 ac_prev=includedir ;; 1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1001 | --includ=* | --inclu=* | --incl=* | --inc=*) 1002 includedir=$ac_optarg ;; 1003 1004 -infodir | --infodir | --infodi | --infod | --info | --inf) 1005 ac_prev=infodir ;; 1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1007 infodir=$ac_optarg ;; 1008 1009 -libdir | --libdir | --libdi | --libd) 1010 ac_prev=libdir ;; 1011 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1012 libdir=$ac_optarg ;; 1013 1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1015 | --libexe | --libex | --libe) 1016 ac_prev=libexecdir ;; 1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1018 | --libexe=* | --libex=* | --libe=*) 1019 libexecdir=$ac_optarg ;; 1020 1021 -localedir | --localedir | --localedi | --localed | --locale) 1022 ac_prev=localedir ;; 1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1024 localedir=$ac_optarg ;; 1025 1026 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1027 | --localstate | --localstat | --localsta | --localst | --locals) 1028 ac_prev=localstatedir ;; 1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1031 localstatedir=$ac_optarg ;; 1032 1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1034 ac_prev=mandir ;; 1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1036 mandir=$ac_optarg ;; 1037 1038 -nfp | --nfp | --nf) 1039 # Obsolete; use --without-fp. 1040 with_fp=no ;; 1041 1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1043 | --no-cr | --no-c | -n) 1044 no_create=yes ;; 1045 1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1048 no_recursion=yes ;; 1049 1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1052 | --oldin | --oldi | --old | --ol | --o) 1053 ac_prev=oldincludedir ;; 1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1057 oldincludedir=$ac_optarg ;; 1058 1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1060 ac_prev=prefix ;; 1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1062 prefix=$ac_optarg ;; 1063 1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1065 | --program-pre | --program-pr | --program-p) 1066 ac_prev=program_prefix ;; 1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1069 program_prefix=$ac_optarg ;; 1070 1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1072 | --program-suf | --program-su | --program-s) 1073 ac_prev=program_suffix ;; 1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1076 program_suffix=$ac_optarg ;; 1077 1078 -program-transform-name | --program-transform-name \ 1079 | --program-transform-nam | --program-transform-na \ 1080 | --program-transform-n | --program-transform- \ 1081 | --program-transform | --program-transfor \ 1082 | --program-transfo | --program-transf \ 1083 | --program-trans | --program-tran \ 1084 | --progr-tra | --program-tr | --program-t) 1085 ac_prev=program_transform_name ;; 1086 -program-transform-name=* | --program-transform-name=* \ 1087 | --program-transform-nam=* | --program-transform-na=* \ 1088 | --program-transform-n=* | --program-transform-=* \ 1089 | --program-transform=* | --program-transfor=* \ 1090 | --program-transfo=* | --program-transf=* \ 1091 | --program-trans=* | --program-tran=* \ 1092 | --progr-tra=* | --program-tr=* | --program-t=*) 1093 program_transform_name=$ac_optarg ;; 1094 1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1096 ac_prev=pdfdir ;; 1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1098 pdfdir=$ac_optarg ;; 1099 1100 -psdir | --psdir | --psdi | --psd | --ps) 1101 ac_prev=psdir ;; 1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1103 psdir=$ac_optarg ;; 1104 1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1106 | -silent | --silent | --silen | --sile | --sil) 1107 silent=yes ;; 1108 1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1110 ac_prev=sbindir ;; 1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1112 | --sbi=* | --sb=*) 1113 sbindir=$ac_optarg ;; 1114 1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1117 | --sharedst | --shareds | --shared | --share | --shar \ 1118 | --sha | --sh) 1119 ac_prev=sharedstatedir ;; 1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1123 | --sha=* | --sh=*) 1124 sharedstatedir=$ac_optarg ;; 1125 1126 -site | --site | --sit) 1127 ac_prev=site ;; 1128 -site=* | --site=* | --sit=*) 1129 site=$ac_optarg ;; 1130 1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1132 ac_prev=srcdir ;; 1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1134 srcdir=$ac_optarg ;; 1135 1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1137 | --syscon | --sysco | --sysc | --sys | --sy) 1138 ac_prev=sysconfdir ;; 1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1141 sysconfdir=$ac_optarg ;; 1142 1143 -target | --target | --targe | --targ | --tar | --ta | --t) 1144 ac_prev=target_alias ;; 1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1146 target_alias=$ac_optarg ;; 1147 1148 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1149 verbose=yes ;; 1150 1151 -version | --version | --versio | --versi | --vers | -V) 1152 ac_init_version=: ;; 1153 1154 -with-* | --with-*) 1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1156 # Reject names that are not valid shell variable names. 1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1158 as_fn_error $? "invalid package name: $ac_useropt" 1159 ac_useropt_orig=$ac_useropt 1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1161 case $ac_user_opts in 1162 *" 1163"with_$ac_useropt" 1164"*) ;; 1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1166 ac_unrecognized_sep=', ';; 1167 esac 1168 eval with_$ac_useropt=\$ac_optarg ;; 1169 1170 -without-* | --without-*) 1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1172 # Reject names that are not valid shell variable names. 1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1174 as_fn_error $? "invalid package name: $ac_useropt" 1175 ac_useropt_orig=$ac_useropt 1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1177 case $ac_user_opts in 1178 *" 1179"with_$ac_useropt" 1180"*) ;; 1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1182 ac_unrecognized_sep=', ';; 1183 esac 1184 eval with_$ac_useropt=no ;; 1185 1186 --x) 1187 # Obsolete; use --with-x. 1188 with_x=yes ;; 1189 1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1191 | --x-incl | --x-inc | --x-in | --x-i) 1192 ac_prev=x_includes ;; 1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1195 x_includes=$ac_optarg ;; 1196 1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1199 ac_prev=x_libraries ;; 1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1202 x_libraries=$ac_optarg ;; 1203 1204 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1205Try \`$0 --help' for more information" 1206 ;; 1207 1208 *=*) 1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1210 # Reject names that are not valid shell variable names. 1211 case $ac_envvar in #( 1212 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1214 esac 1215 eval $ac_envvar=\$ac_optarg 1216 export $ac_envvar ;; 1217 1218 *) 1219 # FIXME: should be removed in autoconf 3.0. 1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1224 ;; 1225 1226 esac 1227done 1228 1229if test -n "$ac_prev"; then 1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1231 as_fn_error $? "missing argument to $ac_option" 1232fi 1233 1234if test -n "$ac_unrecognized_opts"; then 1235 case $enable_option_checking in 1236 no) ;; 1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1239 esac 1240fi 1241 1242# Check all directory arguments for consistency. 1243for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1244 datadir sysconfdir sharedstatedir localstatedir includedir \ 1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1246 libdir localedir mandir 1247do 1248 eval ac_val=\$$ac_var 1249 # Remove trailing slashes. 1250 case $ac_val in 1251 */ ) 1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1253 eval $ac_var=\$ac_val;; 1254 esac 1255 # Be sure to have absolute directory names. 1256 case $ac_val in 1257 [\\/$]* | ?:[\\/]* ) continue;; 1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1259 esac 1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1261done 1262 1263# There might be people who depend on the old broken behavior: `$host' 1264# used to hold the argument of --host etc. 1265# FIXME: To remove some day. 1266build=$build_alias 1267host=$host_alias 1268target=$target_alias 1269 1270# FIXME: To remove some day. 1271if test "x$host_alias" != x; then 1272 if test "x$build_alias" = x; then 1273 cross_compiling=maybe 1274 elif test "x$build_alias" != "x$host_alias"; then 1275 cross_compiling=yes 1276 fi 1277fi 1278 1279ac_tool_prefix= 1280test -n "$host_alias" && ac_tool_prefix=$host_alias- 1281 1282test "$silent" = yes && exec 6>/dev/null 1283 1284 1285ac_pwd=`pwd` && test -n "$ac_pwd" && 1286ac_ls_di=`ls -di .` && 1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1288 as_fn_error $? "working directory cannot be determined" 1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1290 as_fn_error $? "pwd does not report name of working directory" 1291 1292 1293# Find the source files, if location was not specified. 1294if test -z "$srcdir"; then 1295 ac_srcdir_defaulted=yes 1296 # Try the directory containing this script, then the parent directory. 1297 ac_confdir=`$as_dirname -- "$as_myself" || 1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1299 X"$as_myself" : 'X\(//\)[^/]' \| \ 1300 X"$as_myself" : 'X\(//\)$' \| \ 1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1302$as_echo X"$as_myself" | 1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\/\)[^/].*/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\/\)$/{ 1312 s//\1/ 1313 q 1314 } 1315 /^X\(\/\).*/{ 1316 s//\1/ 1317 q 1318 } 1319 s/.*/./; q'` 1320 srcdir=$ac_confdir 1321 if test ! -r "$srcdir/$ac_unique_file"; then 1322 srcdir=.. 1323 fi 1324else 1325 ac_srcdir_defaulted=no 1326fi 1327if test ! -r "$srcdir/$ac_unique_file"; then 1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1330fi 1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1332ac_abs_confdir=`( 1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1334 pwd)` 1335# When building in place, set srcdir=. 1336if test "$ac_abs_confdir" = "$ac_pwd"; then 1337 srcdir=. 1338fi 1339# Remove unnecessary trailing slashes from srcdir. 1340# Double slashes in file names in object file debugging info 1341# mess up M-x gdb in Emacs. 1342case $srcdir in 1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1344esac 1345for ac_var in $ac_precious_vars; do 1346 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1347 eval ac_env_${ac_var}_value=\$${ac_var} 1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1349 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1350done 1351 1352# 1353# Report the --help message. 1354# 1355if test "$ac_init_help" = "long"; then 1356 # Omit some internal or obsolete options to make the list less imposing. 1357 # This message is too long to be a string in the A/UX 3.1 sh. 1358 cat <<_ACEOF 1359\`configure' configures xf86-input-libinput 0.30.0 to adapt to many kinds of systems. 1360 1361Usage: $0 [OPTION]... [VAR=VALUE]... 1362 1363To assign environment variables (e.g., CC, CFLAGS...), specify them as 1364VAR=VALUE. See below for descriptions of some of the useful variables. 1365 1366Defaults for the options are specified in brackets. 1367 1368Configuration: 1369 -h, --help display this help and exit 1370 --help=short display options specific to this package 1371 --help=recursive display the short help of all the included packages 1372 -V, --version display version information and exit 1373 -q, --quiet, --silent do not print \`checking ...' messages 1374 --cache-file=FILE cache test results in FILE [disabled] 1375 -C, --config-cache alias for \`--cache-file=config.cache' 1376 -n, --no-create do not create output files 1377 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1378 1379Installation directories: 1380 --prefix=PREFIX install architecture-independent files in PREFIX 1381 [$ac_default_prefix] 1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1383 [PREFIX] 1384 1385By default, \`make install' will install all the files in 1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1387an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1388for instance \`--prefix=\$HOME'. 1389 1390For better control, use the options below. 1391 1392Fine tuning of the installation directories: 1393 --bindir=DIR user executables [EPREFIX/bin] 1394 --sbindir=DIR system admin executables [EPREFIX/sbin] 1395 --libexecdir=DIR program executables [EPREFIX/libexec] 1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1399 --libdir=DIR object code libraries [EPREFIX/lib] 1400 --includedir=DIR C header files [PREFIX/include] 1401 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1404 --infodir=DIR info documentation [DATAROOTDIR/info] 1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1406 --mandir=DIR man documentation [DATAROOTDIR/man] 1407 --docdir=DIR documentation root 1408 [DATAROOTDIR/doc/xf86-input-libinput] 1409 --htmldir=DIR html documentation [DOCDIR] 1410 --dvidir=DIR dvi documentation [DOCDIR] 1411 --pdfdir=DIR pdf documentation [DOCDIR] 1412 --psdir=DIR ps documentation [DOCDIR] 1413_ACEOF 1414 1415 cat <<\_ACEOF 1416 1417Program names: 1418 --program-prefix=PREFIX prepend PREFIX to installed program names 1419 --program-suffix=SUFFIX append SUFFIX to installed program names 1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1421 1422System types: 1423 --build=BUILD configure for building on BUILD [guessed] 1424 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1425_ACEOF 1426fi 1427 1428if test -n "$ac_init_help"; then 1429 case $ac_init_help in 1430 short | recursive ) echo "Configuration of xf86-input-libinput 0.30.0:";; 1431 esac 1432 cat <<\_ACEOF 1433 1434Optional Features: 1435 --disable-option-checking ignore unrecognized --enable/--with options 1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1438 --enable-silent-rules less verbose build output (undo: "make V=1") 1439 --disable-silent-rules verbose build output (undo: "make V=0") 1440 --enable-static[=PKGS] build static libraries [default=no] 1441 --enable-shared[=PKGS] build shared libraries [default=yes] 1442 --enable-fast-install[=PKGS] 1443 optimize for fast installation [default=yes] 1444 --enable-dependency-tracking 1445 do not reject slow dependency extractors 1446 --disable-dependency-tracking 1447 speeds up one-time build 1448 --disable-libtool-lock avoid locking (might break parallel builds) 1449 --disable-selective-werror 1450 Turn off selective compiler errors. (default: 1451 enabled) 1452 --enable-strict-compilation 1453 Enable all warnings from compiler and make them 1454 errors (default: disabled) 1455 1456Optional Packages: 1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1459 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1460 both] 1461 --with-aix-soname=aix|svr4|both 1462 shared library versioning (aka "SONAME") variant to 1463 provide on AIX, [default=aix]. 1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1465 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1466 compiler's sysroot if not specified). 1467 --with-xorg-module-dir=DIR 1468 Default xorg module directory 1469 [[default=$libdir/xorg/modules]] 1470 --with-xorg-conf-dir=DIR 1471 Default xorg.conf.d directory 1472 [[default=${prefix}/share/X11/xorg.conf.d]] 1473 1474 1475Some influential environment variables: 1476 CC C compiler command 1477 CFLAGS C compiler flags 1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1479 nonstandard directory <lib dir> 1480 LIBS libraries to pass to the linker, e.g. -l<library> 1481 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1482 you have headers in a nonstandard directory <include dir> 1483 LT_SYS_LIBRARY_PATH 1484 User-defined run-time library search path. 1485 CPP C preprocessor 1486 PKG_CONFIG path to pkg-config utility 1487 PKG_CONFIG_PATH 1488 directories to add to pkg-config's search path 1489 PKG_CONFIG_LIBDIR 1490 path overriding pkg-config's built-in search path 1491 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1492 XORG_LIBS linker flags for XORG, overriding pkg-config 1493 LIBINPUT_CFLAGS 1494 C compiler flags for LIBINPUT, overriding pkg-config 1495 LIBINPUT_LIBS 1496 linker flags for LIBINPUT, overriding pkg-config 1497 1498Use these variables to override the choices made by `configure' or to help 1499it to find libraries and programs with nonstandard names/locations. 1500 1501Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/issues>. 1502_ACEOF 1503ac_status=$? 1504fi 1505 1506if test "$ac_init_help" = "recursive"; then 1507 # If there are subdirs, report their specific --help. 1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1509 test -d "$ac_dir" || 1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1511 continue 1512 ac_builddir=. 1513 1514case "$ac_dir" in 1515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1516*) 1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1518 # A ".." for each directory in $ac_dir_suffix. 1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1520 case $ac_top_builddir_sub in 1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1523 esac ;; 1524esac 1525ac_abs_top_builddir=$ac_pwd 1526ac_abs_builddir=$ac_pwd$ac_dir_suffix 1527# for backward compatibility: 1528ac_top_builddir=$ac_top_build_prefix 1529 1530case $srcdir in 1531 .) # We are building in place. 1532 ac_srcdir=. 1533 ac_top_srcdir=$ac_top_builddir_sub 1534 ac_abs_top_srcdir=$ac_pwd ;; 1535 [\\/]* | ?:[\\/]* ) # Absolute name. 1536 ac_srcdir=$srcdir$ac_dir_suffix; 1537 ac_top_srcdir=$srcdir 1538 ac_abs_top_srcdir=$srcdir ;; 1539 *) # Relative name. 1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1541 ac_top_srcdir=$ac_top_build_prefix$srcdir 1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1543esac 1544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1545 1546 cd "$ac_dir" || { ac_status=$?; continue; } 1547 # Check for guested configure. 1548 if test -f "$ac_srcdir/configure.gnu"; then 1549 echo && 1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1551 elif test -f "$ac_srcdir/configure"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure" --help=recursive 1554 else 1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1556 fi || ac_status=$? 1557 cd "$ac_pwd" || { ac_status=$?; break; } 1558 done 1559fi 1560 1561test -n "$ac_init_help" && exit $ac_status 1562if $ac_init_version; then 1563 cat <<\_ACEOF 1564xf86-input-libinput configure 0.30.0 1565generated by GNU Autoconf 2.69 1566 1567Copyright (C) 2012 Free Software Foundation, Inc. 1568This configure script is free software; the Free Software Foundation 1569gives unlimited permission to copy, distribute and modify it. 1570_ACEOF 1571 exit 1572fi 1573 1574## ------------------------ ## 1575## Autoconf initialization. ## 1576## ------------------------ ## 1577 1578# ac_fn_c_try_compile LINENO 1579# -------------------------- 1580# Try to compile conftest.$ac_ext, and return whether this succeeded. 1581ac_fn_c_try_compile () 1582{ 1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1584 rm -f conftest.$ac_objext 1585 if { { ac_try="$ac_compile" 1586case "(($ac_try" in 1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588 *) ac_try_echo=$ac_try;; 1589esac 1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591$as_echo "$ac_try_echo"; } >&5 1592 (eval "$ac_compile") 2>conftest.err 1593 ac_status=$? 1594 if test -s conftest.err; then 1595 grep -v '^ *+' conftest.err >conftest.er1 1596 cat conftest.er1 >&5 1597 mv -f conftest.er1 conftest.err 1598 fi 1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600 test $ac_status = 0; } && { 1601 test -z "$ac_c_werror_flag" || 1602 test ! -s conftest.err 1603 } && test -s conftest.$ac_objext; then : 1604 ac_retval=0 1605else 1606 $as_echo "$as_me: failed program was:" >&5 1607sed 's/^/| /' conftest.$ac_ext >&5 1608 1609 ac_retval=1 1610fi 1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1612 as_fn_set_status $ac_retval 1613 1614} # ac_fn_c_try_compile 1615 1616# ac_fn_c_try_link LINENO 1617# ----------------------- 1618# Try to link conftest.$ac_ext, and return whether this succeeded. 1619ac_fn_c_try_link () 1620{ 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 rm -f conftest.$ac_objext conftest$ac_exeext 1623 if { { ac_try="$ac_link" 1624case "(($ac_try" in 1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1626 *) ac_try_echo=$ac_try;; 1627esac 1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1629$as_echo "$ac_try_echo"; } >&5 1630 (eval "$ac_link") 2>conftest.err 1631 ac_status=$? 1632 if test -s conftest.err; then 1633 grep -v '^ *+' conftest.err >conftest.er1 1634 cat conftest.er1 >&5 1635 mv -f conftest.er1 conftest.err 1636 fi 1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1638 test $ac_status = 0; } && { 1639 test -z "$ac_c_werror_flag" || 1640 test ! -s conftest.err 1641 } && test -s conftest$ac_exeext && { 1642 test "$cross_compiling" = yes || 1643 test -x conftest$ac_exeext 1644 }; then : 1645 ac_retval=0 1646else 1647 $as_echo "$as_me: failed program was:" >&5 1648sed 's/^/| /' conftest.$ac_ext >&5 1649 1650 ac_retval=1 1651fi 1652 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1653 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1654 # interfere with the next link command; also delete a directory that is 1655 # left behind by Apple's compiler. We do this before executing the actions. 1656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1658 as_fn_set_status $ac_retval 1659 1660} # ac_fn_c_try_link 1661 1662# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1663# ------------------------------------------------------- 1664# Tests whether HEADER exists and can be compiled using the include files in 1665# INCLUDES, setting the cache variable VAR accordingly. 1666ac_fn_c_check_header_compile () 1667{ 1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1670$as_echo_n "checking for $2... " >&6; } 1671if eval \${$3+:} false; then : 1672 $as_echo_n "(cached) " >&6 1673else 1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1675/* end confdefs.h. */ 1676$4 1677#include <$2> 1678_ACEOF 1679if ac_fn_c_try_compile "$LINENO"; then : 1680 eval "$3=yes" 1681else 1682 eval "$3=no" 1683fi 1684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1685fi 1686eval ac_res=\$$3 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1688$as_echo "$ac_res" >&6; } 1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1690 1691} # ac_fn_c_check_header_compile 1692 1693# ac_fn_c_try_cpp LINENO 1694# ---------------------- 1695# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1696ac_fn_c_try_cpp () 1697{ 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699 if { { ac_try="$ac_cpp conftest.$ac_ext" 1700case "(($ac_try" in 1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1702 *) ac_try_echo=$ac_try;; 1703esac 1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1705$as_echo "$ac_try_echo"; } >&5 1706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1707 ac_status=$? 1708 if test -s conftest.err; then 1709 grep -v '^ *+' conftest.err >conftest.er1 1710 cat conftest.er1 >&5 1711 mv -f conftest.er1 conftest.err 1712 fi 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1714 test $ac_status = 0; } > conftest.i && { 1715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1716 test ! -s conftest.err 1717 }; then : 1718 ac_retval=0 1719else 1720 $as_echo "$as_me: failed program was:" >&5 1721sed 's/^/| /' conftest.$ac_ext >&5 1722 1723 ac_retval=1 1724fi 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726 as_fn_set_status $ac_retval 1727 1728} # ac_fn_c_try_cpp 1729 1730# ac_fn_c_try_run LINENO 1731# ---------------------- 1732# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1733# that executables *can* be run. 1734ac_fn_c_try_run () 1735{ 1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1737 if { { ac_try="$ac_link" 1738case "(($ac_try" in 1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1740 *) ac_try_echo=$ac_try;; 1741esac 1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1743$as_echo "$ac_try_echo"; } >&5 1744 (eval "$ac_link") 2>&5 1745 ac_status=$? 1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1747 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1748 { { case "(($ac_try" in 1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1750 *) ac_try_echo=$ac_try;; 1751esac 1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1753$as_echo "$ac_try_echo"; } >&5 1754 (eval "$ac_try") 2>&5 1755 ac_status=$? 1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1757 test $ac_status = 0; }; }; then : 1758 ac_retval=0 1759else 1760 $as_echo "$as_me: program exited with status $ac_status" >&5 1761 $as_echo "$as_me: failed program was:" >&5 1762sed 's/^/| /' conftest.$ac_ext >&5 1763 1764 ac_retval=$ac_status 1765fi 1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1768 as_fn_set_status $ac_retval 1769 1770} # ac_fn_c_try_run 1771 1772# ac_fn_c_check_func LINENO FUNC VAR 1773# ---------------------------------- 1774# Tests whether FUNC exists, setting the cache variable VAR accordingly 1775ac_fn_c_check_func () 1776{ 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1779$as_echo_n "checking for $2... " >&6; } 1780if eval \${$3+:} false; then : 1781 $as_echo_n "(cached) " >&6 1782else 1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1784/* end confdefs.h. */ 1785/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1786 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1787#define $2 innocuous_$2 1788 1789/* System header to define __stub macros and hopefully few prototypes, 1790 which can conflict with char $2 (); below. 1791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1792 <limits.h> exists even on freestanding compilers. */ 1793 1794#ifdef __STDC__ 1795# include <limits.h> 1796#else 1797# include <assert.h> 1798#endif 1799 1800#undef $2 1801 1802/* Override any GCC internal prototype to avoid an error. 1803 Use char because int might match the return type of a GCC 1804 builtin and then its argument prototype would still apply. */ 1805#ifdef __cplusplus 1806extern "C" 1807#endif 1808char $2 (); 1809/* The GNU C library defines this for functions which it implements 1810 to always fail with ENOSYS. Some functions are actually named 1811 something starting with __ and the normal name is an alias. */ 1812#if defined __stub_$2 || defined __stub___$2 1813choke me 1814#endif 1815 1816int 1817main () 1818{ 1819return $2 (); 1820 ; 1821 return 0; 1822} 1823_ACEOF 1824if ac_fn_c_try_link "$LINENO"; then : 1825 eval "$3=yes" 1826else 1827 eval "$3=no" 1828fi 1829rm -f core conftest.err conftest.$ac_objext \ 1830 conftest$ac_exeext conftest.$ac_ext 1831fi 1832eval ac_res=\$$3 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1834$as_echo "$ac_res" >&6; } 1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1836 1837} # ac_fn_c_check_func 1838 1839# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1840# --------------------------------------------- 1841# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1842# accordingly. 1843ac_fn_c_check_decl () 1844{ 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1846 as_decl_name=`echo $2|sed 's/ *(.*//'` 1847 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1849$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1850if eval \${$3+:} false; then : 1851 $as_echo_n "(cached) " >&6 1852else 1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1854/* end confdefs.h. */ 1855$4 1856int 1857main () 1858{ 1859#ifndef $as_decl_name 1860#ifdef __cplusplus 1861 (void) $as_decl_use; 1862#else 1863 (void) $as_decl_name; 1864#endif 1865#endif 1866 1867 ; 1868 return 0; 1869} 1870_ACEOF 1871if ac_fn_c_try_compile "$LINENO"; then : 1872 eval "$3=yes" 1873else 1874 eval "$3=no" 1875fi 1876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1877fi 1878eval ac_res=\$$3 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1880$as_echo "$ac_res" >&6; } 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 1883} # ac_fn_c_check_decl 1884cat >config.log <<_ACEOF 1885This file contains any messages produced by compilers while 1886running configure, to aid debugging if configure makes a mistake. 1887 1888It was created by xf86-input-libinput $as_me 0.30.0, which was 1889generated by GNU Autoconf 2.69. Invocation command line was 1890 1891 $ $0 $@ 1892 1893_ACEOF 1894exec 5>>config.log 1895{ 1896cat <<_ASUNAME 1897## --------- ## 1898## Platform. ## 1899## --------- ## 1900 1901hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1902uname -m = `(uname -m) 2>/dev/null || echo unknown` 1903uname -r = `(uname -r) 2>/dev/null || echo unknown` 1904uname -s = `(uname -s) 2>/dev/null || echo unknown` 1905uname -v = `(uname -v) 2>/dev/null || echo unknown` 1906 1907/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1908/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1909 1910/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1911/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1912/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1913/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1914/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1915/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1916/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1917 1918_ASUNAME 1919 1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1921for as_dir in $PATH 1922do 1923 IFS=$as_save_IFS 1924 test -z "$as_dir" && as_dir=. 1925 $as_echo "PATH: $as_dir" 1926 done 1927IFS=$as_save_IFS 1928 1929} >&5 1930 1931cat >&5 <<_ACEOF 1932 1933 1934## ----------- ## 1935## Core tests. ## 1936## ----------- ## 1937 1938_ACEOF 1939 1940 1941# Keep a trace of the command line. 1942# Strip out --no-create and --no-recursion so they do not pile up. 1943# Strip out --silent because we don't want to record it for future runs. 1944# Also quote any args containing shell meta-characters. 1945# Make two passes to allow for proper duplicate-argument suppression. 1946ac_configure_args= 1947ac_configure_args0= 1948ac_configure_args1= 1949ac_must_keep_next=false 1950for ac_pass in 1 2 1951do 1952 for ac_arg 1953 do 1954 case $ac_arg in 1955 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1957 | -silent | --silent | --silen | --sile | --sil) 1958 continue ;; 1959 *\'*) 1960 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1961 esac 1962 case $ac_pass in 1963 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1964 2) 1965 as_fn_append ac_configure_args1 " '$ac_arg'" 1966 if test $ac_must_keep_next = true; then 1967 ac_must_keep_next=false # Got value, back to normal. 1968 else 1969 case $ac_arg in 1970 *=* | --config-cache | -C | -disable-* | --disable-* \ 1971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1973 | -with-* | --with-* | -without-* | --without-* | --x) 1974 case "$ac_configure_args0 " in 1975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1976 esac 1977 ;; 1978 -* ) ac_must_keep_next=true ;; 1979 esac 1980 fi 1981 as_fn_append ac_configure_args " '$ac_arg'" 1982 ;; 1983 esac 1984 done 1985done 1986{ ac_configure_args0=; unset ac_configure_args0;} 1987{ ac_configure_args1=; unset ac_configure_args1;} 1988 1989# When interrupted or exit'd, cleanup temporary files, and complete 1990# config.log. We remove comments because anyway the quotes in there 1991# would cause problems or look ugly. 1992# WARNING: Use '\'' to represent an apostrophe within the trap. 1993# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1994trap 'exit_status=$? 1995 # Save into config.log some information that might help in debugging. 1996 { 1997 echo 1998 1999 $as_echo "## ---------------- ## 2000## Cache variables. ## 2001## ---------------- ##" 2002 echo 2003 # The following way of writing the cache mishandles newlines in values, 2004( 2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2006 eval ac_val=\$$ac_var 2007 case $ac_val in #( 2008 *${as_nl}*) 2009 case $ac_var in #( 2010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2012 esac 2013 case $ac_var in #( 2014 _ | IFS | as_nl) ;; #( 2015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2016 *) { eval $ac_var=; unset $ac_var;} ;; 2017 esac ;; 2018 esac 2019 done 2020 (set) 2>&1 | 2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2022 *${as_nl}ac_space=\ *) 2023 sed -n \ 2024 "s/'\''/'\''\\\\'\'''\''/g; 2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2026 ;; #( 2027 *) 2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2029 ;; 2030 esac | 2031 sort 2032) 2033 echo 2034 2035 $as_echo "## ----------------- ## 2036## Output variables. ## 2037## ----------------- ##" 2038 echo 2039 for ac_var in $ac_subst_vars 2040 do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in 2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2044 esac 2045 $as_echo "$ac_var='\''$ac_val'\''" 2046 done | sort 2047 echo 2048 2049 if test -n "$ac_subst_files"; then 2050 $as_echo "## ------------------- ## 2051## File substitutions. ## 2052## ------------------- ##" 2053 echo 2054 for ac_var in $ac_subst_files 2055 do 2056 eval ac_val=\$$ac_var 2057 case $ac_val in 2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2059 esac 2060 $as_echo "$ac_var='\''$ac_val'\''" 2061 done | sort 2062 echo 2063 fi 2064 2065 if test -s confdefs.h; then 2066 $as_echo "## ----------- ## 2067## confdefs.h. ## 2068## ----------- ##" 2069 echo 2070 cat confdefs.h 2071 echo 2072 fi 2073 test "$ac_signal" != 0 && 2074 $as_echo "$as_me: caught signal $ac_signal" 2075 $as_echo "$as_me: exit $exit_status" 2076 } >&5 2077 rm -f core *.core core.conftest.* && 2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2079 exit $exit_status 2080' 0 2081for ac_signal in 1 2 13 15; do 2082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2083done 2084ac_signal=0 2085 2086# confdefs.h avoids OS command line length limits that DEFS can exceed. 2087rm -f -r conftest* confdefs.h 2088 2089$as_echo "/* confdefs.h */" > confdefs.h 2090 2091# Predefined preprocessor variables. 2092 2093cat >>confdefs.h <<_ACEOF 2094#define PACKAGE_NAME "$PACKAGE_NAME" 2095_ACEOF 2096 2097cat >>confdefs.h <<_ACEOF 2098#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2099_ACEOF 2100 2101cat >>confdefs.h <<_ACEOF 2102#define PACKAGE_VERSION "$PACKAGE_VERSION" 2103_ACEOF 2104 2105cat >>confdefs.h <<_ACEOF 2106#define PACKAGE_STRING "$PACKAGE_STRING" 2107_ACEOF 2108 2109cat >>confdefs.h <<_ACEOF 2110#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2111_ACEOF 2112 2113cat >>confdefs.h <<_ACEOF 2114#define PACKAGE_URL "$PACKAGE_URL" 2115_ACEOF 2116 2117 2118# Let the site file select an alternate cache file if it wants to. 2119# Prefer an explicitly selected file to automatically selected ones. 2120ac_site_file1=NONE 2121ac_site_file2=NONE 2122if test -n "$CONFIG_SITE"; then 2123 # We do not want a PATH search for config.site. 2124 case $CONFIG_SITE in #(( 2125 -*) ac_site_file1=./$CONFIG_SITE;; 2126 */*) ac_site_file1=$CONFIG_SITE;; 2127 *) ac_site_file1=./$CONFIG_SITE;; 2128 esac 2129elif test "x$prefix" != xNONE; then 2130 ac_site_file1=$prefix/share/config.site 2131 ac_site_file2=$prefix/etc/config.site 2132else 2133 ac_site_file1=$ac_default_prefix/share/config.site 2134 ac_site_file2=$ac_default_prefix/etc/config.site 2135fi 2136for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2137do 2138 test "x$ac_site_file" = xNONE && continue 2139 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2141$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2142 sed 's/^/| /' "$ac_site_file" >&5 2143 . "$ac_site_file" \ 2144 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2146as_fn_error $? "failed to load site script $ac_site_file 2147See \`config.log' for more details" "$LINENO" 5; } 2148 fi 2149done 2150 2151if test -r "$cache_file"; then 2152 # Some versions of bash will fail to source /dev/null (special files 2153 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2154 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2156$as_echo "$as_me: loading cache $cache_file" >&6;} 2157 case $cache_file in 2158 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2159 *) . "./$cache_file";; 2160 esac 2161 fi 2162else 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2164$as_echo "$as_me: creating cache $cache_file" >&6;} 2165 >$cache_file 2166fi 2167 2168# Check that the precious variables saved in the cache have kept the same 2169# value. 2170ac_cache_corrupted=false 2171for ac_var in $ac_precious_vars; do 2172 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2173 eval ac_new_set=\$ac_env_${ac_var}_set 2174 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2175 eval ac_new_val=\$ac_env_${ac_var}_value 2176 case $ac_old_set,$ac_new_set in 2177 set,) 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2179$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2180 ac_cache_corrupted=: ;; 2181 ,set) 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2183$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2184 ac_cache_corrupted=: ;; 2185 ,);; 2186 *) 2187 if test "x$ac_old_val" != "x$ac_new_val"; then 2188 # differences in whitespace do not lead to failure. 2189 ac_old_val_w=`echo x $ac_old_val` 2190 ac_new_val_w=`echo x $ac_new_val` 2191 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2193$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2194 ac_cache_corrupted=: 2195 else 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2197$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2198 eval $ac_var=\$ac_old_val 2199 fi 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2201$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2203$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2204 fi;; 2205 esac 2206 # Pass precious variables to config.status. 2207 if test "$ac_new_set" = set; then 2208 case $ac_new_val in 2209 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2210 *) ac_arg=$ac_var=$ac_new_val ;; 2211 esac 2212 case " $ac_configure_args " in 2213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2214 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2215 esac 2216 fi 2217done 2218if $ac_cache_corrupted; then 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2222$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2223 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2224fi 2225## -------------------- ## 2226## Main body of script. ## 2227## -------------------- ## 2228 2229ac_ext=c 2230ac_cpp='$CPP $CPPFLAGS' 2231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2233ac_compiler_gnu=$ac_cv_c_compiler_gnu 2234 2235 2236 2237ac_config_headers="$ac_config_headers config.h" 2238 2239ac_aux_dir= 2240for ac_dir in . "$srcdir"/.; do 2241 if test -f "$ac_dir/install-sh"; then 2242 ac_aux_dir=$ac_dir 2243 ac_install_sh="$ac_aux_dir/install-sh -c" 2244 break 2245 elif test -f "$ac_dir/install.sh"; then 2246 ac_aux_dir=$ac_dir 2247 ac_install_sh="$ac_aux_dir/install.sh -c" 2248 break 2249 elif test -f "$ac_dir/shtool"; then 2250 ac_aux_dir=$ac_dir 2251 ac_install_sh="$ac_aux_dir/shtool install -c" 2252 break 2253 fi 2254done 2255if test -z "$ac_aux_dir"; then 2256 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2257fi 2258 2259# These three variables are undocumented and unsupported, 2260# and are intended to be withdrawn in a future Autoconf release. 2261# They can cause serious problems if a builder's source tree is in a directory 2262# whose full name contains unusual characters. 2263ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2264ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2265ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2266 2267 2268 2269# Initialize Automake 2270am__api_version='1.16' 2271 2272# Find a good install program. We prefer a C program (faster), 2273# so one script is as good as another. But avoid the broken or 2274# incompatible versions: 2275# SysV /etc/install, /usr/sbin/install 2276# SunOS /usr/etc/install 2277# IRIX /sbin/install 2278# AIX /bin/install 2279# AmigaOS /C/install, which installs bootblocks on floppy discs 2280# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2281# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2282# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2283# OS/2's system install, which has a completely different semantic 2284# ./install, which can be erroneously created by make from ./install.sh. 2285# Reject install programs that cannot install multiple files. 2286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2287$as_echo_n "checking for a BSD-compatible install... " >&6; } 2288if test -z "$INSTALL"; then 2289if ${ac_cv_path_install+:} false; then : 2290 $as_echo_n "(cached) " >&6 2291else 2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2293for as_dir in $PATH 2294do 2295 IFS=$as_save_IFS 2296 test -z "$as_dir" && as_dir=. 2297 # Account for people who put trailing slashes in PATH elements. 2298case $as_dir/ in #(( 2299 ./ | .// | /[cC]/* | \ 2300 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2301 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2302 /usr/ucb/* ) ;; 2303 *) 2304 # OSF1 and SCO ODT 3.0 have their own names for install. 2305 # Don't use installbsd from OSF since it installs stuff as root 2306 # by default. 2307 for ac_prog in ginstall scoinst install; do 2308 for ac_exec_ext in '' $ac_executable_extensions; do 2309 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2310 if test $ac_prog = install && 2311 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2312 # AIX install. It has an incompatible calling convention. 2313 : 2314 elif test $ac_prog = install && 2315 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2316 # program-specific install script used by HP pwplus--don't use. 2317 : 2318 else 2319 rm -rf conftest.one conftest.two conftest.dir 2320 echo one > conftest.one 2321 echo two > conftest.two 2322 mkdir conftest.dir 2323 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2324 test -s conftest.one && test -s conftest.two && 2325 test -s conftest.dir/conftest.one && 2326 test -s conftest.dir/conftest.two 2327 then 2328 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2329 break 3 2330 fi 2331 fi 2332 fi 2333 done 2334 done 2335 ;; 2336esac 2337 2338 done 2339IFS=$as_save_IFS 2340 2341rm -rf conftest.one conftest.two conftest.dir 2342 2343fi 2344 if test "${ac_cv_path_install+set}" = set; then 2345 INSTALL=$ac_cv_path_install 2346 else 2347 # As a last resort, use the slow shell script. Don't cache a 2348 # value for INSTALL within a source directory, because that will 2349 # break other packages using the cache if that directory is 2350 # removed, or if the value is a relative name. 2351 INSTALL=$ac_install_sh 2352 fi 2353fi 2354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2355$as_echo "$INSTALL" >&6; } 2356 2357# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2358# It thinks the first close brace ends the variable substitution. 2359test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2360 2361test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2362 2363test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2364 2365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2366$as_echo_n "checking whether build environment is sane... " >&6; } 2367# Reject unsafe characters in $srcdir or the absolute working directory 2368# name. Accept space and tab only in the latter. 2369am_lf=' 2370' 2371case `pwd` in 2372 *[\\\"\#\$\&\'\`$am_lf]*) 2373 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2374esac 2375case $srcdir in 2376 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2377 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2378esac 2379 2380# Do 'set' in a subshell so we don't clobber the current shell's 2381# arguments. Must try -L first in case configure is actually a 2382# symlink; some systems play weird games with the mod time of symlinks 2383# (eg FreeBSD returns the mod time of the symlink's containing 2384# directory). 2385if ( 2386 am_has_slept=no 2387 for am_try in 1 2; do 2388 echo "timestamp, slept: $am_has_slept" > conftest.file 2389 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2390 if test "$*" = "X"; then 2391 # -L didn't work. 2392 set X `ls -t "$srcdir/configure" conftest.file` 2393 fi 2394 if test "$*" != "X $srcdir/configure conftest.file" \ 2395 && test "$*" != "X conftest.file $srcdir/configure"; then 2396 2397 # If neither matched, then we have a broken ls. This can happen 2398 # if, for instance, CONFIG_SHELL is bash and it inherits a 2399 # broken ls alias from the environment. This has actually 2400 # happened. Such a system could not be considered "sane". 2401 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2402 alias in your environment" "$LINENO" 5 2403 fi 2404 if test "$2" = conftest.file || test $am_try -eq 2; then 2405 break 2406 fi 2407 # Just in case. 2408 sleep 1 2409 am_has_slept=yes 2410 done 2411 test "$2" = conftest.file 2412 ) 2413then 2414 # Ok. 2415 : 2416else 2417 as_fn_error $? "newly created file is older than distributed files! 2418Check your system clock" "$LINENO" 5 2419fi 2420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2421$as_echo "yes" >&6; } 2422# If we didn't sleep, we still need to ensure time stamps of config.status and 2423# generated files are strictly newer. 2424am_sleep_pid= 2425if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2426 ( sleep 1 ) & 2427 am_sleep_pid=$! 2428fi 2429 2430rm -f conftest.file 2431 2432test "$program_prefix" != NONE && 2433 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2434# Use a double $ so make ignores it. 2435test "$program_suffix" != NONE && 2436 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2437# Double any \ or $. 2438# By default was `s,x,x', remove it if useless. 2439ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2440program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2441 2442# Expand $ac_aux_dir to an absolute path. 2443am_aux_dir=`cd "$ac_aux_dir" && pwd` 2444 2445if test x"${MISSING+set}" != xset; then 2446 case $am_aux_dir in 2447 *\ * | *\ *) 2448 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2449 *) 2450 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2451 esac 2452fi 2453# Use eval to expand $SHELL 2454if eval "$MISSING --is-lightweight"; then 2455 am_missing_run="$MISSING " 2456else 2457 am_missing_run= 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2459$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2460fi 2461 2462if test x"${install_sh+set}" != xset; then 2463 case $am_aux_dir in 2464 *\ * | *\ *) 2465 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2466 *) 2467 install_sh="\${SHELL} $am_aux_dir/install-sh" 2468 esac 2469fi 2470 2471# Installed binaries are usually stripped using 'strip' when the user 2472# run "make install-strip". However 'strip' might not be the right 2473# tool to use in cross-compilation environments, therefore Automake 2474# will honor the 'STRIP' environment variable to overrule this program. 2475if test "$cross_compiling" != no; then 2476 if test -n "$ac_tool_prefix"; then 2477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2478set dummy ${ac_tool_prefix}strip; ac_word=$2 2479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2480$as_echo_n "checking for $ac_word... " >&6; } 2481if ${ac_cv_prog_STRIP+:} false; then : 2482 $as_echo_n "(cached) " >&6 2483else 2484 if test -n "$STRIP"; then 2485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2486else 2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2488for as_dir in $PATH 2489do 2490 IFS=$as_save_IFS 2491 test -z "$as_dir" && as_dir=. 2492 for ac_exec_ext in '' $ac_executable_extensions; do 2493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2494 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2496 break 2 2497 fi 2498done 2499 done 2500IFS=$as_save_IFS 2501 2502fi 2503fi 2504STRIP=$ac_cv_prog_STRIP 2505if test -n "$STRIP"; then 2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2507$as_echo "$STRIP" >&6; } 2508else 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2510$as_echo "no" >&6; } 2511fi 2512 2513 2514fi 2515if test -z "$ac_cv_prog_STRIP"; then 2516 ac_ct_STRIP=$STRIP 2517 # Extract the first word of "strip", so it can be a program name with args. 2518set dummy strip; ac_word=$2 2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2520$as_echo_n "checking for $ac_word... " >&6; } 2521if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2522 $as_echo_n "(cached) " >&6 2523else 2524 if test -n "$ac_ct_STRIP"; then 2525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2526else 2527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2528for as_dir in $PATH 2529do 2530 IFS=$as_save_IFS 2531 test -z "$as_dir" && as_dir=. 2532 for ac_exec_ext in '' $ac_executable_extensions; do 2533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2534 ac_cv_prog_ac_ct_STRIP="strip" 2535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2536 break 2 2537 fi 2538done 2539 done 2540IFS=$as_save_IFS 2541 2542fi 2543fi 2544ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2545if test -n "$ac_ct_STRIP"; then 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2547$as_echo "$ac_ct_STRIP" >&6; } 2548else 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2550$as_echo "no" >&6; } 2551fi 2552 2553 if test "x$ac_ct_STRIP" = x; then 2554 STRIP=":" 2555 else 2556 case $cross_compiling:$ac_tool_warned in 2557yes:) 2558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2560ac_tool_warned=yes ;; 2561esac 2562 STRIP=$ac_ct_STRIP 2563 fi 2564else 2565 STRIP="$ac_cv_prog_STRIP" 2566fi 2567 2568fi 2569INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2570 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2572$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2573if test -z "$MKDIR_P"; then 2574 if ${ac_cv_path_mkdir+:} false; then : 2575 $as_echo_n "(cached) " >&6 2576else 2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2578for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2579do 2580 IFS=$as_save_IFS 2581 test -z "$as_dir" && as_dir=. 2582 for ac_prog in mkdir gmkdir; do 2583 for ac_exec_ext in '' $ac_executable_extensions; do 2584 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2585 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2586 'mkdir (GNU coreutils) '* | \ 2587 'mkdir (coreutils) '* | \ 2588 'mkdir (fileutils) '4.1*) 2589 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2590 break 3;; 2591 esac 2592 done 2593 done 2594 done 2595IFS=$as_save_IFS 2596 2597fi 2598 2599 test -d ./--version && rmdir ./--version 2600 if test "${ac_cv_path_mkdir+set}" = set; then 2601 MKDIR_P="$ac_cv_path_mkdir -p" 2602 else 2603 # As a last resort, use the slow shell script. Don't cache a 2604 # value for MKDIR_P within a source directory, because that will 2605 # break other packages using the cache if that directory is 2606 # removed, or if the value is a relative name. 2607 MKDIR_P="$ac_install_sh -d" 2608 fi 2609fi 2610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2611$as_echo "$MKDIR_P" >&6; } 2612 2613for ac_prog in gawk mawk nawk awk 2614do 2615 # Extract the first word of "$ac_prog", so it can be a program name with args. 2616set dummy $ac_prog; ac_word=$2 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2618$as_echo_n "checking for $ac_word... " >&6; } 2619if ${ac_cv_prog_AWK+:} false; then : 2620 $as_echo_n "(cached) " >&6 2621else 2622 if test -n "$AWK"; then 2623 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2624else 2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2626for as_dir in $PATH 2627do 2628 IFS=$as_save_IFS 2629 test -z "$as_dir" && as_dir=. 2630 for ac_exec_ext in '' $ac_executable_extensions; do 2631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2632 ac_cv_prog_AWK="$ac_prog" 2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2634 break 2 2635 fi 2636done 2637 done 2638IFS=$as_save_IFS 2639 2640fi 2641fi 2642AWK=$ac_cv_prog_AWK 2643if test -n "$AWK"; then 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2645$as_echo "$AWK" >&6; } 2646else 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2648$as_echo "no" >&6; } 2649fi 2650 2651 2652 test -n "$AWK" && break 2653done 2654 2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2656$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2657set x ${MAKE-make} 2658ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2659if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2660 $as_echo_n "(cached) " >&6 2661else 2662 cat >conftest.make <<\_ACEOF 2663SHELL = /bin/sh 2664all: 2665 @echo '@@@%%%=$(MAKE)=@@@%%%' 2666_ACEOF 2667# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2668case `${MAKE-make} -f conftest.make 2>/dev/null` in 2669 *@@@%%%=?*=@@@%%%*) 2670 eval ac_cv_prog_make_${ac_make}_set=yes;; 2671 *) 2672 eval ac_cv_prog_make_${ac_make}_set=no;; 2673esac 2674rm -f conftest.make 2675fi 2676if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2678$as_echo "yes" >&6; } 2679 SET_MAKE= 2680else 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2682$as_echo "no" >&6; } 2683 SET_MAKE="MAKE=${MAKE-make}" 2684fi 2685 2686rm -rf .tst 2>/dev/null 2687mkdir .tst 2>/dev/null 2688if test -d .tst; then 2689 am__leading_dot=. 2690else 2691 am__leading_dot=_ 2692fi 2693rmdir .tst 2>/dev/null 2694 2695# Check whether --enable-silent-rules was given. 2696if test "${enable_silent_rules+set}" = set; then : 2697 enableval=$enable_silent_rules; 2698fi 2699 2700case $enable_silent_rules in # ((( 2701 yes) AM_DEFAULT_VERBOSITY=0;; 2702 no) AM_DEFAULT_VERBOSITY=1;; 2703 *) AM_DEFAULT_VERBOSITY=1;; 2704esac 2705am_make=${MAKE-make} 2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2707$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2708if ${am_cv_make_support_nested_variables+:} false; then : 2709 $as_echo_n "(cached) " >&6 2710else 2711 if $as_echo 'TRUE=$(BAR$(V)) 2712BAR0=false 2713BAR1=true 2714V=1 2715am__doit: 2716 @$(TRUE) 2717.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2718 am_cv_make_support_nested_variables=yes 2719else 2720 am_cv_make_support_nested_variables=no 2721fi 2722fi 2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2724$as_echo "$am_cv_make_support_nested_variables" >&6; } 2725if test $am_cv_make_support_nested_variables = yes; then 2726 AM_V='$(V)' 2727 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2728else 2729 AM_V=$AM_DEFAULT_VERBOSITY 2730 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2731fi 2732AM_BACKSLASH='\' 2733 2734if test "`cd $srcdir && pwd`" != "`pwd`"; then 2735 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2736 # is not polluted with repeated "-I." 2737 am__isrc=' -I$(srcdir)' 2738 # test to see if srcdir already configured 2739 if test -f $srcdir/config.status; then 2740 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2741 fi 2742fi 2743 2744# test whether we have cygpath 2745if test -z "$CYGPATH_W"; then 2746 if (cygpath --version) >/dev/null 2>/dev/null; then 2747 CYGPATH_W='cygpath -w' 2748 else 2749 CYGPATH_W=echo 2750 fi 2751fi 2752 2753 2754# Define the identity of the package. 2755 PACKAGE='xf86-input-libinput' 2756 VERSION='0.30.0' 2757 2758 2759cat >>confdefs.h <<_ACEOF 2760#define PACKAGE "$PACKAGE" 2761_ACEOF 2762 2763 2764cat >>confdefs.h <<_ACEOF 2765#define VERSION "$VERSION" 2766_ACEOF 2767 2768# Some tools Automake needs. 2769 2770ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2771 2772 2773AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2774 2775 2776AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2777 2778 2779AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2780 2781 2782MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2783 2784# For better backward compatibility. To be removed once Automake 1.9.x 2785# dies out for good. For more background, see: 2786# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2787# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2788mkdir_p='$(MKDIR_P)' 2789 2790# We need awk for the "check" target (and possibly the TAP driver). The 2791# system "awk" is bad on some platforms. 2792# Always define AMTAR for backward compatibility. Yes, it's still used 2793# in the wild :-( We should find a proper way to deprecate it ... 2794AMTAR='$${TAR-tar}' 2795 2796 2797# We'll loop over all known methods to create a tar archive until one works. 2798_am_tools='gnutar pax cpio none' 2799 2800am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2801 2802 2803 2804 2805 2806 2807# POSIX will say in a future version that running "rm -f" with no argument 2808# is OK; and we want to be able to make that assumption in our Makefile 2809# recipes. So use an aggressive probe to check that the usage we want is 2810# actually supported "in the wild" to an acceptable degree. 2811# See automake bug#10828. 2812# To make any issue more visible, cause the running configure to be aborted 2813# by default if the 'rm' program in use doesn't match our expectations; the 2814# user can still override this though. 2815if rm -f && rm -fr && rm -rf; then : OK; else 2816 cat >&2 <<'END' 2817Oops! 2818 2819Your 'rm' program seems unable to run without file operands specified 2820on the command line, even when the '-f' option is present. This is contrary 2821to the behaviour of most rm programs out there, and not conforming with 2822the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2823 2824Please tell bug-automake@gnu.org about your system, including the value 2825of your $PATH and any error possibly output before this message. This 2826can help us improve future automake versions. 2827 2828END 2829 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2830 echo 'Configuration will proceed anyway, since you have set the' >&2 2831 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2832 echo >&2 2833 else 2834 cat >&2 <<'END' 2835Aborting the configuration process, to ensure you take notice of the issue. 2836 2837You can download and install GNU coreutils to get an 'rm' implementation 2838that behaves properly: <https://www.gnu.org/software/coreutils/>. 2839 2840If you want to complete the configuration process using your problematic 2841'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2842to "yes", and re-run configure. 2843 2844END 2845 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2846 fi 2847fi 2848 2849 2850# Initialize libtool 2851# Check whether --enable-static was given. 2852if test "${enable_static+set}" = set; then : 2853 enableval=$enable_static; p=${PACKAGE-default} 2854 case $enableval in 2855 yes) enable_static=yes ;; 2856 no) enable_static=no ;; 2857 *) 2858 enable_static=no 2859 # Look at the argument we got. We use all the common list separators. 2860 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 2861 for pkg in $enableval; do 2862 IFS=$lt_save_ifs 2863 if test "X$pkg" = "X$p"; then 2864 enable_static=yes 2865 fi 2866 done 2867 IFS=$lt_save_ifs 2868 ;; 2869 esac 2870else 2871 enable_static=no 2872fi 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882case `pwd` in 2883 *\ * | *\ *) 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2885$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2886esac 2887 2888 2889 2890macro_version='2.4.6' 2891macro_revision='2.4.6' 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905ltmain=$ac_aux_dir/ltmain.sh 2906 2907# Make sure we can run config.sub. 2908$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2909 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2910 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2912$as_echo_n "checking build system type... " >&6; } 2913if ${ac_cv_build+:} false; then : 2914 $as_echo_n "(cached) " >&6 2915else 2916 ac_build_alias=$build_alias 2917test "x$ac_build_alias" = x && 2918 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2919test "x$ac_build_alias" = x && 2920 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2921ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2922 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2923 2924fi 2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2926$as_echo "$ac_cv_build" >&6; } 2927case $ac_cv_build in 2928*-*-*) ;; 2929*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2930esac 2931build=$ac_cv_build 2932ac_save_IFS=$IFS; IFS='-' 2933set x $ac_cv_build 2934shift 2935build_cpu=$1 2936build_vendor=$2 2937shift; shift 2938# Remember, the first character of IFS is used to create $*, 2939# except with old shells: 2940build_os=$* 2941IFS=$ac_save_IFS 2942case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2943 2944 2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2946$as_echo_n "checking host system type... " >&6; } 2947if ${ac_cv_host+:} false; then : 2948 $as_echo_n "(cached) " >&6 2949else 2950 if test "x$host_alias" = x; then 2951 ac_cv_host=$ac_cv_build 2952else 2953 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2954 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2955fi 2956 2957fi 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2959$as_echo "$ac_cv_host" >&6; } 2960case $ac_cv_host in 2961*-*-*) ;; 2962*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2963esac 2964host=$ac_cv_host 2965ac_save_IFS=$IFS; IFS='-' 2966set x $ac_cv_host 2967shift 2968host_cpu=$1 2969host_vendor=$2 2970shift; shift 2971# Remember, the first character of IFS is used to create $*, 2972# except with old shells: 2973host_os=$* 2974IFS=$ac_save_IFS 2975case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2976 2977 2978# Backslashify metacharacters that are still active within 2979# double-quoted strings. 2980sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2981 2982# Same as above, but do not quote variable references. 2983double_quote_subst='s/\(["`\\]\)/\\\1/g' 2984 2985# Sed substitution to delay expansion of an escaped shell variable in a 2986# double_quote_subst'ed string. 2987delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2988 2989# Sed substitution to delay expansion of an escaped single quote. 2990delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2991 2992# Sed substitution to avoid accidental globbing in evaled expressions 2993no_glob_subst='s/\*/\\\*/g' 2994 2995ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2996ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2997ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2998 2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3000$as_echo_n "checking how to print strings... " >&6; } 3001# Test print first, because it will be a builtin if present. 3002if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3003 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3004 ECHO='print -r --' 3005elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3006 ECHO='printf %s\n' 3007else 3008 # Use this function as a fallback that always works. 3009 func_fallback_echo () 3010 { 3011 eval 'cat <<_LTECHO_EOF 3012$1 3013_LTECHO_EOF' 3014 } 3015 ECHO='func_fallback_echo' 3016fi 3017 3018# func_echo_all arg... 3019# Invoke $ECHO with all args, space-separated. 3020func_echo_all () 3021{ 3022 $ECHO "" 3023} 3024 3025case $ECHO in 3026 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3027$as_echo "printf" >&6; } ;; 3028 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3029$as_echo "print -r" >&6; } ;; 3030 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3031$as_echo "cat" >&6; } ;; 3032esac 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047DEPDIR="${am__leading_dot}deps" 3048 3049ac_config_commands="$ac_config_commands depfiles" 3050 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3052$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3053cat > confinc.mk << 'END' 3054am__doit: 3055 @echo this is the am__doit target >confinc.out 3056.PHONY: am__doit 3057END 3058am__include="#" 3059am__quote= 3060# BSD make does it like this. 3061echo '.include "confinc.mk" # ignored' > confmf.BSD 3062# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3063echo 'include confinc.mk # ignored' > confmf.GNU 3064_am_result=no 3065for s in GNU BSD; do 3066 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3067 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3068 ac_status=$? 3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3070 (exit $ac_status); } 3071 case $?:`cat confinc.out 2>/dev/null` in #( 3072 '0:this is the am__doit target') : 3073 case $s in #( 3074 BSD) : 3075 am__include='.include' am__quote='"' ;; #( 3076 *) : 3077 am__include='include' am__quote='' ;; 3078esac ;; #( 3079 *) : 3080 ;; 3081esac 3082 if test "$am__include" != "#"; then 3083 _am_result="yes ($s style)" 3084 break 3085 fi 3086done 3087rm -f confinc.* confmf.* 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3089$as_echo "${_am_result}" >&6; } 3090 3091# Check whether --enable-dependency-tracking was given. 3092if test "${enable_dependency_tracking+set}" = set; then : 3093 enableval=$enable_dependency_tracking; 3094fi 3095 3096if test "x$enable_dependency_tracking" != xno; then 3097 am_depcomp="$ac_aux_dir/depcomp" 3098 AMDEPBACKSLASH='\' 3099 am__nodep='_no' 3100fi 3101 if test "x$enable_dependency_tracking" != xno; then 3102 AMDEP_TRUE= 3103 AMDEP_FALSE='#' 3104else 3105 AMDEP_TRUE='#' 3106 AMDEP_FALSE= 3107fi 3108 3109 3110ac_ext=c 3111ac_cpp='$CPP $CPPFLAGS' 3112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3114ac_compiler_gnu=$ac_cv_c_compiler_gnu 3115if test -n "$ac_tool_prefix"; then 3116 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3117set dummy ${ac_tool_prefix}gcc; ac_word=$2 3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3119$as_echo_n "checking for $ac_word... " >&6; } 3120if ${ac_cv_prog_CC+:} false; then : 3121 $as_echo_n "(cached) " >&6 3122else 3123 if test -n "$CC"; then 3124 ac_cv_prog_CC="$CC" # Let the user override the test. 3125else 3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3127for as_dir in $PATH 3128do 3129 IFS=$as_save_IFS 3130 test -z "$as_dir" && as_dir=. 3131 for ac_exec_ext in '' $ac_executable_extensions; do 3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3133 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3135 break 2 3136 fi 3137done 3138 done 3139IFS=$as_save_IFS 3140 3141fi 3142fi 3143CC=$ac_cv_prog_CC 3144if test -n "$CC"; then 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3146$as_echo "$CC" >&6; } 3147else 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3149$as_echo "no" >&6; } 3150fi 3151 3152 3153fi 3154if test -z "$ac_cv_prog_CC"; then 3155 ac_ct_CC=$CC 3156 # Extract the first word of "gcc", so it can be a program name with args. 3157set dummy gcc; ac_word=$2 3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3159$as_echo_n "checking for $ac_word... " >&6; } 3160if ${ac_cv_prog_ac_ct_CC+:} false; then : 3161 $as_echo_n "(cached) " >&6 3162else 3163 if test -n "$ac_ct_CC"; then 3164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3165else 3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3167for as_dir in $PATH 3168do 3169 IFS=$as_save_IFS 3170 test -z "$as_dir" && as_dir=. 3171 for ac_exec_ext in '' $ac_executable_extensions; do 3172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3173 ac_cv_prog_ac_ct_CC="gcc" 3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3175 break 2 3176 fi 3177done 3178 done 3179IFS=$as_save_IFS 3180 3181fi 3182fi 3183ac_ct_CC=$ac_cv_prog_ac_ct_CC 3184if test -n "$ac_ct_CC"; then 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3186$as_echo "$ac_ct_CC" >&6; } 3187else 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3189$as_echo "no" >&6; } 3190fi 3191 3192 if test "x$ac_ct_CC" = x; then 3193 CC="" 3194 else 3195 case $cross_compiling:$ac_tool_warned in 3196yes:) 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3199ac_tool_warned=yes ;; 3200esac 3201 CC=$ac_ct_CC 3202 fi 3203else 3204 CC="$ac_cv_prog_CC" 3205fi 3206 3207if test -z "$CC"; then 3208 if test -n "$ac_tool_prefix"; then 3209 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3210set dummy ${ac_tool_prefix}cc; ac_word=$2 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3212$as_echo_n "checking for $ac_word... " >&6; } 3213if ${ac_cv_prog_CC+:} false; then : 3214 $as_echo_n "(cached) " >&6 3215else 3216 if test -n "$CC"; then 3217 ac_cv_prog_CC="$CC" # Let the user override the test. 3218else 3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3220for as_dir in $PATH 3221do 3222 IFS=$as_save_IFS 3223 test -z "$as_dir" && as_dir=. 3224 for ac_exec_ext in '' $ac_executable_extensions; do 3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3226 ac_cv_prog_CC="${ac_tool_prefix}cc" 3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3228 break 2 3229 fi 3230done 3231 done 3232IFS=$as_save_IFS 3233 3234fi 3235fi 3236CC=$ac_cv_prog_CC 3237if test -n "$CC"; then 3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3239$as_echo "$CC" >&6; } 3240else 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3242$as_echo "no" >&6; } 3243fi 3244 3245 3246 fi 3247fi 3248if test -z "$CC"; then 3249 # Extract the first word of "cc", so it can be a program name with args. 3250set dummy cc; ac_word=$2 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3252$as_echo_n "checking for $ac_word... " >&6; } 3253if ${ac_cv_prog_CC+:} false; then : 3254 $as_echo_n "(cached) " >&6 3255else 3256 if test -n "$CC"; then 3257 ac_cv_prog_CC="$CC" # Let the user override the test. 3258else 3259 ac_prog_rejected=no 3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3261for as_dir in $PATH 3262do 3263 IFS=$as_save_IFS 3264 test -z "$as_dir" && as_dir=. 3265 for ac_exec_ext in '' $ac_executable_extensions; do 3266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3267 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3268 ac_prog_rejected=yes 3269 continue 3270 fi 3271 ac_cv_prog_CC="cc" 3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3273 break 2 3274 fi 3275done 3276 done 3277IFS=$as_save_IFS 3278 3279if test $ac_prog_rejected = yes; then 3280 # We found a bogon in the path, so make sure we never use it. 3281 set dummy $ac_cv_prog_CC 3282 shift 3283 if test $# != 0; then 3284 # We chose a different compiler from the bogus one. 3285 # However, it has the same basename, so the bogon will be chosen 3286 # first if we set CC to just the basename; use the full file name. 3287 shift 3288 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3289 fi 3290fi 3291fi 3292fi 3293CC=$ac_cv_prog_CC 3294if test -n "$CC"; then 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3296$as_echo "$CC" >&6; } 3297else 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3299$as_echo "no" >&6; } 3300fi 3301 3302 3303fi 3304if test -z "$CC"; then 3305 if test -n "$ac_tool_prefix"; then 3306 for ac_prog in cl.exe 3307 do 3308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3309set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3311$as_echo_n "checking for $ac_word... " >&6; } 3312if ${ac_cv_prog_CC+:} false; then : 3313 $as_echo_n "(cached) " >&6 3314else 3315 if test -n "$CC"; then 3316 ac_cv_prog_CC="$CC" # Let the user override the test. 3317else 3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3319for as_dir in $PATH 3320do 3321 IFS=$as_save_IFS 3322 test -z "$as_dir" && as_dir=. 3323 for ac_exec_ext in '' $ac_executable_extensions; do 3324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3325 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3327 break 2 3328 fi 3329done 3330 done 3331IFS=$as_save_IFS 3332 3333fi 3334fi 3335CC=$ac_cv_prog_CC 3336if test -n "$CC"; then 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3338$as_echo "$CC" >&6; } 3339else 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3341$as_echo "no" >&6; } 3342fi 3343 3344 3345 test -n "$CC" && break 3346 done 3347fi 3348if test -z "$CC"; then 3349 ac_ct_CC=$CC 3350 for ac_prog in cl.exe 3351do 3352 # Extract the first word of "$ac_prog", so it can be a program name with args. 3353set dummy $ac_prog; ac_word=$2 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3355$as_echo_n "checking for $ac_word... " >&6; } 3356if ${ac_cv_prog_ac_ct_CC+:} false; then : 3357 $as_echo_n "(cached) " >&6 3358else 3359 if test -n "$ac_ct_CC"; then 3360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3361else 3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3363for as_dir in $PATH 3364do 3365 IFS=$as_save_IFS 3366 test -z "$as_dir" && as_dir=. 3367 for ac_exec_ext in '' $ac_executable_extensions; do 3368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3369 ac_cv_prog_ac_ct_CC="$ac_prog" 3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3371 break 2 3372 fi 3373done 3374 done 3375IFS=$as_save_IFS 3376 3377fi 3378fi 3379ac_ct_CC=$ac_cv_prog_ac_ct_CC 3380if test -n "$ac_ct_CC"; then 3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3382$as_echo "$ac_ct_CC" >&6; } 3383else 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3385$as_echo "no" >&6; } 3386fi 3387 3388 3389 test -n "$ac_ct_CC" && break 3390done 3391 3392 if test "x$ac_ct_CC" = x; then 3393 CC="" 3394 else 3395 case $cross_compiling:$ac_tool_warned in 3396yes:) 3397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3399ac_tool_warned=yes ;; 3400esac 3401 CC=$ac_ct_CC 3402 fi 3403fi 3404 3405fi 3406 3407 3408test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3410as_fn_error $? "no acceptable C compiler found in \$PATH 3411See \`config.log' for more details" "$LINENO" 5; } 3412 3413# Provide some information about the compiler. 3414$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3415set X $ac_compile 3416ac_compiler=$2 3417for ac_option in --version -v -V -qversion; do 3418 { { ac_try="$ac_compiler $ac_option >&5" 3419case "(($ac_try" in 3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3421 *) ac_try_echo=$ac_try;; 3422esac 3423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3424$as_echo "$ac_try_echo"; } >&5 3425 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3426 ac_status=$? 3427 if test -s conftest.err; then 3428 sed '10a\ 3429... rest of stderr output deleted ... 3430 10q' conftest.err >conftest.er1 3431 cat conftest.er1 >&5 3432 fi 3433 rm -f conftest.er1 conftest.err 3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3435 test $ac_status = 0; } 3436done 3437 3438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3439/* end confdefs.h. */ 3440 3441int 3442main () 3443{ 3444 3445 ; 3446 return 0; 3447} 3448_ACEOF 3449ac_clean_files_save=$ac_clean_files 3450ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3451# Try to create an executable without -o first, disregard a.out. 3452# It will help us diagnose broken compilers, and finding out an intuition 3453# of exeext. 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3455$as_echo_n "checking whether the C compiler works... " >&6; } 3456ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3457 3458# The possible output files: 3459ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3460 3461ac_rmfiles= 3462for ac_file in $ac_files 3463do 3464 case $ac_file in 3465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3466 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3467 esac 3468done 3469rm -f $ac_rmfiles 3470 3471if { { ac_try="$ac_link_default" 3472case "(($ac_try" in 3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3474 *) ac_try_echo=$ac_try;; 3475esac 3476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3477$as_echo "$ac_try_echo"; } >&5 3478 (eval "$ac_link_default") 2>&5 3479 ac_status=$? 3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3481 test $ac_status = 0; }; then : 3482 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3483# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3484# in a Makefile. We should not override ac_cv_exeext if it was cached, 3485# so that the user can short-circuit this test for compilers unknown to 3486# Autoconf. 3487for ac_file in $ac_files '' 3488do 3489 test -f "$ac_file" || continue 3490 case $ac_file in 3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3492 ;; 3493 [ab].out ) 3494 # We found the default executable, but exeext='' is most 3495 # certainly right. 3496 break;; 3497 *.* ) 3498 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3499 then :; else 3500 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3501 fi 3502 # We set ac_cv_exeext here because the later test for it is not 3503 # safe: cross compilers may not add the suffix if given an `-o' 3504 # argument, so we may need to know it at that point already. 3505 # Even if this section looks crufty: it has the advantage of 3506 # actually working. 3507 break;; 3508 * ) 3509 break;; 3510 esac 3511done 3512test "$ac_cv_exeext" = no && ac_cv_exeext= 3513 3514else 3515 ac_file='' 3516fi 3517if test -z "$ac_file"; then : 3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3519$as_echo "no" >&6; } 3520$as_echo "$as_me: failed program was:" >&5 3521sed 's/^/| /' conftest.$ac_ext >&5 3522 3523{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3525as_fn_error 77 "C compiler cannot create executables 3526See \`config.log' for more details" "$LINENO" 5; } 3527else 3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3529$as_echo "yes" >&6; } 3530fi 3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3532$as_echo_n "checking for C compiler default output file name... " >&6; } 3533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3534$as_echo "$ac_file" >&6; } 3535ac_exeext=$ac_cv_exeext 3536 3537rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3538ac_clean_files=$ac_clean_files_save 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3540$as_echo_n "checking for suffix of executables... " >&6; } 3541if { { ac_try="$ac_link" 3542case "(($ac_try" in 3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3544 *) ac_try_echo=$ac_try;; 3545esac 3546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3547$as_echo "$ac_try_echo"; } >&5 3548 (eval "$ac_link") 2>&5 3549 ac_status=$? 3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3551 test $ac_status = 0; }; then : 3552 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3553# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3554# work properly (i.e., refer to `conftest.exe'), while it won't with 3555# `rm'. 3556for ac_file in conftest.exe conftest conftest.*; do 3557 test -f "$ac_file" || continue 3558 case $ac_file in 3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3561 break;; 3562 * ) break;; 3563 esac 3564done 3565else 3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3568as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3569See \`config.log' for more details" "$LINENO" 5; } 3570fi 3571rm -f conftest conftest$ac_cv_exeext 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3573$as_echo "$ac_cv_exeext" >&6; } 3574 3575rm -f conftest.$ac_ext 3576EXEEXT=$ac_cv_exeext 3577ac_exeext=$EXEEXT 3578cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580#include <stdio.h> 3581int 3582main () 3583{ 3584FILE *f = fopen ("conftest.out", "w"); 3585 return ferror (f) || fclose (f) != 0; 3586 3587 ; 3588 return 0; 3589} 3590_ACEOF 3591ac_clean_files="$ac_clean_files conftest.out" 3592# Check that the compiler produces executables we can run. If not, either 3593# the compiler is broken, or we cross compile. 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3595$as_echo_n "checking whether we are cross compiling... " >&6; } 3596if test "$cross_compiling" != yes; then 3597 { { ac_try="$ac_link" 3598case "(($ac_try" in 3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3600 *) ac_try_echo=$ac_try;; 3601esac 3602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3603$as_echo "$ac_try_echo"; } >&5 3604 (eval "$ac_link") 2>&5 3605 ac_status=$? 3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3607 test $ac_status = 0; } 3608 if { ac_try='./conftest$ac_cv_exeext' 3609 { { case "(($ac_try" in 3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3611 *) ac_try_echo=$ac_try;; 3612esac 3613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3614$as_echo "$ac_try_echo"; } >&5 3615 (eval "$ac_try") 2>&5 3616 ac_status=$? 3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3618 test $ac_status = 0; }; }; then 3619 cross_compiling=no 3620 else 3621 if test "$cross_compiling" = maybe; then 3622 cross_compiling=yes 3623 else 3624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3626as_fn_error $? "cannot run C compiled programs. 3627If you meant to cross compile, use \`--host'. 3628See \`config.log' for more details" "$LINENO" 5; } 3629 fi 3630 fi 3631fi 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3633$as_echo "$cross_compiling" >&6; } 3634 3635rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3636ac_clean_files=$ac_clean_files_save 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3638$as_echo_n "checking for suffix of object files... " >&6; } 3639if ${ac_cv_objext+:} false; then : 3640 $as_echo_n "(cached) " >&6 3641else 3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3643/* end confdefs.h. */ 3644 3645int 3646main () 3647{ 3648 3649 ; 3650 return 0; 3651} 3652_ACEOF 3653rm -f conftest.o conftest.obj 3654if { { ac_try="$ac_compile" 3655case "(($ac_try" in 3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3657 *) ac_try_echo=$ac_try;; 3658esac 3659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3660$as_echo "$ac_try_echo"; } >&5 3661 (eval "$ac_compile") 2>&5 3662 ac_status=$? 3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3664 test $ac_status = 0; }; then : 3665 for ac_file in conftest.o conftest.obj conftest.*; do 3666 test -f "$ac_file" || continue; 3667 case $ac_file in 3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3669 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3670 break;; 3671 esac 3672done 3673else 3674 $as_echo "$as_me: failed program was:" >&5 3675sed 's/^/| /' conftest.$ac_ext >&5 3676 3677{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3679as_fn_error $? "cannot compute suffix of object files: cannot compile 3680See \`config.log' for more details" "$LINENO" 5; } 3681fi 3682rm -f conftest.$ac_cv_objext conftest.$ac_ext 3683fi 3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3685$as_echo "$ac_cv_objext" >&6; } 3686OBJEXT=$ac_cv_objext 3687ac_objext=$OBJEXT 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3689$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3690if ${ac_cv_c_compiler_gnu+:} false; then : 3691 $as_echo_n "(cached) " >&6 3692else 3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3694/* end confdefs.h. */ 3695 3696int 3697main () 3698{ 3699#ifndef __GNUC__ 3700 choke me 3701#endif 3702 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707if ac_fn_c_try_compile "$LINENO"; then : 3708 ac_compiler_gnu=yes 3709else 3710 ac_compiler_gnu=no 3711fi 3712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3713ac_cv_c_compiler_gnu=$ac_compiler_gnu 3714 3715fi 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3717$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3718if test $ac_compiler_gnu = yes; then 3719 GCC=yes 3720else 3721 GCC= 3722fi 3723ac_test_CFLAGS=${CFLAGS+set} 3724ac_save_CFLAGS=$CFLAGS 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3726$as_echo_n "checking whether $CC accepts -g... " >&6; } 3727if ${ac_cv_prog_cc_g+:} false; then : 3728 $as_echo_n "(cached) " >&6 3729else 3730 ac_save_c_werror_flag=$ac_c_werror_flag 3731 ac_c_werror_flag=yes 3732 ac_cv_prog_cc_g=no 3733 CFLAGS="-g" 3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3735/* end confdefs.h. */ 3736 3737int 3738main () 3739{ 3740 3741 ; 3742 return 0; 3743} 3744_ACEOF 3745if ac_fn_c_try_compile "$LINENO"; then : 3746 ac_cv_prog_cc_g=yes 3747else 3748 CFLAGS="" 3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3750/* end confdefs.h. */ 3751 3752int 3753main () 3754{ 3755 3756 ; 3757 return 0; 3758} 3759_ACEOF 3760if ac_fn_c_try_compile "$LINENO"; then : 3761 3762else 3763 ac_c_werror_flag=$ac_save_c_werror_flag 3764 CFLAGS="-g" 3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3766/* end confdefs.h. */ 3767 3768int 3769main () 3770{ 3771 3772 ; 3773 return 0; 3774} 3775_ACEOF 3776if ac_fn_c_try_compile "$LINENO"; then : 3777 ac_cv_prog_cc_g=yes 3778fi 3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3780fi 3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3782fi 3783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3784 ac_c_werror_flag=$ac_save_c_werror_flag 3785fi 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3787$as_echo "$ac_cv_prog_cc_g" >&6; } 3788if test "$ac_test_CFLAGS" = set; then 3789 CFLAGS=$ac_save_CFLAGS 3790elif test $ac_cv_prog_cc_g = yes; then 3791 if test "$GCC" = yes; then 3792 CFLAGS="-g -O2" 3793 else 3794 CFLAGS="-g" 3795 fi 3796else 3797 if test "$GCC" = yes; then 3798 CFLAGS="-O2" 3799 else 3800 CFLAGS= 3801 fi 3802fi 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3804$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3805if ${ac_cv_prog_cc_c89+:} false; then : 3806 $as_echo_n "(cached) " >&6 3807else 3808 ac_cv_prog_cc_c89=no 3809ac_save_CC=$CC 3810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3811/* end confdefs.h. */ 3812#include <stdarg.h> 3813#include <stdio.h> 3814struct stat; 3815/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3816struct buf { int x; }; 3817FILE * (*rcsopen) (struct buf *, struct stat *, int); 3818static char *e (p, i) 3819 char **p; 3820 int i; 3821{ 3822 return p[i]; 3823} 3824static char *f (char * (*g) (char **, int), char **p, ...) 3825{ 3826 char *s; 3827 va_list v; 3828 va_start (v,p); 3829 s = g (p, va_arg (v,int)); 3830 va_end (v); 3831 return s; 3832} 3833 3834/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3835 function prototypes and stuff, but not '\xHH' hex character constants. 3836 These don't provoke an error unfortunately, instead are silently treated 3837 as 'x'. The following induces an error, until -std is added to get 3838 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3839 array size at least. It's necessary to write '\x00'==0 to get something 3840 that's true only with -std. */ 3841int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3842 3843/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3844 inside strings and character constants. */ 3845#define FOO(x) 'x' 3846int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3847 3848int test (int i, double x); 3849struct s1 {int (*f) (int a);}; 3850struct s2 {int (*f) (double a);}; 3851int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3852int argc; 3853char **argv; 3854int 3855main () 3856{ 3857return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3858 ; 3859 return 0; 3860} 3861_ACEOF 3862for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3863 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3864do 3865 CC="$ac_save_CC $ac_arg" 3866 if ac_fn_c_try_compile "$LINENO"; then : 3867 ac_cv_prog_cc_c89=$ac_arg 3868fi 3869rm -f core conftest.err conftest.$ac_objext 3870 test "x$ac_cv_prog_cc_c89" != "xno" && break 3871done 3872rm -f conftest.$ac_ext 3873CC=$ac_save_CC 3874 3875fi 3876# AC_CACHE_VAL 3877case "x$ac_cv_prog_cc_c89" in 3878 x) 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3880$as_echo "none needed" >&6; } ;; 3881 xno) 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3883$as_echo "unsupported" >&6; } ;; 3884 *) 3885 CC="$CC $ac_cv_prog_cc_c89" 3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3887$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3888esac 3889if test "x$ac_cv_prog_cc_c89" != xno; then : 3890 3891fi 3892 3893ac_ext=c 3894ac_cpp='$CPP $CPPFLAGS' 3895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3897ac_compiler_gnu=$ac_cv_c_compiler_gnu 3898 3899ac_ext=c 3900ac_cpp='$CPP $CPPFLAGS' 3901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3903ac_compiler_gnu=$ac_cv_c_compiler_gnu 3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3905$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3906if ${am_cv_prog_cc_c_o+:} false; then : 3907 $as_echo_n "(cached) " >&6 3908else 3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3910/* end confdefs.h. */ 3911 3912int 3913main () 3914{ 3915 3916 ; 3917 return 0; 3918} 3919_ACEOF 3920 # Make sure it works both with $CC and with simple cc. 3921 # Following AC_PROG_CC_C_O, we do the test twice because some 3922 # compilers refuse to overwrite an existing .o file with -o, 3923 # though they will create one. 3924 am_cv_prog_cc_c_o=yes 3925 for am_i in 1 2; do 3926 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3927 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3928 ac_status=$? 3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3930 (exit $ac_status); } \ 3931 && test -f conftest2.$ac_objext; then 3932 : OK 3933 else 3934 am_cv_prog_cc_c_o=no 3935 break 3936 fi 3937 done 3938 rm -f core conftest* 3939 unset am_i 3940fi 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3942$as_echo "$am_cv_prog_cc_c_o" >&6; } 3943if test "$am_cv_prog_cc_c_o" != yes; then 3944 # Losing compiler, so override with the script. 3945 # FIXME: It is wrong to rewrite CC. 3946 # But if we don't then we get into trouble of one sort or another. 3947 # A longer-term fix would be to have automake use am__CC in this case, 3948 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3949 CC="$am_aux_dir/compile $CC" 3950fi 3951ac_ext=c 3952ac_cpp='$CPP $CPPFLAGS' 3953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3955ac_compiler_gnu=$ac_cv_c_compiler_gnu 3956 3957 3958depcc="$CC" am_compiler_list= 3959 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3961$as_echo_n "checking dependency style of $depcc... " >&6; } 3962if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3966 # We make a subdir and do the tests there. Otherwise we can end up 3967 # making bogus files that we don't know about and never remove. For 3968 # instance it was reported that on HP-UX the gcc test will end up 3969 # making a dummy file named 'D' -- because '-MD' means "put the output 3970 # in D". 3971 rm -rf conftest.dir 3972 mkdir conftest.dir 3973 # Copy depcomp to subdir because otherwise we won't find it if we're 3974 # using a relative directory. 3975 cp "$am_depcomp" conftest.dir 3976 cd conftest.dir 3977 # We will build objects and dependencies in a subdirectory because 3978 # it helps to detect inapplicable dependency modes. For instance 3979 # both Tru64's cc and ICC support -MD to output dependencies as a 3980 # side effect of compilation, but ICC will put the dependencies in 3981 # the current directory while Tru64 will put them in the object 3982 # directory. 3983 mkdir sub 3984 3985 am_cv_CC_dependencies_compiler_type=none 3986 if test "$am_compiler_list" = ""; then 3987 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3988 fi 3989 am__universal=false 3990 case " $depcc " in #( 3991 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3992 esac 3993 3994 for depmode in $am_compiler_list; do 3995 # Setup a source with many dependencies, because some compilers 3996 # like to wrap large dependency lists on column 80 (with \), and 3997 # we should not choose a depcomp mode which is confused by this. 3998 # 3999 # We need to recreate these files for each test, as the compiler may 4000 # overwrite some of them when testing with obscure command lines. 4001 # This happens at least with the AIX C compiler. 4002 : > sub/conftest.c 4003 for i in 1 2 3 4 5 6; do 4004 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4005 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4006 # Solaris 10 /bin/sh. 4007 echo '/* dummy */' > sub/conftst$i.h 4008 done 4009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4010 4011 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4012 # mode. It turns out that the SunPro C++ compiler does not properly 4013 # handle '-M -o', and we need to detect this. Also, some Intel 4014 # versions had trouble with output in subdirs. 4015 am__obj=sub/conftest.${OBJEXT-o} 4016 am__minus_obj="-o $am__obj" 4017 case $depmode in 4018 gcc) 4019 # This depmode causes a compiler race in universal mode. 4020 test "$am__universal" = false || continue 4021 ;; 4022 nosideeffect) 4023 # After this tag, mechanisms are not by side-effect, so they'll 4024 # only be used when explicitly requested. 4025 if test "x$enable_dependency_tracking" = xyes; then 4026 continue 4027 else 4028 break 4029 fi 4030 ;; 4031 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4032 # This compiler won't grok '-c -o', but also, the minuso test has 4033 # not run yet. These depmodes are late enough in the game, and 4034 # so weak that their functioning should not be impacted. 4035 am__obj=conftest.${OBJEXT-o} 4036 am__minus_obj= 4037 ;; 4038 none) break ;; 4039 esac 4040 if depmode=$depmode \ 4041 source=sub/conftest.c object=$am__obj \ 4042 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4043 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4044 >/dev/null 2>conftest.err && 4045 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4046 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4047 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4048 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4049 # icc doesn't choke on unknown options, it will just issue warnings 4050 # or remarks (even with -Werror). So we grep stderr for any message 4051 # that says an option was ignored or not supported. 4052 # When given -MP, icc 7.0 and 7.1 complain thusly: 4053 # icc: Command line warning: ignoring option '-M'; no argument required 4054 # The diagnosis changed in icc 8.0: 4055 # icc: Command line remark: option '-MP' not supported 4056 if (grep 'ignoring option' conftest.err || 4057 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4058 am_cv_CC_dependencies_compiler_type=$depmode 4059 break 4060 fi 4061 fi 4062 done 4063 4064 cd .. 4065 rm -rf conftest.dir 4066else 4067 am_cv_CC_dependencies_compiler_type=none 4068fi 4069 4070fi 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4072$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4073CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4074 4075 if 4076 test "x$enable_dependency_tracking" != xno \ 4077 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4078 am__fastdepCC_TRUE= 4079 am__fastdepCC_FALSE='#' 4080else 4081 am__fastdepCC_TRUE='#' 4082 am__fastdepCC_FALSE= 4083fi 4084 4085 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4087$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4088if ${ac_cv_path_SED+:} false; then : 4089 $as_echo_n "(cached) " >&6 4090else 4091 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4092 for ac_i in 1 2 3 4 5 6 7; do 4093 ac_script="$ac_script$as_nl$ac_script" 4094 done 4095 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4096 { ac_script=; unset ac_script;} 4097 if test -z "$SED"; then 4098 ac_path_SED_found=false 4099 # Loop through the user's path and test for each of PROGNAME-LIST 4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4101for as_dir in $PATH 4102do 4103 IFS=$as_save_IFS 4104 test -z "$as_dir" && as_dir=. 4105 for ac_prog in sed gsed; do 4106 for ac_exec_ext in '' $ac_executable_extensions; do 4107 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4108 as_fn_executable_p "$ac_path_SED" || continue 4109# Check for GNU ac_path_SED and select it if it is found. 4110 # Check for GNU $ac_path_SED 4111case `"$ac_path_SED" --version 2>&1` in 4112*GNU*) 4113 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4114*) 4115 ac_count=0 4116 $as_echo_n 0123456789 >"conftest.in" 4117 while : 4118 do 4119 cat "conftest.in" "conftest.in" >"conftest.tmp" 4120 mv "conftest.tmp" "conftest.in" 4121 cp "conftest.in" "conftest.nl" 4122 $as_echo '' >> "conftest.nl" 4123 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4125 as_fn_arith $ac_count + 1 && ac_count=$as_val 4126 if test $ac_count -gt ${ac_path_SED_max-0}; then 4127 # Best one so far, save it but keep looking for a better one 4128 ac_cv_path_SED="$ac_path_SED" 4129 ac_path_SED_max=$ac_count 4130 fi 4131 # 10*(2^10) chars as input seems more than enough 4132 test $ac_count -gt 10 && break 4133 done 4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4135esac 4136 4137 $ac_path_SED_found && break 3 4138 done 4139 done 4140 done 4141IFS=$as_save_IFS 4142 if test -z "$ac_cv_path_SED"; then 4143 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4144 fi 4145else 4146 ac_cv_path_SED=$SED 4147fi 4148 4149fi 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4151$as_echo "$ac_cv_path_SED" >&6; } 4152 SED="$ac_cv_path_SED" 4153 rm -f conftest.sed 4154 4155test -z "$SED" && SED=sed 4156Xsed="$SED -e 1s/^X//" 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4169$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4170if ${ac_cv_path_GREP+:} false; then : 4171 $as_echo_n "(cached) " >&6 4172else 4173 if test -z "$GREP"; then 4174 ac_path_GREP_found=false 4175 # Loop through the user's path and test for each of PROGNAME-LIST 4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4177for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4178do 4179 IFS=$as_save_IFS 4180 test -z "$as_dir" && as_dir=. 4181 for ac_prog in grep ggrep; do 4182 for ac_exec_ext in '' $ac_executable_extensions; do 4183 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4184 as_fn_executable_p "$ac_path_GREP" || continue 4185# Check for GNU ac_path_GREP and select it if it is found. 4186 # Check for GNU $ac_path_GREP 4187case `"$ac_path_GREP" --version 2>&1` in 4188*GNU*) 4189 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4190*) 4191 ac_count=0 4192 $as_echo_n 0123456789 >"conftest.in" 4193 while : 4194 do 4195 cat "conftest.in" "conftest.in" >"conftest.tmp" 4196 mv "conftest.tmp" "conftest.in" 4197 cp "conftest.in" "conftest.nl" 4198 $as_echo 'GREP' >> "conftest.nl" 4199 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4201 as_fn_arith $ac_count + 1 && ac_count=$as_val 4202 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4203 # Best one so far, save it but keep looking for a better one 4204 ac_cv_path_GREP="$ac_path_GREP" 4205 ac_path_GREP_max=$ac_count 4206 fi 4207 # 10*(2^10) chars as input seems more than enough 4208 test $ac_count -gt 10 && break 4209 done 4210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4211esac 4212 4213 $ac_path_GREP_found && break 3 4214 done 4215 done 4216 done 4217IFS=$as_save_IFS 4218 if test -z "$ac_cv_path_GREP"; then 4219 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4220 fi 4221else 4222 ac_cv_path_GREP=$GREP 4223fi 4224 4225fi 4226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4227$as_echo "$ac_cv_path_GREP" >&6; } 4228 GREP="$ac_cv_path_GREP" 4229 4230 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4232$as_echo_n "checking for egrep... " >&6; } 4233if ${ac_cv_path_EGREP+:} false; then : 4234 $as_echo_n "(cached) " >&6 4235else 4236 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4237 then ac_cv_path_EGREP="$GREP -E" 4238 else 4239 if test -z "$EGREP"; then 4240 ac_path_EGREP_found=false 4241 # Loop through the user's path and test for each of PROGNAME-LIST 4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4243for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4244do 4245 IFS=$as_save_IFS 4246 test -z "$as_dir" && as_dir=. 4247 for ac_prog in egrep; do 4248 for ac_exec_ext in '' $ac_executable_extensions; do 4249 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4250 as_fn_executable_p "$ac_path_EGREP" || continue 4251# Check for GNU ac_path_EGREP and select it if it is found. 4252 # Check for GNU $ac_path_EGREP 4253case `"$ac_path_EGREP" --version 2>&1` in 4254*GNU*) 4255 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4256*) 4257 ac_count=0 4258 $as_echo_n 0123456789 >"conftest.in" 4259 while : 4260 do 4261 cat "conftest.in" "conftest.in" >"conftest.tmp" 4262 mv "conftest.tmp" "conftest.in" 4263 cp "conftest.in" "conftest.nl" 4264 $as_echo 'EGREP' >> "conftest.nl" 4265 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4267 as_fn_arith $ac_count + 1 && ac_count=$as_val 4268 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4269 # Best one so far, save it but keep looking for a better one 4270 ac_cv_path_EGREP="$ac_path_EGREP" 4271 ac_path_EGREP_max=$ac_count 4272 fi 4273 # 10*(2^10) chars as input seems more than enough 4274 test $ac_count -gt 10 && break 4275 done 4276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4277esac 4278 4279 $ac_path_EGREP_found && break 3 4280 done 4281 done 4282 done 4283IFS=$as_save_IFS 4284 if test -z "$ac_cv_path_EGREP"; then 4285 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4286 fi 4287else 4288 ac_cv_path_EGREP=$EGREP 4289fi 4290 4291 fi 4292fi 4293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4294$as_echo "$ac_cv_path_EGREP" >&6; } 4295 EGREP="$ac_cv_path_EGREP" 4296 4297 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4299$as_echo_n "checking for fgrep... " >&6; } 4300if ${ac_cv_path_FGREP+:} false; then : 4301 $as_echo_n "(cached) " >&6 4302else 4303 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4304 then ac_cv_path_FGREP="$GREP -F" 4305 else 4306 if test -z "$FGREP"; then 4307 ac_path_FGREP_found=false 4308 # Loop through the user's path and test for each of PROGNAME-LIST 4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4310for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4311do 4312 IFS=$as_save_IFS 4313 test -z "$as_dir" && as_dir=. 4314 for ac_prog in fgrep; do 4315 for ac_exec_ext in '' $ac_executable_extensions; do 4316 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4317 as_fn_executable_p "$ac_path_FGREP" || continue 4318# Check for GNU ac_path_FGREP and select it if it is found. 4319 # Check for GNU $ac_path_FGREP 4320case `"$ac_path_FGREP" --version 2>&1` in 4321*GNU*) 4322 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4323*) 4324 ac_count=0 4325 $as_echo_n 0123456789 >"conftest.in" 4326 while : 4327 do 4328 cat "conftest.in" "conftest.in" >"conftest.tmp" 4329 mv "conftest.tmp" "conftest.in" 4330 cp "conftest.in" "conftest.nl" 4331 $as_echo 'FGREP' >> "conftest.nl" 4332 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4334 as_fn_arith $ac_count + 1 && ac_count=$as_val 4335 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4336 # Best one so far, save it but keep looking for a better one 4337 ac_cv_path_FGREP="$ac_path_FGREP" 4338 ac_path_FGREP_max=$ac_count 4339 fi 4340 # 10*(2^10) chars as input seems more than enough 4341 test $ac_count -gt 10 && break 4342 done 4343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4344esac 4345 4346 $ac_path_FGREP_found && break 3 4347 done 4348 done 4349 done 4350IFS=$as_save_IFS 4351 if test -z "$ac_cv_path_FGREP"; then 4352 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4353 fi 4354else 4355 ac_cv_path_FGREP=$FGREP 4356fi 4357 4358 fi 4359fi 4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4361$as_echo "$ac_cv_path_FGREP" >&6; } 4362 FGREP="$ac_cv_path_FGREP" 4363 4364 4365test -z "$GREP" && GREP=grep 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385# Check whether --with-gnu-ld was given. 4386if test "${with_gnu_ld+set}" = set; then : 4387 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4388else 4389 with_gnu_ld=no 4390fi 4391 4392ac_prog=ld 4393if test yes = "$GCC"; then 4394 # Check if gcc -print-prog-name=ld gives a path. 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4396$as_echo_n "checking for ld used by $CC... " >&6; } 4397 case $host in 4398 *-*-mingw*) 4399 # gcc leaves a trailing carriage return, which upsets mingw 4400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4401 *) 4402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4403 esac 4404 case $ac_prog in 4405 # Accept absolute paths. 4406 [\\/]* | ?:[\\/]*) 4407 re_direlt='/[^/][^/]*/\.\./' 4408 # Canonicalize the pathname of ld 4409 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4410 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4411 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4412 done 4413 test -z "$LD" && LD=$ac_prog 4414 ;; 4415 "") 4416 # If it fails, then pretend we aren't using GCC. 4417 ac_prog=ld 4418 ;; 4419 *) 4420 # If it is relative, then search for the first ld in PATH. 4421 with_gnu_ld=unknown 4422 ;; 4423 esac 4424elif test yes = "$with_gnu_ld"; then 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4426$as_echo_n "checking for GNU ld... " >&6; } 4427else 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4429$as_echo_n "checking for non-GNU ld... " >&6; } 4430fi 4431if ${lt_cv_path_LD+:} false; then : 4432 $as_echo_n "(cached) " >&6 4433else 4434 if test -z "$LD"; then 4435 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4436 for ac_dir in $PATH; do 4437 IFS=$lt_save_ifs 4438 test -z "$ac_dir" && ac_dir=. 4439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4440 lt_cv_path_LD=$ac_dir/$ac_prog 4441 # Check to see if the program is GNU ld. I'd rather use --version, 4442 # but apparently some variants of GNU ld only accept -v. 4443 # Break only if it was the GNU/non-GNU ld that we prefer. 4444 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4445 *GNU* | *'with BFD'*) 4446 test no != "$with_gnu_ld" && break 4447 ;; 4448 *) 4449 test yes != "$with_gnu_ld" && break 4450 ;; 4451 esac 4452 fi 4453 done 4454 IFS=$lt_save_ifs 4455else 4456 lt_cv_path_LD=$LD # Let the user override the test with a path. 4457fi 4458fi 4459 4460LD=$lt_cv_path_LD 4461if test -n "$LD"; then 4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4463$as_echo "$LD" >&6; } 4464else 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4466$as_echo "no" >&6; } 4467fi 4468test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4470$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4471if ${lt_cv_prog_gnu_ld+:} false; then : 4472 $as_echo_n "(cached) " >&6 4473else 4474 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4475case `$LD -v 2>&1 </dev/null` in 4476*GNU* | *'with BFD'*) 4477 lt_cv_prog_gnu_ld=yes 4478 ;; 4479*) 4480 lt_cv_prog_gnu_ld=no 4481 ;; 4482esac 4483fi 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4485$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4486with_gnu_ld=$lt_cv_prog_gnu_ld 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4497$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4498if ${lt_cv_path_NM+:} false; then : 4499 $as_echo_n "(cached) " >&6 4500else 4501 if test -n "$NM"; then 4502 # Let the user override the test. 4503 lt_cv_path_NM=$NM 4504else 4505 lt_nm_to_check=${ac_tool_prefix}nm 4506 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4507 lt_nm_to_check="$lt_nm_to_check nm" 4508 fi 4509 for lt_tmp_nm in $lt_nm_to_check; do 4510 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4511 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4512 IFS=$lt_save_ifs 4513 test -z "$ac_dir" && ac_dir=. 4514 tmp_nm=$ac_dir/$lt_tmp_nm 4515 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4516 # Check to see if the nm accepts a BSD-compat flag. 4517 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4518 # nm: unknown option "B" ignored 4519 # Tru64's nm complains that /dev/null is an invalid object file 4520 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4521 case $build_os in 4522 mingw*) lt_bad_file=conftest.nm/nofile ;; 4523 *) lt_bad_file=/dev/null ;; 4524 esac 4525 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4526 *$lt_bad_file* | *'Invalid file or object type'*) 4527 lt_cv_path_NM="$tmp_nm -B" 4528 break 2 4529 ;; 4530 *) 4531 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4532 */dev/null*) 4533 lt_cv_path_NM="$tmp_nm -p" 4534 break 2 4535 ;; 4536 *) 4537 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4538 continue # so that we can try to find one that supports BSD flags 4539 ;; 4540 esac 4541 ;; 4542 esac 4543 fi 4544 done 4545 IFS=$lt_save_ifs 4546 done 4547 : ${lt_cv_path_NM=no} 4548fi 4549fi 4550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4551$as_echo "$lt_cv_path_NM" >&6; } 4552if test no != "$lt_cv_path_NM"; then 4553 NM=$lt_cv_path_NM 4554else 4555 # Didn't find any BSD compatible name lister, look for dumpbin. 4556 if test -n "$DUMPBIN"; then : 4557 # Let the user override the test. 4558 else 4559 if test -n "$ac_tool_prefix"; then 4560 for ac_prog in dumpbin "link -dump" 4561 do 4562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4563set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4565$as_echo_n "checking for $ac_word... " >&6; } 4566if ${ac_cv_prog_DUMPBIN+:} false; then : 4567 $as_echo_n "(cached) " >&6 4568else 4569 if test -n "$DUMPBIN"; then 4570 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4571else 4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4573for as_dir in $PATH 4574do 4575 IFS=$as_save_IFS 4576 test -z "$as_dir" && as_dir=. 4577 for ac_exec_ext in '' $ac_executable_extensions; do 4578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4579 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4581 break 2 4582 fi 4583done 4584 done 4585IFS=$as_save_IFS 4586 4587fi 4588fi 4589DUMPBIN=$ac_cv_prog_DUMPBIN 4590if test -n "$DUMPBIN"; then 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4592$as_echo "$DUMPBIN" >&6; } 4593else 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4595$as_echo "no" >&6; } 4596fi 4597 4598 4599 test -n "$DUMPBIN" && break 4600 done 4601fi 4602if test -z "$DUMPBIN"; then 4603 ac_ct_DUMPBIN=$DUMPBIN 4604 for ac_prog in dumpbin "link -dump" 4605do 4606 # Extract the first word of "$ac_prog", so it can be a program name with args. 4607set dummy $ac_prog; ac_word=$2 4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4609$as_echo_n "checking for $ac_word... " >&6; } 4610if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4611 $as_echo_n "(cached) " >&6 4612else 4613 if test -n "$ac_ct_DUMPBIN"; then 4614 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4615else 4616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4617for as_dir in $PATH 4618do 4619 IFS=$as_save_IFS 4620 test -z "$as_dir" && as_dir=. 4621 for ac_exec_ext in '' $ac_executable_extensions; do 4622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4623 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4625 break 2 4626 fi 4627done 4628 done 4629IFS=$as_save_IFS 4630 4631fi 4632fi 4633ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4634if test -n "$ac_ct_DUMPBIN"; then 4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4636$as_echo "$ac_ct_DUMPBIN" >&6; } 4637else 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4639$as_echo "no" >&6; } 4640fi 4641 4642 4643 test -n "$ac_ct_DUMPBIN" && break 4644done 4645 4646 if test "x$ac_ct_DUMPBIN" = x; then 4647 DUMPBIN=":" 4648 else 4649 case $cross_compiling:$ac_tool_warned in 4650yes:) 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4653ac_tool_warned=yes ;; 4654esac 4655 DUMPBIN=$ac_ct_DUMPBIN 4656 fi 4657fi 4658 4659 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4660 *COFF*) 4661 DUMPBIN="$DUMPBIN -symbols -headers" 4662 ;; 4663 *) 4664 DUMPBIN=: 4665 ;; 4666 esac 4667 fi 4668 4669 if test : != "$DUMPBIN"; then 4670 NM=$DUMPBIN 4671 fi 4672fi 4673test -z "$NM" && NM=nm 4674 4675 4676 4677 4678 4679 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4681$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4682if ${lt_cv_nm_interface+:} false; then : 4683 $as_echo_n "(cached) " >&6 4684else 4685 lt_cv_nm_interface="BSD nm" 4686 echo "int some_variable = 0;" > conftest.$ac_ext 4687 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4688 (eval "$ac_compile" 2>conftest.err) 4689 cat conftest.err >&5 4690 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4691 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4692 cat conftest.err >&5 4693 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4694 cat conftest.out >&5 4695 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4696 lt_cv_nm_interface="MS dumpbin" 4697 fi 4698 rm -f conftest* 4699fi 4700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4701$as_echo "$lt_cv_nm_interface" >&6; } 4702 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4704$as_echo_n "checking whether ln -s works... " >&6; } 4705LN_S=$as_ln_s 4706if test "$LN_S" = "ln -s"; then 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4708$as_echo "yes" >&6; } 4709else 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4711$as_echo "no, using $LN_S" >&6; } 4712fi 4713 4714# find the maximum length of command line arguments 4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4716$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4717if ${lt_cv_sys_max_cmd_len+:} false; then : 4718 $as_echo_n "(cached) " >&6 4719else 4720 i=0 4721 teststring=ABCD 4722 4723 case $build_os in 4724 msdosdjgpp*) 4725 # On DJGPP, this test can blow up pretty badly due to problems in libc 4726 # (any single argument exceeding 2000 bytes causes a buffer overrun 4727 # during glob expansion). Even if it were fixed, the result of this 4728 # check would be larger than it should be. 4729 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4730 ;; 4731 4732 gnu*) 4733 # Under GNU Hurd, this test is not required because there is 4734 # no limit to the length of command line arguments. 4735 # Libtool will interpret -1 as no limit whatsoever 4736 lt_cv_sys_max_cmd_len=-1; 4737 ;; 4738 4739 cygwin* | mingw* | cegcc*) 4740 # On Win9x/ME, this test blows up -- it succeeds, but takes 4741 # about 5 minutes as the teststring grows exponentially. 4742 # Worse, since 9x/ME are not pre-emptively multitasking, 4743 # you end up with a "frozen" computer, even though with patience 4744 # the test eventually succeeds (with a max line length of 256k). 4745 # Instead, let's just punt: use the minimum linelength reported by 4746 # all of the supported platforms: 8192 (on NT/2K/XP). 4747 lt_cv_sys_max_cmd_len=8192; 4748 ;; 4749 4750 mint*) 4751 # On MiNT this can take a long time and run out of memory. 4752 lt_cv_sys_max_cmd_len=8192; 4753 ;; 4754 4755 amigaos*) 4756 # On AmigaOS with pdksh, this test takes hours, literally. 4757 # So we just punt and use a minimum line length of 8192. 4758 lt_cv_sys_max_cmd_len=8192; 4759 ;; 4760 4761 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4762 # This has been around since 386BSD, at least. Likely further. 4763 if test -x /sbin/sysctl; then 4764 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4765 elif test -x /usr/sbin/sysctl; then 4766 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4767 else 4768 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4769 fi 4770 # And add a safety zone 4771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4773 ;; 4774 4775 interix*) 4776 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4777 lt_cv_sys_max_cmd_len=196608 4778 ;; 4779 4780 os2*) 4781 # The test takes a long time on OS/2. 4782 lt_cv_sys_max_cmd_len=8192 4783 ;; 4784 4785 osf*) 4786 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4787 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4788 # nice to cause kernel panics so lets avoid the loop below. 4789 # First set a reasonable default. 4790 lt_cv_sys_max_cmd_len=16384 4791 # 4792 if test -x /sbin/sysconfig; then 4793 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4794 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4795 esac 4796 fi 4797 ;; 4798 sco3.2v5*) 4799 lt_cv_sys_max_cmd_len=102400 4800 ;; 4801 sysv5* | sco5v6* | sysv4.2uw2*) 4802 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4803 if test -n "$kargmax"; then 4804 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4805 else 4806 lt_cv_sys_max_cmd_len=32768 4807 fi 4808 ;; 4809 *) 4810 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4811 if test -n "$lt_cv_sys_max_cmd_len" && \ 4812 test undefined != "$lt_cv_sys_max_cmd_len"; then 4813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4815 else 4816 # Make teststring a little bigger before we do anything with it. 4817 # a 1K string should be a reasonable start. 4818 for i in 1 2 3 4 5 6 7 8; do 4819 teststring=$teststring$teststring 4820 done 4821 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4822 # If test is not a shell built-in, we'll probably end up computing a 4823 # maximum length that is only half of the actual maximum length, but 4824 # we can't tell. 4825 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4826 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4827 test 17 != "$i" # 1/2 MB should be enough 4828 do 4829 i=`expr $i + 1` 4830 teststring=$teststring$teststring 4831 done 4832 # Only check the string length outside the loop. 4833 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4834 teststring= 4835 # Add a significant safety factor because C++ compilers can tack on 4836 # massive amounts of additional arguments before passing them to the 4837 # linker. It appears as though 1/2 is a usable value. 4838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4839 fi 4840 ;; 4841 esac 4842 4843fi 4844 4845if test -n "$lt_cv_sys_max_cmd_len"; then 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4847$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4848else 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4850$as_echo "none" >&6; } 4851fi 4852max_cmd_len=$lt_cv_sys_max_cmd_len 4853 4854 4855 4856 4857 4858 4859: ${CP="cp -f"} 4860: ${MV="mv -f"} 4861: ${RM="rm -f"} 4862 4863if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4864 lt_unset=unset 4865else 4866 lt_unset=false 4867fi 4868 4869 4870 4871 4872 4873# test EBCDIC or ASCII 4874case `echo X|tr X '\101'` in 4875 A) # ASCII based system 4876 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4877 lt_SP2NL='tr \040 \012' 4878 lt_NL2SP='tr \015\012 \040\040' 4879 ;; 4880 *) # EBCDIC based system 4881 lt_SP2NL='tr \100 \n' 4882 lt_NL2SP='tr \r\n \100\100' 4883 ;; 4884esac 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4895$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4896if ${lt_cv_to_host_file_cmd+:} false; then : 4897 $as_echo_n "(cached) " >&6 4898else 4899 case $host in 4900 *-*-mingw* ) 4901 case $build in 4902 *-*-mingw* ) # actually msys 4903 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4904 ;; 4905 *-*-cygwin* ) 4906 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4907 ;; 4908 * ) # otherwise, assume *nix 4909 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4910 ;; 4911 esac 4912 ;; 4913 *-*-cygwin* ) 4914 case $build in 4915 *-*-mingw* ) # actually msys 4916 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4917 ;; 4918 *-*-cygwin* ) 4919 lt_cv_to_host_file_cmd=func_convert_file_noop 4920 ;; 4921 * ) # otherwise, assume *nix 4922 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4923 ;; 4924 esac 4925 ;; 4926 * ) # unhandled hosts (and "normal" native builds) 4927 lt_cv_to_host_file_cmd=func_convert_file_noop 4928 ;; 4929esac 4930 4931fi 4932 4933to_host_file_cmd=$lt_cv_to_host_file_cmd 4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4935$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4936 4937 4938 4939 4940 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4942$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4943if ${lt_cv_to_tool_file_cmd+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 #assume ordinary cross tools, or native build. 4947lt_cv_to_tool_file_cmd=func_convert_file_noop 4948case $host in 4949 *-*-mingw* ) 4950 case $build in 4951 *-*-mingw* ) # actually msys 4952 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4953 ;; 4954 esac 4955 ;; 4956esac 4957 4958fi 4959 4960to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4962$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4963 4964 4965 4966 4967 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4969$as_echo_n "checking for $LD option to reload object files... " >&6; } 4970if ${lt_cv_ld_reload_flag+:} false; then : 4971 $as_echo_n "(cached) " >&6 4972else 4973 lt_cv_ld_reload_flag='-r' 4974fi 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4976$as_echo "$lt_cv_ld_reload_flag" >&6; } 4977reload_flag=$lt_cv_ld_reload_flag 4978case $reload_flag in 4979"" | " "*) ;; 4980*) reload_flag=" $reload_flag" ;; 4981esac 4982reload_cmds='$LD$reload_flag -o $output$reload_objs' 4983case $host_os in 4984 cygwin* | mingw* | pw32* | cegcc*) 4985 if test yes != "$GCC"; then 4986 reload_cmds=false 4987 fi 4988 ;; 4989 darwin*) 4990 if test yes = "$GCC"; then 4991 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4992 else 4993 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4994 fi 4995 ;; 4996esac 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006if test -n "$ac_tool_prefix"; then 5007 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5008set dummy ${ac_tool_prefix}objdump; ac_word=$2 5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5010$as_echo_n "checking for $ac_word... " >&6; } 5011if ${ac_cv_prog_OBJDUMP+:} false; then : 5012 $as_echo_n "(cached) " >&6 5013else 5014 if test -n "$OBJDUMP"; then 5015 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5016else 5017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5018for as_dir in $PATH 5019do 5020 IFS=$as_save_IFS 5021 test -z "$as_dir" && as_dir=. 5022 for ac_exec_ext in '' $ac_executable_extensions; do 5023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5024 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5026 break 2 5027 fi 5028done 5029 done 5030IFS=$as_save_IFS 5031 5032fi 5033fi 5034OBJDUMP=$ac_cv_prog_OBJDUMP 5035if test -n "$OBJDUMP"; then 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5037$as_echo "$OBJDUMP" >&6; } 5038else 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5040$as_echo "no" >&6; } 5041fi 5042 5043 5044fi 5045if test -z "$ac_cv_prog_OBJDUMP"; then 5046 ac_ct_OBJDUMP=$OBJDUMP 5047 # Extract the first word of "objdump", so it can be a program name with args. 5048set dummy objdump; ac_word=$2 5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5050$as_echo_n "checking for $ac_word... " >&6; } 5051if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5052 $as_echo_n "(cached) " >&6 5053else 5054 if test -n "$ac_ct_OBJDUMP"; then 5055 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5056else 5057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5058for as_dir in $PATH 5059do 5060 IFS=$as_save_IFS 5061 test -z "$as_dir" && as_dir=. 5062 for ac_exec_ext in '' $ac_executable_extensions; do 5063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5064 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5066 break 2 5067 fi 5068done 5069 done 5070IFS=$as_save_IFS 5071 5072fi 5073fi 5074ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5075if test -n "$ac_ct_OBJDUMP"; then 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5077$as_echo "$ac_ct_OBJDUMP" >&6; } 5078else 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5080$as_echo "no" >&6; } 5081fi 5082 5083 if test "x$ac_ct_OBJDUMP" = x; then 5084 OBJDUMP="false" 5085 else 5086 case $cross_compiling:$ac_tool_warned in 5087yes:) 5088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5090ac_tool_warned=yes ;; 5091esac 5092 OBJDUMP=$ac_ct_OBJDUMP 5093 fi 5094else 5095 OBJDUMP="$ac_cv_prog_OBJDUMP" 5096fi 5097 5098test -z "$OBJDUMP" && OBJDUMP=objdump 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5109$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5110if ${lt_cv_deplibs_check_method+:} false; then : 5111 $as_echo_n "(cached) " >&6 5112else 5113 lt_cv_file_magic_cmd='$MAGIC_CMD' 5114lt_cv_file_magic_test_file= 5115lt_cv_deplibs_check_method='unknown' 5116# Need to set the preceding variable on all platforms that support 5117# interlibrary dependencies. 5118# 'none' -- dependencies not supported. 5119# 'unknown' -- same as none, but documents that we really don't know. 5120# 'pass_all' -- all dependencies passed with no checks. 5121# 'test_compile' -- check by making test program. 5122# 'file_magic [[regex]]' -- check by looking for files in library path 5123# that responds to the $file_magic_cmd with a given extended regex. 5124# If you have 'file' or equivalent on your system and you're not sure 5125# whether 'pass_all' will *always* work, you probably want this one. 5126 5127case $host_os in 5128aix[4-9]*) 5129 lt_cv_deplibs_check_method=pass_all 5130 ;; 5131 5132beos*) 5133 lt_cv_deplibs_check_method=pass_all 5134 ;; 5135 5136bsdi[45]*) 5137 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5138 lt_cv_file_magic_cmd='/usr/bin/file -L' 5139 lt_cv_file_magic_test_file=/shlib/libc.so 5140 ;; 5141 5142cygwin*) 5143 # func_win32_libid is a shell function defined in ltmain.sh 5144 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5145 lt_cv_file_magic_cmd='func_win32_libid' 5146 ;; 5147 5148mingw* | pw32*) 5149 # Base MSYS/MinGW do not provide the 'file' command needed by 5150 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5151 # unless we find 'file', for example because we are cross-compiling. 5152 if ( file / ) >/dev/null 2>&1; then 5153 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5154 lt_cv_file_magic_cmd='func_win32_libid' 5155 else 5156 # Keep this pattern in sync with the one in func_win32_libid. 5157 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5158 lt_cv_file_magic_cmd='$OBJDUMP -f' 5159 fi 5160 ;; 5161 5162cegcc*) 5163 # use the weaker test based on 'objdump'. See mingw*. 5164 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5165 lt_cv_file_magic_cmd='$OBJDUMP -f' 5166 ;; 5167 5168darwin* | rhapsody*) 5169 lt_cv_deplibs_check_method=pass_all 5170 ;; 5171 5172freebsd* | dragonfly*) 5173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5174 case $host_cpu in 5175 i*86 ) 5176 # Not sure whether the presence of OpenBSD here was a mistake. 5177 # Let's accept both of them until this is cleared up. 5178 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5179 lt_cv_file_magic_cmd=/usr/bin/file 5180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5181 ;; 5182 esac 5183 else 5184 lt_cv_deplibs_check_method=pass_all 5185 fi 5186 ;; 5187 5188haiku*) 5189 lt_cv_deplibs_check_method=pass_all 5190 ;; 5191 5192hpux10.20* | hpux11*) 5193 lt_cv_file_magic_cmd=/usr/bin/file 5194 case $host_cpu in 5195 ia64*) 5196 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5197 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5198 ;; 5199 hppa*64*) 5200 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]' 5201 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5202 ;; 5203 *) 5204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5205 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5206 ;; 5207 esac 5208 ;; 5209 5210interix[3-9]*) 5211 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5213 ;; 5214 5215irix5* | irix6* | nonstopux*) 5216 case $LD in 5217 *-32|*"-32 ") libmagic=32-bit;; 5218 *-n32|*"-n32 ") libmagic=N32;; 5219 *-64|*"-64 ") libmagic=64-bit;; 5220 *) libmagic=never-match;; 5221 esac 5222 lt_cv_deplibs_check_method=pass_all 5223 ;; 5224 5225# This must be glibc/ELF. 5226linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5227 lt_cv_deplibs_check_method=pass_all 5228 ;; 5229 5230netbsd*) 5231 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5233 else 5234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5235 fi 5236 ;; 5237 5238newos6*) 5239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5240 lt_cv_file_magic_cmd=/usr/bin/file 5241 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5242 ;; 5243 5244*nto* | *qnx*) 5245 lt_cv_deplibs_check_method=pass_all 5246 ;; 5247 5248openbsd* | bitrig*) 5249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5251 else 5252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5253 fi 5254 ;; 5255 5256osf3* | osf4* | osf5*) 5257 lt_cv_deplibs_check_method=pass_all 5258 ;; 5259 5260rdos*) 5261 lt_cv_deplibs_check_method=pass_all 5262 ;; 5263 5264solaris*) 5265 lt_cv_deplibs_check_method=pass_all 5266 ;; 5267 5268sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5269 lt_cv_deplibs_check_method=pass_all 5270 ;; 5271 5272sysv4 | sysv4.3*) 5273 case $host_vendor in 5274 motorola) 5275 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]' 5276 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5277 ;; 5278 ncr) 5279 lt_cv_deplibs_check_method=pass_all 5280 ;; 5281 sequent) 5282 lt_cv_file_magic_cmd='/bin/file' 5283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5284 ;; 5285 sni) 5286 lt_cv_file_magic_cmd='/bin/file' 5287 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5288 lt_cv_file_magic_test_file=/lib/libc.so 5289 ;; 5290 siemens) 5291 lt_cv_deplibs_check_method=pass_all 5292 ;; 5293 pc) 5294 lt_cv_deplibs_check_method=pass_all 5295 ;; 5296 esac 5297 ;; 5298 5299tpf*) 5300 lt_cv_deplibs_check_method=pass_all 5301 ;; 5302os2*) 5303 lt_cv_deplibs_check_method=pass_all 5304 ;; 5305esac 5306 5307fi 5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5309$as_echo "$lt_cv_deplibs_check_method" >&6; } 5310 5311file_magic_glob= 5312want_nocaseglob=no 5313if test "$build" = "$host"; then 5314 case $host_os in 5315 mingw* | pw32*) 5316 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5317 want_nocaseglob=yes 5318 else 5319 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5320 fi 5321 ;; 5322 esac 5323fi 5324 5325file_magic_cmd=$lt_cv_file_magic_cmd 5326deplibs_check_method=$lt_cv_deplibs_check_method 5327test -z "$deplibs_check_method" && deplibs_check_method=unknown 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350if test -n "$ac_tool_prefix"; then 5351 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5352set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5354$as_echo_n "checking for $ac_word... " >&6; } 5355if ${ac_cv_prog_DLLTOOL+:} false; then : 5356 $as_echo_n "(cached) " >&6 5357else 5358 if test -n "$DLLTOOL"; then 5359 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5360else 5361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5362for as_dir in $PATH 5363do 5364 IFS=$as_save_IFS 5365 test -z "$as_dir" && as_dir=. 5366 for ac_exec_ext in '' $ac_executable_extensions; do 5367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5368 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5370 break 2 5371 fi 5372done 5373 done 5374IFS=$as_save_IFS 5375 5376fi 5377fi 5378DLLTOOL=$ac_cv_prog_DLLTOOL 5379if test -n "$DLLTOOL"; then 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5381$as_echo "$DLLTOOL" >&6; } 5382else 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5384$as_echo "no" >&6; } 5385fi 5386 5387 5388fi 5389if test -z "$ac_cv_prog_DLLTOOL"; then 5390 ac_ct_DLLTOOL=$DLLTOOL 5391 # Extract the first word of "dlltool", so it can be a program name with args. 5392set dummy dlltool; ac_word=$2 5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5394$as_echo_n "checking for $ac_word... " >&6; } 5395if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5396 $as_echo_n "(cached) " >&6 5397else 5398 if test -n "$ac_ct_DLLTOOL"; then 5399 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5400else 5401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5402for as_dir in $PATH 5403do 5404 IFS=$as_save_IFS 5405 test -z "$as_dir" && as_dir=. 5406 for ac_exec_ext in '' $ac_executable_extensions; do 5407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5408 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5410 break 2 5411 fi 5412done 5413 done 5414IFS=$as_save_IFS 5415 5416fi 5417fi 5418ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5419if test -n "$ac_ct_DLLTOOL"; then 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5421$as_echo "$ac_ct_DLLTOOL" >&6; } 5422else 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5424$as_echo "no" >&6; } 5425fi 5426 5427 if test "x$ac_ct_DLLTOOL" = x; then 5428 DLLTOOL="false" 5429 else 5430 case $cross_compiling:$ac_tool_warned in 5431yes:) 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5434ac_tool_warned=yes ;; 5435esac 5436 DLLTOOL=$ac_ct_DLLTOOL 5437 fi 5438else 5439 DLLTOOL="$ac_cv_prog_DLLTOOL" 5440fi 5441 5442test -z "$DLLTOOL" && DLLTOOL=dlltool 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5454$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5455if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5456 $as_echo_n "(cached) " >&6 5457else 5458 lt_cv_sharedlib_from_linklib_cmd='unknown' 5459 5460case $host_os in 5461cygwin* | mingw* | pw32* | cegcc*) 5462 # two different shell functions defined in ltmain.sh; 5463 # decide which one to use based on capabilities of $DLLTOOL 5464 case `$DLLTOOL --help 2>&1` in 5465 *--identify-strict*) 5466 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5467 ;; 5468 *) 5469 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5470 ;; 5471 esac 5472 ;; 5473*) 5474 # fallback: assume linklib IS sharedlib 5475 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5476 ;; 5477esac 5478 5479fi 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5481$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5482sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5483test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5484 5485 5486 5487 5488 5489 5490 5491 5492if test -n "$ac_tool_prefix"; then 5493 for ac_prog in ar 5494 do 5495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5496set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5498$as_echo_n "checking for $ac_word... " >&6; } 5499if ${ac_cv_prog_AR+:} false; then : 5500 $as_echo_n "(cached) " >&6 5501else 5502 if test -n "$AR"; then 5503 ac_cv_prog_AR="$AR" # Let the user override the test. 5504else 5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5506for as_dir in $PATH 5507do 5508 IFS=$as_save_IFS 5509 test -z "$as_dir" && as_dir=. 5510 for ac_exec_ext in '' $ac_executable_extensions; do 5511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5512 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5514 break 2 5515 fi 5516done 5517 done 5518IFS=$as_save_IFS 5519 5520fi 5521fi 5522AR=$ac_cv_prog_AR 5523if test -n "$AR"; then 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5525$as_echo "$AR" >&6; } 5526else 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5528$as_echo "no" >&6; } 5529fi 5530 5531 5532 test -n "$AR" && break 5533 done 5534fi 5535if test -z "$AR"; then 5536 ac_ct_AR=$AR 5537 for ac_prog in ar 5538do 5539 # Extract the first word of "$ac_prog", so it can be a program name with args. 5540set dummy $ac_prog; ac_word=$2 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5542$as_echo_n "checking for $ac_word... " >&6; } 5543if ${ac_cv_prog_ac_ct_AR+:} false; then : 5544 $as_echo_n "(cached) " >&6 5545else 5546 if test -n "$ac_ct_AR"; then 5547 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5548else 5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5550for as_dir in $PATH 5551do 5552 IFS=$as_save_IFS 5553 test -z "$as_dir" && as_dir=. 5554 for ac_exec_ext in '' $ac_executable_extensions; do 5555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5556 ac_cv_prog_ac_ct_AR="$ac_prog" 5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5558 break 2 5559 fi 5560done 5561 done 5562IFS=$as_save_IFS 5563 5564fi 5565fi 5566ac_ct_AR=$ac_cv_prog_ac_ct_AR 5567if test -n "$ac_ct_AR"; then 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5569$as_echo "$ac_ct_AR" >&6; } 5570else 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5572$as_echo "no" >&6; } 5573fi 5574 5575 5576 test -n "$ac_ct_AR" && break 5577done 5578 5579 if test "x$ac_ct_AR" = x; then 5580 AR="false" 5581 else 5582 case $cross_compiling:$ac_tool_warned in 5583yes:) 5584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5586ac_tool_warned=yes ;; 5587esac 5588 AR=$ac_ct_AR 5589 fi 5590fi 5591 5592: ${AR=ar} 5593: ${AR_FLAGS=cru} 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5606$as_echo_n "checking for archiver @FILE support... " >&6; } 5607if ${lt_cv_ar_at_file+:} false; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 lt_cv_ar_at_file=no 5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5612/* end confdefs.h. */ 5613 5614int 5615main () 5616{ 5617 5618 ; 5619 return 0; 5620} 5621_ACEOF 5622if ac_fn_c_try_compile "$LINENO"; then : 5623 echo conftest.$ac_objext > conftest.lst 5624 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5626 (eval $lt_ar_try) 2>&5 5627 ac_status=$? 5628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5629 test $ac_status = 0; } 5630 if test 0 -eq "$ac_status"; then 5631 # Ensure the archiver fails upon bogus file names. 5632 rm -f conftest.$ac_objext libconftest.a 5633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5634 (eval $lt_ar_try) 2>&5 5635 ac_status=$? 5636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5637 test $ac_status = 0; } 5638 if test 0 -ne "$ac_status"; then 5639 lt_cv_ar_at_file=@ 5640 fi 5641 fi 5642 rm -f conftest.* libconftest.a 5643 5644fi 5645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5646 5647fi 5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5649$as_echo "$lt_cv_ar_at_file" >&6; } 5650 5651if test no = "$lt_cv_ar_at_file"; then 5652 archiver_list_spec= 5653else 5654 archiver_list_spec=$lt_cv_ar_at_file 5655fi 5656 5657 5658 5659 5660 5661 5662 5663if test -n "$ac_tool_prefix"; then 5664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5665set dummy ${ac_tool_prefix}strip; ac_word=$2 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5667$as_echo_n "checking for $ac_word... " >&6; } 5668if ${ac_cv_prog_STRIP+:} false; then : 5669 $as_echo_n "(cached) " >&6 5670else 5671 if test -n "$STRIP"; then 5672 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5673else 5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5675for as_dir in $PATH 5676do 5677 IFS=$as_save_IFS 5678 test -z "$as_dir" && as_dir=. 5679 for ac_exec_ext in '' $ac_executable_extensions; do 5680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5681 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5683 break 2 5684 fi 5685done 5686 done 5687IFS=$as_save_IFS 5688 5689fi 5690fi 5691STRIP=$ac_cv_prog_STRIP 5692if test -n "$STRIP"; then 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5694$as_echo "$STRIP" >&6; } 5695else 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5697$as_echo "no" >&6; } 5698fi 5699 5700 5701fi 5702if test -z "$ac_cv_prog_STRIP"; then 5703 ac_ct_STRIP=$STRIP 5704 # Extract the first word of "strip", so it can be a program name with args. 5705set dummy strip; ac_word=$2 5706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5707$as_echo_n "checking for $ac_word... " >&6; } 5708if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5709 $as_echo_n "(cached) " >&6 5710else 5711 if test -n "$ac_ct_STRIP"; then 5712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5713else 5714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5715for as_dir in $PATH 5716do 5717 IFS=$as_save_IFS 5718 test -z "$as_dir" && as_dir=. 5719 for ac_exec_ext in '' $ac_executable_extensions; do 5720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5721 ac_cv_prog_ac_ct_STRIP="strip" 5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5723 break 2 5724 fi 5725done 5726 done 5727IFS=$as_save_IFS 5728 5729fi 5730fi 5731ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5732if test -n "$ac_ct_STRIP"; then 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5734$as_echo "$ac_ct_STRIP" >&6; } 5735else 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5737$as_echo "no" >&6; } 5738fi 5739 5740 if test "x$ac_ct_STRIP" = x; then 5741 STRIP=":" 5742 else 5743 case $cross_compiling:$ac_tool_warned in 5744yes:) 5745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5747ac_tool_warned=yes ;; 5748esac 5749 STRIP=$ac_ct_STRIP 5750 fi 5751else 5752 STRIP="$ac_cv_prog_STRIP" 5753fi 5754 5755test -z "$STRIP" && STRIP=: 5756 5757 5758 5759 5760 5761 5762if test -n "$ac_tool_prefix"; then 5763 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5764set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5766$as_echo_n "checking for $ac_word... " >&6; } 5767if ${ac_cv_prog_RANLIB+:} false; then : 5768 $as_echo_n "(cached) " >&6 5769else 5770 if test -n "$RANLIB"; then 5771 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5772else 5773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5774for as_dir in $PATH 5775do 5776 IFS=$as_save_IFS 5777 test -z "$as_dir" && as_dir=. 5778 for ac_exec_ext in '' $ac_executable_extensions; do 5779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5780 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5782 break 2 5783 fi 5784done 5785 done 5786IFS=$as_save_IFS 5787 5788fi 5789fi 5790RANLIB=$ac_cv_prog_RANLIB 5791if test -n "$RANLIB"; then 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5793$as_echo "$RANLIB" >&6; } 5794else 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5796$as_echo "no" >&6; } 5797fi 5798 5799 5800fi 5801if test -z "$ac_cv_prog_RANLIB"; then 5802 ac_ct_RANLIB=$RANLIB 5803 # Extract the first word of "ranlib", so it can be a program name with args. 5804set dummy ranlib; ac_word=$2 5805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5806$as_echo_n "checking for $ac_word... " >&6; } 5807if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5808 $as_echo_n "(cached) " >&6 5809else 5810 if test -n "$ac_ct_RANLIB"; then 5811 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5812else 5813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5814for as_dir in $PATH 5815do 5816 IFS=$as_save_IFS 5817 test -z "$as_dir" && as_dir=. 5818 for ac_exec_ext in '' $ac_executable_extensions; do 5819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5820 ac_cv_prog_ac_ct_RANLIB="ranlib" 5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5822 break 2 5823 fi 5824done 5825 done 5826IFS=$as_save_IFS 5827 5828fi 5829fi 5830ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5831if test -n "$ac_ct_RANLIB"; then 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5833$as_echo "$ac_ct_RANLIB" >&6; } 5834else 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5836$as_echo "no" >&6; } 5837fi 5838 5839 if test "x$ac_ct_RANLIB" = x; then 5840 RANLIB=":" 5841 else 5842 case $cross_compiling:$ac_tool_warned in 5843yes:) 5844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5846ac_tool_warned=yes ;; 5847esac 5848 RANLIB=$ac_ct_RANLIB 5849 fi 5850else 5851 RANLIB="$ac_cv_prog_RANLIB" 5852fi 5853 5854test -z "$RANLIB" && RANLIB=: 5855 5856 5857 5858 5859 5860 5861# Determine commands to create old-style static archives. 5862old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5863old_postinstall_cmds='chmod 644 $oldlib' 5864old_postuninstall_cmds= 5865 5866if test -n "$RANLIB"; then 5867 case $host_os in 5868 bitrig* | openbsd*) 5869 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5870 ;; 5871 *) 5872 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5873 ;; 5874 esac 5875 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5876fi 5877 5878case $host_os in 5879 darwin*) 5880 lock_old_archive_extraction=yes ;; 5881 *) 5882 lock_old_archive_extraction=no ;; 5883esac 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923# If no C compiler was specified, use CC. 5924LTCC=${LTCC-"$CC"} 5925 5926# If no C compiler flags were specified, use CFLAGS. 5927LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5928 5929# Allow CC to be a program name with arguments. 5930compiler=$CC 5931 5932 5933# Check for command to grab the raw symbol name followed by C symbol from nm. 5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5935$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5936if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5937 $as_echo_n "(cached) " >&6 5938else 5939 5940# These are sane defaults that work on at least a few old systems. 5941# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5942 5943# Character class describing NM global symbol codes. 5944symcode='[BCDEGRST]' 5945 5946# Regexp to match symbols that can be accessed directly from C. 5947sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5948 5949# Define system-specific variables. 5950case $host_os in 5951aix*) 5952 symcode='[BCDT]' 5953 ;; 5954cygwin* | mingw* | pw32* | cegcc*) 5955 symcode='[ABCDGISTW]' 5956 ;; 5957hpux*) 5958 if test ia64 = "$host_cpu"; then 5959 symcode='[ABCDEGRST]' 5960 fi 5961 ;; 5962irix* | nonstopux*) 5963 symcode='[BCDEGRST]' 5964 ;; 5965osf*) 5966 symcode='[BCDEGQRST]' 5967 ;; 5968solaris*) 5969 symcode='[BDRT]' 5970 ;; 5971sco3.2v5*) 5972 symcode='[DT]' 5973 ;; 5974sysv4.2uw2*) 5975 symcode='[DT]' 5976 ;; 5977sysv5* | sco5v6* | unixware* | OpenUNIX*) 5978 symcode='[ABDT]' 5979 ;; 5980sysv4) 5981 symcode='[DFNSTU]' 5982 ;; 5983esac 5984 5985# If we're using GNU nm, then use its standard symbol codes. 5986case `$NM -V 2>&1` in 5987*GNU* | *'with BFD'*) 5988 symcode='[ABCDGIRSTW]' ;; 5989esac 5990 5991if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5992 # Gets list of data symbols to import. 5993 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 5994 # Adjust the below global symbol transforms to fixup imported variables. 5995 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 5996 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 5997 lt_c_name_lib_hook="\ 5998 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 5999 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6000else 6001 # Disable hooks by default. 6002 lt_cv_sys_global_symbol_to_import= 6003 lt_cdecl_hook= 6004 lt_c_name_hook= 6005 lt_c_name_lib_hook= 6006fi 6007 6008# Transform an extracted symbol line into a proper C declaration. 6009# Some systems (esp. on ia64) link data and code symbols differently, 6010# so use this general approach. 6011lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6012$lt_cdecl_hook\ 6013" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6014" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6015 6016# Transform an extracted symbol line into symbol name and symbol address 6017lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6018$lt_c_name_hook\ 6019" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6020" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6021 6022# Transform an extracted symbol line into symbol name with lib prefix and 6023# symbol address. 6024lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6025$lt_c_name_lib_hook\ 6026" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6027" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6028" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6029 6030# Handle CRLF in mingw tool chain 6031opt_cr= 6032case $build_os in 6033mingw*) 6034 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6035 ;; 6036esac 6037 6038# Try without a prefix underscore, then with it. 6039for ac_symprfx in "" "_"; do 6040 6041 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6042 symxfrm="\\1 $ac_symprfx\\2 \\2" 6043 6044 # Write the raw and C identifiers. 6045 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6046 # Fake it for dumpbin and say T for any non-static function, 6047 # D for any global variable and I for any imported variable. 6048 # Also find C++ and __fastcall symbols from MSVC++, 6049 # which start with @ or ?. 6050 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6051" {last_section=section; section=\$ 3};"\ 6052" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6053" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6054" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6055" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6056" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6057" \$ 0!~/External *\|/{next};"\ 6058" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6059" {if(hide[section]) next};"\ 6060" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6061" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6062" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6063" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6064" ' prfx=^$ac_symprfx" 6065 else 6066 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6067 fi 6068 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6069 6070 # Check to see that the pipe works correctly. 6071 pipe_works=no 6072 6073 rm -f conftest* 6074 cat > conftest.$ac_ext <<_LT_EOF 6075#ifdef __cplusplus 6076extern "C" { 6077#endif 6078char nm_test_var; 6079void nm_test_func(void); 6080void nm_test_func(void){} 6081#ifdef __cplusplus 6082} 6083#endif 6084int main(){nm_test_var='a';nm_test_func();return(0);} 6085_LT_EOF 6086 6087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6088 (eval $ac_compile) 2>&5 6089 ac_status=$? 6090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6091 test $ac_status = 0; }; then 6092 # Now try to grab the symbols. 6093 nlist=conftest.nm 6094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6095 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6096 ac_status=$? 6097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6098 test $ac_status = 0; } && test -s "$nlist"; then 6099 # Try sorting and uniquifying the output. 6100 if sort "$nlist" | uniq > "$nlist"T; then 6101 mv -f "$nlist"T "$nlist" 6102 else 6103 rm -f "$nlist"T 6104 fi 6105 6106 # Make sure that we snagged all the symbols we need. 6107 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6108 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6109 cat <<_LT_EOF > conftest.$ac_ext 6110/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6111#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6112/* DATA imports from DLLs on WIN32 can't be const, because runtime 6113 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6114# define LT_DLSYM_CONST 6115#elif defined __osf__ 6116/* This system does not cope well with relocations in const data. */ 6117# define LT_DLSYM_CONST 6118#else 6119# define LT_DLSYM_CONST const 6120#endif 6121 6122#ifdef __cplusplus 6123extern "C" { 6124#endif 6125 6126_LT_EOF 6127 # Now generate the symbol file. 6128 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6129 6130 cat <<_LT_EOF >> conftest.$ac_ext 6131 6132/* The mapping between symbol names and symbols. */ 6133LT_DLSYM_CONST struct { 6134 const char *name; 6135 void *address; 6136} 6137lt__PROGRAM__LTX_preloaded_symbols[] = 6138{ 6139 { "@PROGRAM@", (void *) 0 }, 6140_LT_EOF 6141 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6142 cat <<\_LT_EOF >> conftest.$ac_ext 6143 {0, (void *) 0} 6144}; 6145 6146/* This works around a problem in FreeBSD linker */ 6147#ifdef FREEBSD_WORKAROUND 6148static const void *lt_preloaded_setup() { 6149 return lt__PROGRAM__LTX_preloaded_symbols; 6150} 6151#endif 6152 6153#ifdef __cplusplus 6154} 6155#endif 6156_LT_EOF 6157 # Now try linking the two files. 6158 mv conftest.$ac_objext conftstm.$ac_objext 6159 lt_globsym_save_LIBS=$LIBS 6160 lt_globsym_save_CFLAGS=$CFLAGS 6161 LIBS=conftstm.$ac_objext 6162 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6164 (eval $ac_link) 2>&5 6165 ac_status=$? 6166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6167 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6168 pipe_works=yes 6169 fi 6170 LIBS=$lt_globsym_save_LIBS 6171 CFLAGS=$lt_globsym_save_CFLAGS 6172 else 6173 echo "cannot find nm_test_func in $nlist" >&5 6174 fi 6175 else 6176 echo "cannot find nm_test_var in $nlist" >&5 6177 fi 6178 else 6179 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6180 fi 6181 else 6182 echo "$progname: failed program was:" >&5 6183 cat conftest.$ac_ext >&5 6184 fi 6185 rm -rf conftest* conftst* 6186 6187 # Do not use the global_symbol_pipe unless it works. 6188 if test yes = "$pipe_works"; then 6189 break 6190 else 6191 lt_cv_sys_global_symbol_pipe= 6192 fi 6193done 6194 6195fi 6196 6197if test -z "$lt_cv_sys_global_symbol_pipe"; then 6198 lt_cv_sys_global_symbol_to_cdecl= 6199fi 6200if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6202$as_echo "failed" >&6; } 6203else 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6205$as_echo "ok" >&6; } 6206fi 6207 6208# Response file support. 6209if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6210 nm_file_list_spec='@' 6211elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6212 nm_file_list_spec='@' 6213fi 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6252$as_echo_n "checking for sysroot... " >&6; } 6253 6254# Check whether --with-sysroot was given. 6255if test "${with_sysroot+set}" = set; then : 6256 withval=$with_sysroot; 6257else 6258 with_sysroot=no 6259fi 6260 6261 6262lt_sysroot= 6263case $with_sysroot in #( 6264 yes) 6265 if test yes = "$GCC"; then 6266 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6267 fi 6268 ;; #( 6269 /*) 6270 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6271 ;; #( 6272 no|'') 6273 ;; #( 6274 *) 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6276$as_echo "$with_sysroot" >&6; } 6277 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6278 ;; 6279esac 6280 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6282$as_echo "${lt_sysroot:-no}" >&6; } 6283 6284 6285 6286 6287 6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6289$as_echo_n "checking for a working dd... " >&6; } 6290if ${ac_cv_path_lt_DD+:} false; then : 6291 $as_echo_n "(cached) " >&6 6292else 6293 printf 0123456789abcdef0123456789abcdef >conftest.i 6294cat conftest.i conftest.i >conftest2.i 6295: ${lt_DD:=$DD} 6296if test -z "$lt_DD"; then 6297 ac_path_lt_DD_found=false 6298 # Loop through the user's path and test for each of PROGNAME-LIST 6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6300for as_dir in $PATH 6301do 6302 IFS=$as_save_IFS 6303 test -z "$as_dir" && as_dir=. 6304 for ac_prog in dd; do 6305 for ac_exec_ext in '' $ac_executable_extensions; do 6306 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6307 as_fn_executable_p "$ac_path_lt_DD" || continue 6308if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6309 cmp -s conftest.i conftest.out \ 6310 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6311fi 6312 $ac_path_lt_DD_found && break 3 6313 done 6314 done 6315 done 6316IFS=$as_save_IFS 6317 if test -z "$ac_cv_path_lt_DD"; then 6318 : 6319 fi 6320else 6321 ac_cv_path_lt_DD=$lt_DD 6322fi 6323 6324rm -f conftest.i conftest2.i conftest.out 6325fi 6326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6327$as_echo "$ac_cv_path_lt_DD" >&6; } 6328 6329 6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6331$as_echo_n "checking how to truncate binary pipes... " >&6; } 6332if ${lt_cv_truncate_bin+:} false; then : 6333 $as_echo_n "(cached) " >&6 6334else 6335 printf 0123456789abcdef0123456789abcdef >conftest.i 6336cat conftest.i conftest.i >conftest2.i 6337lt_cv_truncate_bin= 6338if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6339 cmp -s conftest.i conftest.out \ 6340 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6341fi 6342rm -f conftest.i conftest2.i conftest.out 6343test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6344fi 6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6346$as_echo "$lt_cv_truncate_bin" >&6; } 6347 6348 6349 6350 6351 6352 6353 6354# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6355func_cc_basename () 6356{ 6357 for cc_temp in $*""; do 6358 case $cc_temp in 6359 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6360 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6361 \-*) ;; 6362 *) break;; 6363 esac 6364 done 6365 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6366} 6367 6368# Check whether --enable-libtool-lock was given. 6369if test "${enable_libtool_lock+set}" = set; then : 6370 enableval=$enable_libtool_lock; 6371fi 6372 6373test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6374 6375# Some flags need to be propagated to the compiler or linker for good 6376# libtool support. 6377case $host in 6378ia64-*-hpux*) 6379 # Find out what ABI is being produced by ac_compile, and set mode 6380 # options accordingly. 6381 echo 'int i;' > conftest.$ac_ext 6382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6383 (eval $ac_compile) 2>&5 6384 ac_status=$? 6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6386 test $ac_status = 0; }; then 6387 case `/usr/bin/file conftest.$ac_objext` in 6388 *ELF-32*) 6389 HPUX_IA64_MODE=32 6390 ;; 6391 *ELF-64*) 6392 HPUX_IA64_MODE=64 6393 ;; 6394 esac 6395 fi 6396 rm -rf conftest* 6397 ;; 6398*-*-irix6*) 6399 # Find out what ABI is being produced by ac_compile, and set linker 6400 # options accordingly. 6401 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6403 (eval $ac_compile) 2>&5 6404 ac_status=$? 6405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6406 test $ac_status = 0; }; then 6407 if test yes = "$lt_cv_prog_gnu_ld"; then 6408 case `/usr/bin/file conftest.$ac_objext` in 6409 *32-bit*) 6410 LD="${LD-ld} -melf32bsmip" 6411 ;; 6412 *N32*) 6413 LD="${LD-ld} -melf32bmipn32" 6414 ;; 6415 *64-bit*) 6416 LD="${LD-ld} -melf64bmip" 6417 ;; 6418 esac 6419 else 6420 case `/usr/bin/file conftest.$ac_objext` in 6421 *32-bit*) 6422 LD="${LD-ld} -32" 6423 ;; 6424 *N32*) 6425 LD="${LD-ld} -n32" 6426 ;; 6427 *64-bit*) 6428 LD="${LD-ld} -64" 6429 ;; 6430 esac 6431 fi 6432 fi 6433 rm -rf conftest* 6434 ;; 6435 6436mips64*-*linux*) 6437 # Find out what ABI is being produced by ac_compile, and set linker 6438 # options accordingly. 6439 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6441 (eval $ac_compile) 2>&5 6442 ac_status=$? 6443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6444 test $ac_status = 0; }; then 6445 emul=elf 6446 case `/usr/bin/file conftest.$ac_objext` in 6447 *32-bit*) 6448 emul="${emul}32" 6449 ;; 6450 *64-bit*) 6451 emul="${emul}64" 6452 ;; 6453 esac 6454 case `/usr/bin/file conftest.$ac_objext` in 6455 *MSB*) 6456 emul="${emul}btsmip" 6457 ;; 6458 *LSB*) 6459 emul="${emul}ltsmip" 6460 ;; 6461 esac 6462 case `/usr/bin/file conftest.$ac_objext` in 6463 *N32*) 6464 emul="${emul}n32" 6465 ;; 6466 esac 6467 LD="${LD-ld} -m $emul" 6468 fi 6469 rm -rf conftest* 6470 ;; 6471 6472x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6473s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6474 # Find out what ABI is being produced by ac_compile, and set linker 6475 # options accordingly. Note that the listed cases only cover the 6476 # situations where additional linker options are needed (such as when 6477 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6478 # vice versa); the common cases where no linker options are needed do 6479 # not appear in the list. 6480 echo 'int i;' > conftest.$ac_ext 6481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6482 (eval $ac_compile) 2>&5 6483 ac_status=$? 6484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6485 test $ac_status = 0; }; then 6486 case `/usr/bin/file conftest.o` in 6487 *32-bit*) 6488 case $host in 6489 x86_64-*kfreebsd*-gnu) 6490 LD="${LD-ld} -m elf_i386_fbsd" 6491 ;; 6492 x86_64-*linux*) 6493 case `/usr/bin/file conftest.o` in 6494 *x86-64*) 6495 LD="${LD-ld} -m elf32_x86_64" 6496 ;; 6497 *) 6498 LD="${LD-ld} -m elf_i386" 6499 ;; 6500 esac 6501 ;; 6502 powerpc64le-*linux*) 6503 LD="${LD-ld} -m elf32lppclinux" 6504 ;; 6505 powerpc64-*linux*) 6506 LD="${LD-ld} -m elf32ppclinux" 6507 ;; 6508 s390x-*linux*) 6509 LD="${LD-ld} -m elf_s390" 6510 ;; 6511 sparc64-*linux*) 6512 LD="${LD-ld} -m elf32_sparc" 6513 ;; 6514 esac 6515 ;; 6516 *64-bit*) 6517 case $host in 6518 x86_64-*kfreebsd*-gnu) 6519 LD="${LD-ld} -m elf_x86_64_fbsd" 6520 ;; 6521 x86_64-*linux*) 6522 LD="${LD-ld} -m elf_x86_64" 6523 ;; 6524 powerpcle-*linux*) 6525 LD="${LD-ld} -m elf64lppc" 6526 ;; 6527 powerpc-*linux*) 6528 LD="${LD-ld} -m elf64ppc" 6529 ;; 6530 s390*-*linux*|s390*-*tpf*) 6531 LD="${LD-ld} -m elf64_s390" 6532 ;; 6533 sparc*-*linux*) 6534 LD="${LD-ld} -m elf64_sparc" 6535 ;; 6536 esac 6537 ;; 6538 esac 6539 fi 6540 rm -rf conftest* 6541 ;; 6542 6543*-*-sco3.2v5*) 6544 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6545 SAVE_CFLAGS=$CFLAGS 6546 CFLAGS="$CFLAGS -belf" 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6548$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6549if ${lt_cv_cc_needs_belf+:} false; then : 6550 $as_echo_n "(cached) " >&6 6551else 6552 ac_ext=c 6553ac_cpp='$CPP $CPPFLAGS' 6554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6556ac_compiler_gnu=$ac_cv_c_compiler_gnu 6557 6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559/* end confdefs.h. */ 6560 6561int 6562main () 6563{ 6564 6565 ; 6566 return 0; 6567} 6568_ACEOF 6569if ac_fn_c_try_link "$LINENO"; then : 6570 lt_cv_cc_needs_belf=yes 6571else 6572 lt_cv_cc_needs_belf=no 6573fi 6574rm -f core conftest.err conftest.$ac_objext \ 6575 conftest$ac_exeext conftest.$ac_ext 6576 ac_ext=c 6577ac_cpp='$CPP $CPPFLAGS' 6578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6580ac_compiler_gnu=$ac_cv_c_compiler_gnu 6581 6582fi 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6584$as_echo "$lt_cv_cc_needs_belf" >&6; } 6585 if test yes != "$lt_cv_cc_needs_belf"; then 6586 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6587 CFLAGS=$SAVE_CFLAGS 6588 fi 6589 ;; 6590*-*solaris*) 6591 # Find out what ABI is being produced by ac_compile, and set linker 6592 # options accordingly. 6593 echo 'int i;' > conftest.$ac_ext 6594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6595 (eval $ac_compile) 2>&5 6596 ac_status=$? 6597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6598 test $ac_status = 0; }; then 6599 case `/usr/bin/file conftest.o` in 6600 *64-bit*) 6601 case $lt_cv_prog_gnu_ld in 6602 yes*) 6603 case $host in 6604 i?86-*-solaris*|x86_64-*-solaris*) 6605 LD="${LD-ld} -m elf_x86_64" 6606 ;; 6607 sparc*-*-solaris*) 6608 LD="${LD-ld} -m elf64_sparc" 6609 ;; 6610 esac 6611 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6612 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6613 LD=${LD-ld}_sol2 6614 fi 6615 ;; 6616 *) 6617 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6618 LD="${LD-ld} -64" 6619 fi 6620 ;; 6621 esac 6622 ;; 6623 esac 6624 fi 6625 rm -rf conftest* 6626 ;; 6627esac 6628 6629need_locks=$enable_libtool_lock 6630 6631if test -n "$ac_tool_prefix"; then 6632 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6633set dummy ${ac_tool_prefix}mt; ac_word=$2 6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6635$as_echo_n "checking for $ac_word... " >&6; } 6636if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6637 $as_echo_n "(cached) " >&6 6638else 6639 if test -n "$MANIFEST_TOOL"; then 6640 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6641else 6642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6643for as_dir in $PATH 6644do 6645 IFS=$as_save_IFS 6646 test -z "$as_dir" && as_dir=. 6647 for ac_exec_ext in '' $ac_executable_extensions; do 6648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6649 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6651 break 2 6652 fi 6653done 6654 done 6655IFS=$as_save_IFS 6656 6657fi 6658fi 6659MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6660if test -n "$MANIFEST_TOOL"; then 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6662$as_echo "$MANIFEST_TOOL" >&6; } 6663else 6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6665$as_echo "no" >&6; } 6666fi 6667 6668 6669fi 6670if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6671 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6672 # Extract the first word of "mt", so it can be a program name with args. 6673set dummy mt; ac_word=$2 6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6675$as_echo_n "checking for $ac_word... " >&6; } 6676if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6677 $as_echo_n "(cached) " >&6 6678else 6679 if test -n "$ac_ct_MANIFEST_TOOL"; then 6680 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6681else 6682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6683for as_dir in $PATH 6684do 6685 IFS=$as_save_IFS 6686 test -z "$as_dir" && as_dir=. 6687 for ac_exec_ext in '' $ac_executable_extensions; do 6688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6689 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6691 break 2 6692 fi 6693done 6694 done 6695IFS=$as_save_IFS 6696 6697fi 6698fi 6699ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6700if test -n "$ac_ct_MANIFEST_TOOL"; then 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6702$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6703else 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6705$as_echo "no" >&6; } 6706fi 6707 6708 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6709 MANIFEST_TOOL=":" 6710 else 6711 case $cross_compiling:$ac_tool_warned in 6712yes:) 6713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6715ac_tool_warned=yes ;; 6716esac 6717 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6718 fi 6719else 6720 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6721fi 6722 6723test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6725$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6726if ${lt_cv_path_mainfest_tool+:} false; then : 6727 $as_echo_n "(cached) " >&6 6728else 6729 lt_cv_path_mainfest_tool=no 6730 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6731 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6732 cat conftest.err >&5 6733 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6734 lt_cv_path_mainfest_tool=yes 6735 fi 6736 rm -f conftest* 6737fi 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6739$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6740if test yes != "$lt_cv_path_mainfest_tool"; then 6741 MANIFEST_TOOL=: 6742fi 6743 6744 6745 6746 6747 6748 6749 case $host_os in 6750 rhapsody* | darwin*) 6751 if test -n "$ac_tool_prefix"; then 6752 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6753set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6755$as_echo_n "checking for $ac_word... " >&6; } 6756if ${ac_cv_prog_DSYMUTIL+:} false; then : 6757 $as_echo_n "(cached) " >&6 6758else 6759 if test -n "$DSYMUTIL"; then 6760 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6761else 6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6763for as_dir in $PATH 6764do 6765 IFS=$as_save_IFS 6766 test -z "$as_dir" && as_dir=. 6767 for ac_exec_ext in '' $ac_executable_extensions; do 6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6769 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6771 break 2 6772 fi 6773done 6774 done 6775IFS=$as_save_IFS 6776 6777fi 6778fi 6779DSYMUTIL=$ac_cv_prog_DSYMUTIL 6780if test -n "$DSYMUTIL"; then 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6782$as_echo "$DSYMUTIL" >&6; } 6783else 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6785$as_echo "no" >&6; } 6786fi 6787 6788 6789fi 6790if test -z "$ac_cv_prog_DSYMUTIL"; then 6791 ac_ct_DSYMUTIL=$DSYMUTIL 6792 # Extract the first word of "dsymutil", so it can be a program name with args. 6793set dummy dsymutil; ac_word=$2 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6795$as_echo_n "checking for $ac_word... " >&6; } 6796if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 if test -n "$ac_ct_DSYMUTIL"; then 6800 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6801else 6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6803for as_dir in $PATH 6804do 6805 IFS=$as_save_IFS 6806 test -z "$as_dir" && as_dir=. 6807 for ac_exec_ext in '' $ac_executable_extensions; do 6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6809 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6811 break 2 6812 fi 6813done 6814 done 6815IFS=$as_save_IFS 6816 6817fi 6818fi 6819ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6820if test -n "$ac_ct_DSYMUTIL"; then 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6822$as_echo "$ac_ct_DSYMUTIL" >&6; } 6823else 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6825$as_echo "no" >&6; } 6826fi 6827 6828 if test "x$ac_ct_DSYMUTIL" = x; then 6829 DSYMUTIL=":" 6830 else 6831 case $cross_compiling:$ac_tool_warned in 6832yes:) 6833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6835ac_tool_warned=yes ;; 6836esac 6837 DSYMUTIL=$ac_ct_DSYMUTIL 6838 fi 6839else 6840 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6841fi 6842 6843 if test -n "$ac_tool_prefix"; then 6844 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6845set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6847$as_echo_n "checking for $ac_word... " >&6; } 6848if ${ac_cv_prog_NMEDIT+:} false; then : 6849 $as_echo_n "(cached) " >&6 6850else 6851 if test -n "$NMEDIT"; then 6852 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6853else 6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6855for as_dir in $PATH 6856do 6857 IFS=$as_save_IFS 6858 test -z "$as_dir" && as_dir=. 6859 for ac_exec_ext in '' $ac_executable_extensions; do 6860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6861 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6863 break 2 6864 fi 6865done 6866 done 6867IFS=$as_save_IFS 6868 6869fi 6870fi 6871NMEDIT=$ac_cv_prog_NMEDIT 6872if test -n "$NMEDIT"; then 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6874$as_echo "$NMEDIT" >&6; } 6875else 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6877$as_echo "no" >&6; } 6878fi 6879 6880 6881fi 6882if test -z "$ac_cv_prog_NMEDIT"; then 6883 ac_ct_NMEDIT=$NMEDIT 6884 # Extract the first word of "nmedit", so it can be a program name with args. 6885set dummy nmedit; ac_word=$2 6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6887$as_echo_n "checking for $ac_word... " >&6; } 6888if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6889 $as_echo_n "(cached) " >&6 6890else 6891 if test -n "$ac_ct_NMEDIT"; then 6892 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6893else 6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6895for as_dir in $PATH 6896do 6897 IFS=$as_save_IFS 6898 test -z "$as_dir" && as_dir=. 6899 for ac_exec_ext in '' $ac_executable_extensions; do 6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6901 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6903 break 2 6904 fi 6905done 6906 done 6907IFS=$as_save_IFS 6908 6909fi 6910fi 6911ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6912if test -n "$ac_ct_NMEDIT"; then 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6914$as_echo "$ac_ct_NMEDIT" >&6; } 6915else 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6917$as_echo "no" >&6; } 6918fi 6919 6920 if test "x$ac_ct_NMEDIT" = x; then 6921 NMEDIT=":" 6922 else 6923 case $cross_compiling:$ac_tool_warned in 6924yes:) 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6927ac_tool_warned=yes ;; 6928esac 6929 NMEDIT=$ac_ct_NMEDIT 6930 fi 6931else 6932 NMEDIT="$ac_cv_prog_NMEDIT" 6933fi 6934 6935 if test -n "$ac_tool_prefix"; then 6936 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6937set dummy ${ac_tool_prefix}lipo; ac_word=$2 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6939$as_echo_n "checking for $ac_word... " >&6; } 6940if ${ac_cv_prog_LIPO+:} false; then : 6941 $as_echo_n "(cached) " >&6 6942else 6943 if test -n "$LIPO"; then 6944 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6945else 6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6947for as_dir in $PATH 6948do 6949 IFS=$as_save_IFS 6950 test -z "$as_dir" && as_dir=. 6951 for ac_exec_ext in '' $ac_executable_extensions; do 6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6953 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6955 break 2 6956 fi 6957done 6958 done 6959IFS=$as_save_IFS 6960 6961fi 6962fi 6963LIPO=$ac_cv_prog_LIPO 6964if test -n "$LIPO"; then 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6966$as_echo "$LIPO" >&6; } 6967else 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6969$as_echo "no" >&6; } 6970fi 6971 6972 6973fi 6974if test -z "$ac_cv_prog_LIPO"; then 6975 ac_ct_LIPO=$LIPO 6976 # Extract the first word of "lipo", so it can be a program name with args. 6977set dummy lipo; ac_word=$2 6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6979$as_echo_n "checking for $ac_word... " >&6; } 6980if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6981 $as_echo_n "(cached) " >&6 6982else 6983 if test -n "$ac_ct_LIPO"; then 6984 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6985else 6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6987for as_dir in $PATH 6988do 6989 IFS=$as_save_IFS 6990 test -z "$as_dir" && as_dir=. 6991 for ac_exec_ext in '' $ac_executable_extensions; do 6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6993 ac_cv_prog_ac_ct_LIPO="lipo" 6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6995 break 2 6996 fi 6997done 6998 done 6999IFS=$as_save_IFS 7000 7001fi 7002fi 7003ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7004if test -n "$ac_ct_LIPO"; then 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7006$as_echo "$ac_ct_LIPO" >&6; } 7007else 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7009$as_echo "no" >&6; } 7010fi 7011 7012 if test "x$ac_ct_LIPO" = x; then 7013 LIPO=":" 7014 else 7015 case $cross_compiling:$ac_tool_warned in 7016yes:) 7017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7019ac_tool_warned=yes ;; 7020esac 7021 LIPO=$ac_ct_LIPO 7022 fi 7023else 7024 LIPO="$ac_cv_prog_LIPO" 7025fi 7026 7027 if test -n "$ac_tool_prefix"; then 7028 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7029set dummy ${ac_tool_prefix}otool; ac_word=$2 7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7031$as_echo_n "checking for $ac_word... " >&6; } 7032if ${ac_cv_prog_OTOOL+:} false; then : 7033 $as_echo_n "(cached) " >&6 7034else 7035 if test -n "$OTOOL"; then 7036 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7037else 7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7039for as_dir in $PATH 7040do 7041 IFS=$as_save_IFS 7042 test -z "$as_dir" && as_dir=. 7043 for ac_exec_ext in '' $ac_executable_extensions; do 7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7045 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7047 break 2 7048 fi 7049done 7050 done 7051IFS=$as_save_IFS 7052 7053fi 7054fi 7055OTOOL=$ac_cv_prog_OTOOL 7056if test -n "$OTOOL"; then 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7058$as_echo "$OTOOL" >&6; } 7059else 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7061$as_echo "no" >&6; } 7062fi 7063 7064 7065fi 7066if test -z "$ac_cv_prog_OTOOL"; then 7067 ac_ct_OTOOL=$OTOOL 7068 # Extract the first word of "otool", so it can be a program name with args. 7069set dummy otool; ac_word=$2 7070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7071$as_echo_n "checking for $ac_word... " >&6; } 7072if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7073 $as_echo_n "(cached) " >&6 7074else 7075 if test -n "$ac_ct_OTOOL"; then 7076 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7077else 7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7079for as_dir in $PATH 7080do 7081 IFS=$as_save_IFS 7082 test -z "$as_dir" && as_dir=. 7083 for ac_exec_ext in '' $ac_executable_extensions; do 7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7085 ac_cv_prog_ac_ct_OTOOL="otool" 7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7087 break 2 7088 fi 7089done 7090 done 7091IFS=$as_save_IFS 7092 7093fi 7094fi 7095ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7096if test -n "$ac_ct_OTOOL"; then 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7098$as_echo "$ac_ct_OTOOL" >&6; } 7099else 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7101$as_echo "no" >&6; } 7102fi 7103 7104 if test "x$ac_ct_OTOOL" = x; then 7105 OTOOL=":" 7106 else 7107 case $cross_compiling:$ac_tool_warned in 7108yes:) 7109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7111ac_tool_warned=yes ;; 7112esac 7113 OTOOL=$ac_ct_OTOOL 7114 fi 7115else 7116 OTOOL="$ac_cv_prog_OTOOL" 7117fi 7118 7119 if test -n "$ac_tool_prefix"; then 7120 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7121set dummy ${ac_tool_prefix}otool64; ac_word=$2 7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7123$as_echo_n "checking for $ac_word... " >&6; } 7124if ${ac_cv_prog_OTOOL64+:} false; then : 7125 $as_echo_n "(cached) " >&6 7126else 7127 if test -n "$OTOOL64"; then 7128 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7129else 7130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7131for as_dir in $PATH 7132do 7133 IFS=$as_save_IFS 7134 test -z "$as_dir" && as_dir=. 7135 for ac_exec_ext in '' $ac_executable_extensions; do 7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7137 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7139 break 2 7140 fi 7141done 7142 done 7143IFS=$as_save_IFS 7144 7145fi 7146fi 7147OTOOL64=$ac_cv_prog_OTOOL64 7148if test -n "$OTOOL64"; then 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7150$as_echo "$OTOOL64" >&6; } 7151else 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7153$as_echo "no" >&6; } 7154fi 7155 7156 7157fi 7158if test -z "$ac_cv_prog_OTOOL64"; then 7159 ac_ct_OTOOL64=$OTOOL64 7160 # Extract the first word of "otool64", so it can be a program name with args. 7161set dummy otool64; ac_word=$2 7162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7163$as_echo_n "checking for $ac_word... " >&6; } 7164if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7165 $as_echo_n "(cached) " >&6 7166else 7167 if test -n "$ac_ct_OTOOL64"; then 7168 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7169else 7170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7171for as_dir in $PATH 7172do 7173 IFS=$as_save_IFS 7174 test -z "$as_dir" && as_dir=. 7175 for ac_exec_ext in '' $ac_executable_extensions; do 7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7177 ac_cv_prog_ac_ct_OTOOL64="otool64" 7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7179 break 2 7180 fi 7181done 7182 done 7183IFS=$as_save_IFS 7184 7185fi 7186fi 7187ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7188if test -n "$ac_ct_OTOOL64"; then 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7190$as_echo "$ac_ct_OTOOL64" >&6; } 7191else 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7193$as_echo "no" >&6; } 7194fi 7195 7196 if test "x$ac_ct_OTOOL64" = x; then 7197 OTOOL64=":" 7198 else 7199 case $cross_compiling:$ac_tool_warned in 7200yes:) 7201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7203ac_tool_warned=yes ;; 7204esac 7205 OTOOL64=$ac_ct_OTOOL64 7206 fi 7207else 7208 OTOOL64="$ac_cv_prog_OTOOL64" 7209fi 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7238$as_echo_n "checking for -single_module linker flag... " >&6; } 7239if ${lt_cv_apple_cc_single_mod+:} false; then : 7240 $as_echo_n "(cached) " >&6 7241else 7242 lt_cv_apple_cc_single_mod=no 7243 if test -z "$LT_MULTI_MODULE"; then 7244 # By default we will add the -single_module flag. You can override 7245 # by either setting the environment variable LT_MULTI_MODULE 7246 # non-empty at configure time, or by adding -multi_module to the 7247 # link flags. 7248 rm -rf libconftest.dylib* 7249 echo "int foo(void){return 1;}" > conftest.c 7250 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7251-dynamiclib -Wl,-single_module conftest.c" >&5 7252 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7253 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7254 _lt_result=$? 7255 # If there is a non-empty error log, and "single_module" 7256 # appears in it, assume the flag caused a linker warning 7257 if test -s conftest.err && $GREP single_module conftest.err; then 7258 cat conftest.err >&5 7259 # Otherwise, if the output was created with a 0 exit code from 7260 # the compiler, it worked. 7261 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7262 lt_cv_apple_cc_single_mod=yes 7263 else 7264 cat conftest.err >&5 7265 fi 7266 rm -rf libconftest.dylib* 7267 rm -f conftest.* 7268 fi 7269fi 7270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7271$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7272 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7274$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7275if ${lt_cv_ld_exported_symbols_list+:} false; then : 7276 $as_echo_n "(cached) " >&6 7277else 7278 lt_cv_ld_exported_symbols_list=no 7279 save_LDFLAGS=$LDFLAGS 7280 echo "_main" > conftest.sym 7281 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7283/* end confdefs.h. */ 7284 7285int 7286main () 7287{ 7288 7289 ; 7290 return 0; 7291} 7292_ACEOF 7293if ac_fn_c_try_link "$LINENO"; then : 7294 lt_cv_ld_exported_symbols_list=yes 7295else 7296 lt_cv_ld_exported_symbols_list=no 7297fi 7298rm -f core conftest.err conftest.$ac_objext \ 7299 conftest$ac_exeext conftest.$ac_ext 7300 LDFLAGS=$save_LDFLAGS 7301 7302fi 7303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7304$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7305 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7307$as_echo_n "checking for -force_load linker flag... " >&6; } 7308if ${lt_cv_ld_force_load+:} false; then : 7309 $as_echo_n "(cached) " >&6 7310else 7311 lt_cv_ld_force_load=no 7312 cat > conftest.c << _LT_EOF 7313int forced_loaded() { return 2;} 7314_LT_EOF 7315 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7316 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7317 echo "$AR cru libconftest.a conftest.o" >&5 7318 $AR cru libconftest.a conftest.o 2>&5 7319 echo "$RANLIB libconftest.a" >&5 7320 $RANLIB libconftest.a 2>&5 7321 cat > conftest.c << _LT_EOF 7322int main() { return 0;} 7323_LT_EOF 7324 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7325 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7326 _lt_result=$? 7327 if test -s conftest.err && $GREP force_load conftest.err; then 7328 cat conftest.err >&5 7329 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7330 lt_cv_ld_force_load=yes 7331 else 7332 cat conftest.err >&5 7333 fi 7334 rm -f conftest.err libconftest.a conftest conftest.c 7335 rm -rf conftest.dSYM 7336 7337fi 7338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7339$as_echo "$lt_cv_ld_force_load" >&6; } 7340 case $host_os in 7341 rhapsody* | darwin1.[012]) 7342 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7343 darwin1.*) 7344 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7345 darwin*) # darwin 5.x on 7346 # if running on 10.5 or later, the deployment target defaults 7347 # to the OS version, if on x86, and 10.4, the deployment 7348 # target defaults to 10.4. Don't you love it? 7349 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7350 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7351 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7352 10.[012][,.]*) 7353 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7354 10.*) 7355 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7356 esac 7357 ;; 7358 esac 7359 if test yes = "$lt_cv_apple_cc_single_mod"; then 7360 _lt_dar_single_mod='$single_module' 7361 fi 7362 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7363 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7364 else 7365 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7366 fi 7367 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7368 _lt_dsymutil='~$DSYMUTIL $lib || :' 7369 else 7370 _lt_dsymutil= 7371 fi 7372 ;; 7373 esac 7374 7375# func_munge_path_list VARIABLE PATH 7376# ----------------------------------- 7377# VARIABLE is name of variable containing _space_ separated list of 7378# directories to be munged by the contents of PATH, which is string 7379# having a format: 7380# "DIR[:DIR]:" 7381# string "DIR[ DIR]" will be prepended to VARIABLE 7382# ":DIR[:DIR]" 7383# string "DIR[ DIR]" will be appended to VARIABLE 7384# "DIRP[:DIRP]::[DIRA:]DIRA" 7385# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7386# "DIRA[ DIRA]" will be appended to VARIABLE 7387# "DIR[:DIR]" 7388# VARIABLE will be replaced by "DIR[ DIR]" 7389func_munge_path_list () 7390{ 7391 case x$2 in 7392 x) 7393 ;; 7394 *:) 7395 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7396 ;; 7397 x:*) 7398 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7399 ;; 7400 *::*) 7401 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7402 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7403 ;; 7404 *) 7405 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7406 ;; 7407 esac 7408} 7409 7410ac_ext=c 7411ac_cpp='$CPP $CPPFLAGS' 7412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7414ac_compiler_gnu=$ac_cv_c_compiler_gnu 7415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7416$as_echo_n "checking how to run the C preprocessor... " >&6; } 7417# On Suns, sometimes $CPP names a directory. 7418if test -n "$CPP" && test -d "$CPP"; then 7419 CPP= 7420fi 7421if test -z "$CPP"; then 7422 if ${ac_cv_prog_CPP+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424else 7425 # Double quotes because CPP needs to be expanded 7426 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7427 do 7428 ac_preproc_ok=false 7429for ac_c_preproc_warn_flag in '' yes 7430do 7431 # Use a header file that comes with gcc, so configuring glibc 7432 # with a fresh cross-compiler works. 7433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7434 # <limits.h> exists even on freestanding compilers. 7435 # On the NeXT, cc -E runs the code through the compiler's parser, 7436 # not just through cpp. "Syntax error" is here to catch this case. 7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7438/* end confdefs.h. */ 7439#ifdef __STDC__ 7440# include <limits.h> 7441#else 7442# include <assert.h> 7443#endif 7444 Syntax error 7445_ACEOF 7446if ac_fn_c_try_cpp "$LINENO"; then : 7447 7448else 7449 # Broken: fails on valid input. 7450continue 7451fi 7452rm -f conftest.err conftest.i conftest.$ac_ext 7453 7454 # OK, works on sane cases. Now check whether nonexistent headers 7455 # can be detected and how. 7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7457/* end confdefs.h. */ 7458#include <ac_nonexistent.h> 7459_ACEOF 7460if ac_fn_c_try_cpp "$LINENO"; then : 7461 # Broken: success on invalid input. 7462continue 7463else 7464 # Passes both tests. 7465ac_preproc_ok=: 7466break 7467fi 7468rm -f conftest.err conftest.i conftest.$ac_ext 7469 7470done 7471# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7472rm -f conftest.i conftest.err conftest.$ac_ext 7473if $ac_preproc_ok; then : 7474 break 7475fi 7476 7477 done 7478 ac_cv_prog_CPP=$CPP 7479 7480fi 7481 CPP=$ac_cv_prog_CPP 7482else 7483 ac_cv_prog_CPP=$CPP 7484fi 7485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7486$as_echo "$CPP" >&6; } 7487ac_preproc_ok=false 7488for ac_c_preproc_warn_flag in '' yes 7489do 7490 # Use a header file that comes with gcc, so configuring glibc 7491 # with a fresh cross-compiler works. 7492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7493 # <limits.h> exists even on freestanding compilers. 7494 # On the NeXT, cc -E runs the code through the compiler's parser, 7495 # not just through cpp. "Syntax error" is here to catch this case. 7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7497/* end confdefs.h. */ 7498#ifdef __STDC__ 7499# include <limits.h> 7500#else 7501# include <assert.h> 7502#endif 7503 Syntax error 7504_ACEOF 7505if ac_fn_c_try_cpp "$LINENO"; then : 7506 7507else 7508 # Broken: fails on valid input. 7509continue 7510fi 7511rm -f conftest.err conftest.i conftest.$ac_ext 7512 7513 # OK, works on sane cases. Now check whether nonexistent headers 7514 # can be detected and how. 7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7516/* end confdefs.h. */ 7517#include <ac_nonexistent.h> 7518_ACEOF 7519if ac_fn_c_try_cpp "$LINENO"; then : 7520 # Broken: success on invalid input. 7521continue 7522else 7523 # Passes both tests. 7524ac_preproc_ok=: 7525break 7526fi 7527rm -f conftest.err conftest.i conftest.$ac_ext 7528 7529done 7530# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7531rm -f conftest.i conftest.err conftest.$ac_ext 7532if $ac_preproc_ok; then : 7533 7534else 7535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7537as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7538See \`config.log' for more details" "$LINENO" 5; } 7539fi 7540 7541ac_ext=c 7542ac_cpp='$CPP $CPPFLAGS' 7543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7545ac_compiler_gnu=$ac_cv_c_compiler_gnu 7546 7547 7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7549$as_echo_n "checking for ANSI C header files... " >&6; } 7550if ${ac_cv_header_stdc+:} false; then : 7551 $as_echo_n "(cached) " >&6 7552else 7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7554/* end confdefs.h. */ 7555#include <stdlib.h> 7556#include <stdarg.h> 7557#include <string.h> 7558#include <float.h> 7559 7560int 7561main () 7562{ 7563 7564 ; 7565 return 0; 7566} 7567_ACEOF 7568if ac_fn_c_try_compile "$LINENO"; then : 7569 ac_cv_header_stdc=yes 7570else 7571 ac_cv_header_stdc=no 7572fi 7573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7574 7575if test $ac_cv_header_stdc = yes; then 7576 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7578/* end confdefs.h. */ 7579#include <string.h> 7580 7581_ACEOF 7582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7583 $EGREP "memchr" >/dev/null 2>&1; then : 7584 7585else 7586 ac_cv_header_stdc=no 7587fi 7588rm -f conftest* 7589 7590fi 7591 7592if test $ac_cv_header_stdc = yes; then 7593 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7595/* end confdefs.h. */ 7596#include <stdlib.h> 7597 7598_ACEOF 7599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7600 $EGREP "free" >/dev/null 2>&1; then : 7601 7602else 7603 ac_cv_header_stdc=no 7604fi 7605rm -f conftest* 7606 7607fi 7608 7609if test $ac_cv_header_stdc = yes; then 7610 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7611 if test "$cross_compiling" = yes; then : 7612 : 7613else 7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7615/* end confdefs.h. */ 7616#include <ctype.h> 7617#include <stdlib.h> 7618#if ((' ' & 0x0FF) == 0x020) 7619# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7620# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7621#else 7622# define ISLOWER(c) \ 7623 (('a' <= (c) && (c) <= 'i') \ 7624 || ('j' <= (c) && (c) <= 'r') \ 7625 || ('s' <= (c) && (c) <= 'z')) 7626# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7627#endif 7628 7629#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7630int 7631main () 7632{ 7633 int i; 7634 for (i = 0; i < 256; i++) 7635 if (XOR (islower (i), ISLOWER (i)) 7636 || toupper (i) != TOUPPER (i)) 7637 return 2; 7638 return 0; 7639} 7640_ACEOF 7641if ac_fn_c_try_run "$LINENO"; then : 7642 7643else 7644 ac_cv_header_stdc=no 7645fi 7646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7647 conftest.$ac_objext conftest.beam conftest.$ac_ext 7648fi 7649 7650fi 7651fi 7652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7653$as_echo "$ac_cv_header_stdc" >&6; } 7654if test $ac_cv_header_stdc = yes; then 7655 7656$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7657 7658fi 7659 7660# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7661for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7662 inttypes.h stdint.h unistd.h 7663do : 7664 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7665ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7666" 7667if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7668 cat >>confdefs.h <<_ACEOF 7669#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7670_ACEOF 7671 7672fi 7673 7674done 7675 7676 7677for ac_header in dlfcn.h 7678do : 7679 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7680" 7681if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7682 cat >>confdefs.h <<_ACEOF 7683#define HAVE_DLFCN_H 1 7684_ACEOF 7685 7686fi 7687 7688done 7689 7690 7691 7692 7693 7694# Set options 7695 7696 7697 7698 enable_dlopen=no 7699 7700 7701 enable_win32_dll=no 7702 7703 7704 # Check whether --enable-shared was given. 7705if test "${enable_shared+set}" = set; then : 7706 enableval=$enable_shared; p=${PACKAGE-default} 7707 case $enableval in 7708 yes) enable_shared=yes ;; 7709 no) enable_shared=no ;; 7710 *) 7711 enable_shared=no 7712 # Look at the argument we got. We use all the common list separators. 7713 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7714 for pkg in $enableval; do 7715 IFS=$lt_save_ifs 7716 if test "X$pkg" = "X$p"; then 7717 enable_shared=yes 7718 fi 7719 done 7720 IFS=$lt_save_ifs 7721 ;; 7722 esac 7723else 7724 enable_shared=yes 7725fi 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737# Check whether --with-pic was given. 7738if test "${with_pic+set}" = set; then : 7739 withval=$with_pic; lt_p=${PACKAGE-default} 7740 case $withval in 7741 yes|no) pic_mode=$withval ;; 7742 *) 7743 pic_mode=default 7744 # Look at the argument we got. We use all the common list separators. 7745 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7746 for lt_pkg in $withval; do 7747 IFS=$lt_save_ifs 7748 if test "X$lt_pkg" = "X$lt_p"; then 7749 pic_mode=yes 7750 fi 7751 done 7752 IFS=$lt_save_ifs 7753 ;; 7754 esac 7755else 7756 pic_mode=default 7757fi 7758 7759 7760 7761 7762 7763 7764 7765 7766 # Check whether --enable-fast-install was given. 7767if test "${enable_fast_install+set}" = set; then : 7768 enableval=$enable_fast_install; p=${PACKAGE-default} 7769 case $enableval in 7770 yes) enable_fast_install=yes ;; 7771 no) enable_fast_install=no ;; 7772 *) 7773 enable_fast_install=no 7774 # Look at the argument we got. We use all the common list separators. 7775 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7776 for pkg in $enableval; do 7777 IFS=$lt_save_ifs 7778 if test "X$pkg" = "X$p"; then 7779 enable_fast_install=yes 7780 fi 7781 done 7782 IFS=$lt_save_ifs 7783 ;; 7784 esac 7785else 7786 enable_fast_install=yes 7787fi 7788 7789 7790 7791 7792 7793 7794 7795 7796 shared_archive_member_spec= 7797case $host,$enable_shared in 7798power*-*-aix[5-9]*,yes) 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7800$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7801 7802# Check whether --with-aix-soname was given. 7803if test "${with_aix_soname+set}" = set; then : 7804 withval=$with_aix_soname; case $withval in 7805 aix|svr4|both) 7806 ;; 7807 *) 7808 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7809 ;; 7810 esac 7811 lt_cv_with_aix_soname=$with_aix_soname 7812else 7813 if ${lt_cv_with_aix_soname+:} false; then : 7814 $as_echo_n "(cached) " >&6 7815else 7816 lt_cv_with_aix_soname=aix 7817fi 7818 7819 with_aix_soname=$lt_cv_with_aix_soname 7820fi 7821 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7823$as_echo "$with_aix_soname" >&6; } 7824 if test aix != "$with_aix_soname"; then 7825 # For the AIX way of multilib, we name the shared archive member 7826 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7827 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7828 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7829 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7830 if test 64 = "${OBJECT_MODE-32}"; then 7831 shared_archive_member_spec=shr_64 7832 else 7833 shared_archive_member_spec=shr 7834 fi 7835 fi 7836 ;; 7837*) 7838 with_aix_soname=aix 7839 ;; 7840esac 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851# This can be used to rebuild libtool when needed 7852LIBTOOL_DEPS=$ltmain 7853 7854# Always use our own libtool. 7855LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886test -z "$LN_S" && LN_S="ln -s" 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901if test -n "${ZSH_VERSION+set}"; then 7902 setopt NO_GLOB_SUBST 7903fi 7904 7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7906$as_echo_n "checking for objdir... " >&6; } 7907if ${lt_cv_objdir+:} false; then : 7908 $as_echo_n "(cached) " >&6 7909else 7910 rm -f .libs 2>/dev/null 7911mkdir .libs 2>/dev/null 7912if test -d .libs; then 7913 lt_cv_objdir=.libs 7914else 7915 # MS-DOS does not allow filenames that begin with a dot. 7916 lt_cv_objdir=_libs 7917fi 7918rmdir .libs 2>/dev/null 7919fi 7920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7921$as_echo "$lt_cv_objdir" >&6; } 7922objdir=$lt_cv_objdir 7923 7924 7925 7926 7927 7928cat >>confdefs.h <<_ACEOF 7929#define LT_OBJDIR "$lt_cv_objdir/" 7930_ACEOF 7931 7932 7933 7934 7935case $host_os in 7936aix3*) 7937 # AIX sometimes has problems with the GCC collect2 program. For some 7938 # reason, if we set the COLLECT_NAMES environment variable, the problems 7939 # vanish in a puff of smoke. 7940 if test set != "${COLLECT_NAMES+set}"; then 7941 COLLECT_NAMES= 7942 export COLLECT_NAMES 7943 fi 7944 ;; 7945esac 7946 7947# Global variables: 7948ofile=libtool 7949can_build_shared=yes 7950 7951# All known linkers require a '.a' archive for static linking (except MSVC, 7952# which needs '.lib'). 7953libext=a 7954 7955with_gnu_ld=$lt_cv_prog_gnu_ld 7956 7957old_CC=$CC 7958old_CFLAGS=$CFLAGS 7959 7960# Set sane defaults for various variables 7961test -z "$CC" && CC=cc 7962test -z "$LTCC" && LTCC=$CC 7963test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7964test -z "$LD" && LD=ld 7965test -z "$ac_objext" && ac_objext=o 7966 7967func_cc_basename $compiler 7968cc_basename=$func_cc_basename_result 7969 7970 7971# Only perform the check for file, if the check method requires it 7972test -z "$MAGIC_CMD" && MAGIC_CMD=file 7973case $deplibs_check_method in 7974file_magic*) 7975 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7977$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7978if ${lt_cv_path_MAGIC_CMD+:} false; then : 7979 $as_echo_n "(cached) " >&6 7980else 7981 case $MAGIC_CMD in 7982[\\/*] | ?:[\\/]*) 7983 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7984 ;; 7985*) 7986 lt_save_MAGIC_CMD=$MAGIC_CMD 7987 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7988 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7989 for ac_dir in $ac_dummy; do 7990 IFS=$lt_save_ifs 7991 test -z "$ac_dir" && ac_dir=. 7992 if test -f "$ac_dir/${ac_tool_prefix}file"; then 7993 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 7994 if test -n "$file_magic_test_file"; then 7995 case $deplibs_check_method in 7996 "file_magic "*) 7997 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7998 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7999 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8000 $EGREP "$file_magic_regex" > /dev/null; then 8001 : 8002 else 8003 cat <<_LT_EOF 1>&2 8004 8005*** Warning: the command libtool uses to detect shared libraries, 8006*** $file_magic_cmd, produces output that libtool cannot recognize. 8007*** The result is that libtool may fail to recognize shared libraries 8008*** as such. This will affect the creation of libtool libraries that 8009*** depend on shared libraries, but programs linked with such libtool 8010*** libraries will work regardless of this problem. Nevertheless, you 8011*** may want to report the problem to your system manager and/or to 8012*** bug-libtool@gnu.org 8013 8014_LT_EOF 8015 fi ;; 8016 esac 8017 fi 8018 break 8019 fi 8020 done 8021 IFS=$lt_save_ifs 8022 MAGIC_CMD=$lt_save_MAGIC_CMD 8023 ;; 8024esac 8025fi 8026 8027MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8028if test -n "$MAGIC_CMD"; then 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8030$as_echo "$MAGIC_CMD" >&6; } 8031else 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8033$as_echo "no" >&6; } 8034fi 8035 8036 8037 8038 8039 8040if test -z "$lt_cv_path_MAGIC_CMD"; then 8041 if test -n "$ac_tool_prefix"; then 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8043$as_echo_n "checking for file... " >&6; } 8044if ${lt_cv_path_MAGIC_CMD+:} false; then : 8045 $as_echo_n "(cached) " >&6 8046else 8047 case $MAGIC_CMD in 8048[\\/*] | ?:[\\/]*) 8049 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8050 ;; 8051*) 8052 lt_save_MAGIC_CMD=$MAGIC_CMD 8053 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8055 for ac_dir in $ac_dummy; do 8056 IFS=$lt_save_ifs 8057 test -z "$ac_dir" && ac_dir=. 8058 if test -f "$ac_dir/file"; then 8059 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8060 if test -n "$file_magic_test_file"; then 8061 case $deplibs_check_method in 8062 "file_magic "*) 8063 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8064 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8066 $EGREP "$file_magic_regex" > /dev/null; then 8067 : 8068 else 8069 cat <<_LT_EOF 1>&2 8070 8071*** Warning: the command libtool uses to detect shared libraries, 8072*** $file_magic_cmd, produces output that libtool cannot recognize. 8073*** The result is that libtool may fail to recognize shared libraries 8074*** as such. This will affect the creation of libtool libraries that 8075*** depend on shared libraries, but programs linked with such libtool 8076*** libraries will work regardless of this problem. Nevertheless, you 8077*** may want to report the problem to your system manager and/or to 8078*** bug-libtool@gnu.org 8079 8080_LT_EOF 8081 fi ;; 8082 esac 8083 fi 8084 break 8085 fi 8086 done 8087 IFS=$lt_save_ifs 8088 MAGIC_CMD=$lt_save_MAGIC_CMD 8089 ;; 8090esac 8091fi 8092 8093MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8094if test -n "$MAGIC_CMD"; then 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8096$as_echo "$MAGIC_CMD" >&6; } 8097else 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8099$as_echo "no" >&6; } 8100fi 8101 8102 8103 else 8104 MAGIC_CMD=: 8105 fi 8106fi 8107 8108 fi 8109 ;; 8110esac 8111 8112# Use C for the default configuration in the libtool script 8113 8114lt_save_CC=$CC 8115ac_ext=c 8116ac_cpp='$CPP $CPPFLAGS' 8117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8119ac_compiler_gnu=$ac_cv_c_compiler_gnu 8120 8121 8122# Source file extension for C test sources. 8123ac_ext=c 8124 8125# Object file extension for compiled C test sources. 8126objext=o 8127objext=$objext 8128 8129# Code to be used in simple compile tests 8130lt_simple_compile_test_code="int some_variable = 0;" 8131 8132# Code to be used in simple link tests 8133lt_simple_link_test_code='int main(){return(0);}' 8134 8135 8136 8137 8138 8139 8140 8141# If no C compiler was specified, use CC. 8142LTCC=${LTCC-"$CC"} 8143 8144# If no C compiler flags were specified, use CFLAGS. 8145LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8146 8147# Allow CC to be a program name with arguments. 8148compiler=$CC 8149 8150# Save the default compiler, since it gets overwritten when the other 8151# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8152compiler_DEFAULT=$CC 8153 8154# save warnings/boilerplate of simple test code 8155ac_outfile=conftest.$ac_objext 8156echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8157eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8158_lt_compiler_boilerplate=`cat conftest.err` 8159$RM conftest* 8160 8161ac_outfile=conftest.$ac_objext 8162echo "$lt_simple_link_test_code" >conftest.$ac_ext 8163eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8164_lt_linker_boilerplate=`cat conftest.err` 8165$RM -r conftest* 8166 8167 8168if test -n "$compiler"; then 8169 8170lt_prog_compiler_no_builtin_flag= 8171 8172if test yes = "$GCC"; then 8173 case $cc_basename in 8174 nvcc*) 8175 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8176 *) 8177 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8178 esac 8179 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8181$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8182if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8183 $as_echo_n "(cached) " >&6 8184else 8185 lt_cv_prog_compiler_rtti_exceptions=no 8186 ac_outfile=conftest.$ac_objext 8187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8188 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8189 # Insert the option either (1) after the last *FLAGS variable, or 8190 # (2) before a word containing "conftest.", or (3) at the end. 8191 # Note that $ac_compile itself does not contain backslashes and begins 8192 # with a dollar sign (not a hyphen), so the echo should work correctly. 8193 # The option is referenced via a variable to avoid confusing sed. 8194 lt_compile=`echo "$ac_compile" | $SED \ 8195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8197 -e 's:$: $lt_compiler_flag:'` 8198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8199 (eval "$lt_compile" 2>conftest.err) 8200 ac_status=$? 8201 cat conftest.err >&5 8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8203 if (exit $ac_status) && test -s "$ac_outfile"; then 8204 # The compiler can only warn and ignore the option if not recognized 8205 # So say no if there are warnings other than the usual output. 8206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8209 lt_cv_prog_compiler_rtti_exceptions=yes 8210 fi 8211 fi 8212 $RM conftest* 8213 8214fi 8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8216$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8217 8218if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8219 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8220else 8221 : 8222fi 8223 8224fi 8225 8226 8227 8228 8229 8230 8231 lt_prog_compiler_wl= 8232lt_prog_compiler_pic= 8233lt_prog_compiler_static= 8234 8235 8236 if test yes = "$GCC"; then 8237 lt_prog_compiler_wl='-Wl,' 8238 lt_prog_compiler_static='-static' 8239 8240 case $host_os in 8241 aix*) 8242 # All AIX code is PIC. 8243 if test ia64 = "$host_cpu"; then 8244 # AIX 5 now supports IA64 processor 8245 lt_prog_compiler_static='-Bstatic' 8246 fi 8247 lt_prog_compiler_pic='-fPIC' 8248 ;; 8249 8250 amigaos*) 8251 case $host_cpu in 8252 powerpc) 8253 # see comment about AmigaOS4 .so support 8254 lt_prog_compiler_pic='-fPIC' 8255 ;; 8256 m68k) 8257 # FIXME: we need at least 68020 code to build shared libraries, but 8258 # adding the '-m68020' flag to GCC prevents building anything better, 8259 # like '-m68040'. 8260 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8261 ;; 8262 esac 8263 ;; 8264 8265 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8266 # PIC is the default for these OSes. 8267 ;; 8268 8269 mingw* | cygwin* | pw32* | os2* | cegcc*) 8270 # This hack is so that the source file can tell whether it is being 8271 # built for inclusion in a dll (and should export symbols for example). 8272 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8273 # (--disable-auto-import) libraries 8274 lt_prog_compiler_pic='-DDLL_EXPORT' 8275 case $host_os in 8276 os2*) 8277 lt_prog_compiler_static='$wl-static' 8278 ;; 8279 esac 8280 ;; 8281 8282 darwin* | rhapsody*) 8283 # PIC is the default on this platform 8284 # Common symbols not allowed in MH_DYLIB files 8285 lt_prog_compiler_pic='-fno-common' 8286 ;; 8287 8288 haiku*) 8289 # PIC is the default for Haiku. 8290 # The "-static" flag exists, but is broken. 8291 lt_prog_compiler_static= 8292 ;; 8293 8294 hpux*) 8295 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8296 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8297 # sets the default TLS model and affects inlining. 8298 case $host_cpu in 8299 hppa*64*) 8300 # +Z the default 8301 ;; 8302 *) 8303 lt_prog_compiler_pic='-fPIC' 8304 ;; 8305 esac 8306 ;; 8307 8308 interix[3-9]*) 8309 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8310 # Instead, we relocate shared libraries at runtime. 8311 ;; 8312 8313 msdosdjgpp*) 8314 # Just because we use GCC doesn't mean we suddenly get shared libraries 8315 # on systems that don't support them. 8316 lt_prog_compiler_can_build_shared=no 8317 enable_shared=no 8318 ;; 8319 8320 *nto* | *qnx*) 8321 # QNX uses GNU C++, but need to define -shared option too, otherwise 8322 # it will coredump. 8323 lt_prog_compiler_pic='-fPIC -shared' 8324 ;; 8325 8326 sysv4*MP*) 8327 if test -d /usr/nec; then 8328 lt_prog_compiler_pic=-Kconform_pic 8329 fi 8330 ;; 8331 8332 *) 8333 lt_prog_compiler_pic='-fPIC' 8334 ;; 8335 esac 8336 8337 case $cc_basename in 8338 nvcc*) # Cuda Compiler Driver 2.2 8339 lt_prog_compiler_wl='-Xlinker ' 8340 if test -n "$lt_prog_compiler_pic"; then 8341 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8342 fi 8343 ;; 8344 esac 8345 else 8346 # PORTME Check for flag to pass linker flags through the system compiler. 8347 case $host_os in 8348 aix*) 8349 lt_prog_compiler_wl='-Wl,' 8350 if test ia64 = "$host_cpu"; then 8351 # AIX 5 now supports IA64 processor 8352 lt_prog_compiler_static='-Bstatic' 8353 else 8354 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8355 fi 8356 ;; 8357 8358 darwin* | rhapsody*) 8359 # PIC is the default on this platform 8360 # Common symbols not allowed in MH_DYLIB files 8361 lt_prog_compiler_pic='-fno-common' 8362 case $cc_basename in 8363 nagfor*) 8364 # NAG Fortran compiler 8365 lt_prog_compiler_wl='-Wl,-Wl,,' 8366 lt_prog_compiler_pic='-PIC' 8367 lt_prog_compiler_static='-Bstatic' 8368 ;; 8369 esac 8370 ;; 8371 8372 mingw* | cygwin* | pw32* | os2* | cegcc*) 8373 # This hack is so that the source file can tell whether it is being 8374 # built for inclusion in a dll (and should export symbols for example). 8375 lt_prog_compiler_pic='-DDLL_EXPORT' 8376 case $host_os in 8377 os2*) 8378 lt_prog_compiler_static='$wl-static' 8379 ;; 8380 esac 8381 ;; 8382 8383 hpux9* | hpux10* | hpux11*) 8384 lt_prog_compiler_wl='-Wl,' 8385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8386 # not for PA HP-UX. 8387 case $host_cpu in 8388 hppa*64*|ia64*) 8389 # +Z the default 8390 ;; 8391 *) 8392 lt_prog_compiler_pic='+Z' 8393 ;; 8394 esac 8395 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8396 lt_prog_compiler_static='$wl-a ${wl}archive' 8397 ;; 8398 8399 irix5* | irix6* | nonstopux*) 8400 lt_prog_compiler_wl='-Wl,' 8401 # PIC (with -KPIC) is the default. 8402 lt_prog_compiler_static='-non_shared' 8403 ;; 8404 8405 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8406 case $cc_basename in 8407 # old Intel for x86_64, which still supported -KPIC. 8408 ecc*) 8409 lt_prog_compiler_wl='-Wl,' 8410 lt_prog_compiler_pic='-KPIC' 8411 lt_prog_compiler_static='-static' 8412 ;; 8413 # icc used to be incompatible with GCC. 8414 # ICC 10 doesn't accept -KPIC any more. 8415 icc* | ifort*) 8416 lt_prog_compiler_wl='-Wl,' 8417 lt_prog_compiler_pic='-fPIC' 8418 lt_prog_compiler_static='-static' 8419 ;; 8420 # Lahey Fortran 8.1. 8421 lf95*) 8422 lt_prog_compiler_wl='-Wl,' 8423 lt_prog_compiler_pic='--shared' 8424 lt_prog_compiler_static='--static' 8425 ;; 8426 nagfor*) 8427 # NAG Fortran compiler 8428 lt_prog_compiler_wl='-Wl,-Wl,,' 8429 lt_prog_compiler_pic='-PIC' 8430 lt_prog_compiler_static='-Bstatic' 8431 ;; 8432 tcc*) 8433 # Fabrice Bellard et al's Tiny C Compiler 8434 lt_prog_compiler_wl='-Wl,' 8435 lt_prog_compiler_pic='-fPIC' 8436 lt_prog_compiler_static='-static' 8437 ;; 8438 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8439 # Portland Group compilers (*not* the Pentium gcc compiler, 8440 # which looks to be a dead project) 8441 lt_prog_compiler_wl='-Wl,' 8442 lt_prog_compiler_pic='-fpic' 8443 lt_prog_compiler_static='-Bstatic' 8444 ;; 8445 ccc*) 8446 lt_prog_compiler_wl='-Wl,' 8447 # All Alpha code is PIC. 8448 lt_prog_compiler_static='-non_shared' 8449 ;; 8450 xl* | bgxl* | bgf* | mpixl*) 8451 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8452 lt_prog_compiler_wl='-Wl,' 8453 lt_prog_compiler_pic='-qpic' 8454 lt_prog_compiler_static='-qstaticlink' 8455 ;; 8456 *) 8457 case `$CC -V 2>&1 | sed 5q` in 8458 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8459 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8460 lt_prog_compiler_pic='-KPIC' 8461 lt_prog_compiler_static='-Bstatic' 8462 lt_prog_compiler_wl='' 8463 ;; 8464 *Sun\ F* | *Sun*Fortran*) 8465 lt_prog_compiler_pic='-KPIC' 8466 lt_prog_compiler_static='-Bstatic' 8467 lt_prog_compiler_wl='-Qoption ld ' 8468 ;; 8469 *Sun\ C*) 8470 # Sun C 5.9 8471 lt_prog_compiler_pic='-KPIC' 8472 lt_prog_compiler_static='-Bstatic' 8473 lt_prog_compiler_wl='-Wl,' 8474 ;; 8475 *Intel*\ [CF]*Compiler*) 8476 lt_prog_compiler_wl='-Wl,' 8477 lt_prog_compiler_pic='-fPIC' 8478 lt_prog_compiler_static='-static' 8479 ;; 8480 *Portland\ Group*) 8481 lt_prog_compiler_wl='-Wl,' 8482 lt_prog_compiler_pic='-fpic' 8483 lt_prog_compiler_static='-Bstatic' 8484 ;; 8485 esac 8486 ;; 8487 esac 8488 ;; 8489 8490 newsos6) 8491 lt_prog_compiler_pic='-KPIC' 8492 lt_prog_compiler_static='-Bstatic' 8493 ;; 8494 8495 *nto* | *qnx*) 8496 # QNX uses GNU C++, but need to define -shared option too, otherwise 8497 # it will coredump. 8498 lt_prog_compiler_pic='-fPIC -shared' 8499 ;; 8500 8501 osf3* | osf4* | osf5*) 8502 lt_prog_compiler_wl='-Wl,' 8503 # All OSF/1 code is PIC. 8504 lt_prog_compiler_static='-non_shared' 8505 ;; 8506 8507 rdos*) 8508 lt_prog_compiler_static='-non_shared' 8509 ;; 8510 8511 solaris*) 8512 lt_prog_compiler_pic='-KPIC' 8513 lt_prog_compiler_static='-Bstatic' 8514 case $cc_basename in 8515 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8516 lt_prog_compiler_wl='-Qoption ld ';; 8517 *) 8518 lt_prog_compiler_wl='-Wl,';; 8519 esac 8520 ;; 8521 8522 sunos4*) 8523 lt_prog_compiler_wl='-Qoption ld ' 8524 lt_prog_compiler_pic='-PIC' 8525 lt_prog_compiler_static='-Bstatic' 8526 ;; 8527 8528 sysv4 | sysv4.2uw2* | sysv4.3*) 8529 lt_prog_compiler_wl='-Wl,' 8530 lt_prog_compiler_pic='-KPIC' 8531 lt_prog_compiler_static='-Bstatic' 8532 ;; 8533 8534 sysv4*MP*) 8535 if test -d /usr/nec; then 8536 lt_prog_compiler_pic='-Kconform_pic' 8537 lt_prog_compiler_static='-Bstatic' 8538 fi 8539 ;; 8540 8541 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8542 lt_prog_compiler_wl='-Wl,' 8543 lt_prog_compiler_pic='-KPIC' 8544 lt_prog_compiler_static='-Bstatic' 8545 ;; 8546 8547 unicos*) 8548 lt_prog_compiler_wl='-Wl,' 8549 lt_prog_compiler_can_build_shared=no 8550 ;; 8551 8552 uts4*) 8553 lt_prog_compiler_pic='-pic' 8554 lt_prog_compiler_static='-Bstatic' 8555 ;; 8556 8557 *) 8558 lt_prog_compiler_can_build_shared=no 8559 ;; 8560 esac 8561 fi 8562 8563case $host_os in 8564 # For platforms that do not support PIC, -DPIC is meaningless: 8565 *djgpp*) 8566 lt_prog_compiler_pic= 8567 ;; 8568 *) 8569 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8570 ;; 8571esac 8572 8573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8574$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8575if ${lt_cv_prog_compiler_pic+:} false; then : 8576 $as_echo_n "(cached) " >&6 8577else 8578 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8579fi 8580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8581$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8582lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8583 8584# 8585# Check to make sure the PIC flag actually works. 8586# 8587if test -n "$lt_prog_compiler_pic"; then 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8589$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8590if ${lt_cv_prog_compiler_pic_works+:} false; then : 8591 $as_echo_n "(cached) " >&6 8592else 8593 lt_cv_prog_compiler_pic_works=no 8594 ac_outfile=conftest.$ac_objext 8595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8596 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8597 # Insert the option either (1) after the last *FLAGS variable, or 8598 # (2) before a word containing "conftest.", or (3) at the end. 8599 # Note that $ac_compile itself does not contain backslashes and begins 8600 # with a dollar sign (not a hyphen), so the echo should work correctly. 8601 # The option is referenced via a variable to avoid confusing sed. 8602 lt_compile=`echo "$ac_compile" | $SED \ 8603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8605 -e 's:$: $lt_compiler_flag:'` 8606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8607 (eval "$lt_compile" 2>conftest.err) 8608 ac_status=$? 8609 cat conftest.err >&5 8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8611 if (exit $ac_status) && test -s "$ac_outfile"; then 8612 # The compiler can only warn and ignore the option if not recognized 8613 # So say no if there are warnings other than the usual output. 8614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8616 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8617 lt_cv_prog_compiler_pic_works=yes 8618 fi 8619 fi 8620 $RM conftest* 8621 8622fi 8623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8624$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8625 8626if test yes = "$lt_cv_prog_compiler_pic_works"; then 8627 case $lt_prog_compiler_pic in 8628 "" | " "*) ;; 8629 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8630 esac 8631else 8632 lt_prog_compiler_pic= 8633 lt_prog_compiler_can_build_shared=no 8634fi 8635 8636fi 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648# 8649# Check to make sure the static flag actually works. 8650# 8651wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8653$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8654if ${lt_cv_prog_compiler_static_works+:} false; then : 8655 $as_echo_n "(cached) " >&6 8656else 8657 lt_cv_prog_compiler_static_works=no 8658 save_LDFLAGS=$LDFLAGS 8659 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8660 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8661 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8662 # The linker can only warn and ignore the option if not recognized 8663 # So say no if there are warnings 8664 if test -s conftest.err; then 8665 # Append any errors to the config.log. 8666 cat conftest.err 1>&5 8667 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8669 if diff conftest.exp conftest.er2 >/dev/null; then 8670 lt_cv_prog_compiler_static_works=yes 8671 fi 8672 else 8673 lt_cv_prog_compiler_static_works=yes 8674 fi 8675 fi 8676 $RM -r conftest* 8677 LDFLAGS=$save_LDFLAGS 8678 8679fi 8680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8681$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8682 8683if test yes = "$lt_cv_prog_compiler_static_works"; then 8684 : 8685else 8686 lt_prog_compiler_static= 8687fi 8688 8689 8690 8691 8692 8693 8694 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8696$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8697if ${lt_cv_prog_compiler_c_o+:} false; then : 8698 $as_echo_n "(cached) " >&6 8699else 8700 lt_cv_prog_compiler_c_o=no 8701 $RM -r conftest 2>/dev/null 8702 mkdir conftest 8703 cd conftest 8704 mkdir out 8705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8706 8707 lt_compiler_flag="-o out/conftest2.$ac_objext" 8708 # Insert the option either (1) after the last *FLAGS variable, or 8709 # (2) before a word containing "conftest.", or (3) at the end. 8710 # Note that $ac_compile itself does not contain backslashes and begins 8711 # with a dollar sign (not a hyphen), so the echo should work correctly. 8712 lt_compile=`echo "$ac_compile" | $SED \ 8713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8715 -e 's:$: $lt_compiler_flag:'` 8716 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8717 (eval "$lt_compile" 2>out/conftest.err) 8718 ac_status=$? 8719 cat out/conftest.err >&5 8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8721 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8722 then 8723 # The compiler can only warn and ignore the option if not recognized 8724 # So say no if there are warnings 8725 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8726 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8727 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8728 lt_cv_prog_compiler_c_o=yes 8729 fi 8730 fi 8731 chmod u+w . 2>&5 8732 $RM conftest* 8733 # SGI C++ compiler will create directory out/ii_files/ for 8734 # template instantiation 8735 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8736 $RM out/* && rmdir out 8737 cd .. 8738 $RM -r conftest 8739 $RM conftest* 8740 8741fi 8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8743$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8744 8745 8746 8747 8748 8749 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8751$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8752if ${lt_cv_prog_compiler_c_o+:} false; then : 8753 $as_echo_n "(cached) " >&6 8754else 8755 lt_cv_prog_compiler_c_o=no 8756 $RM -r conftest 2>/dev/null 8757 mkdir conftest 8758 cd conftest 8759 mkdir out 8760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8761 8762 lt_compiler_flag="-o out/conftest2.$ac_objext" 8763 # Insert the option either (1) after the last *FLAGS variable, or 8764 # (2) before a word containing "conftest.", or (3) at the end. 8765 # Note that $ac_compile itself does not contain backslashes and begins 8766 # with a dollar sign (not a hyphen), so the echo should work correctly. 8767 lt_compile=`echo "$ac_compile" | $SED \ 8768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8770 -e 's:$: $lt_compiler_flag:'` 8771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8772 (eval "$lt_compile" 2>out/conftest.err) 8773 ac_status=$? 8774 cat out/conftest.err >&5 8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8776 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8777 then 8778 # The compiler can only warn and ignore the option if not recognized 8779 # So say no if there are warnings 8780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8781 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8782 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8783 lt_cv_prog_compiler_c_o=yes 8784 fi 8785 fi 8786 chmod u+w . 2>&5 8787 $RM conftest* 8788 # SGI C++ compiler will create directory out/ii_files/ for 8789 # template instantiation 8790 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8791 $RM out/* && rmdir out 8792 cd .. 8793 $RM -r conftest 8794 $RM conftest* 8795 8796fi 8797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8798$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8799 8800 8801 8802 8803hard_links=nottested 8804if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8805 # do not overwrite the value of need_locks provided by the user 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8807$as_echo_n "checking if we can lock with hard links... " >&6; } 8808 hard_links=yes 8809 $RM conftest* 8810 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8811 touch conftest.a 8812 ln conftest.a conftest.b 2>&5 || hard_links=no 8813 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8815$as_echo "$hard_links" >&6; } 8816 if test no = "$hard_links"; then 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8818$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8819 need_locks=warn 8820 fi 8821else 8822 need_locks=no 8823fi 8824 8825 8826 8827 8828 8829 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8831$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8832 8833 runpath_var= 8834 allow_undefined_flag= 8835 always_export_symbols=no 8836 archive_cmds= 8837 archive_expsym_cmds= 8838 compiler_needs_object=no 8839 enable_shared_with_static_runtimes=no 8840 export_dynamic_flag_spec= 8841 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8842 hardcode_automatic=no 8843 hardcode_direct=no 8844 hardcode_direct_absolute=no 8845 hardcode_libdir_flag_spec= 8846 hardcode_libdir_separator= 8847 hardcode_minus_L=no 8848 hardcode_shlibpath_var=unsupported 8849 inherit_rpath=no 8850 link_all_deplibs=unknown 8851 module_cmds= 8852 module_expsym_cmds= 8853 old_archive_from_new_cmds= 8854 old_archive_from_expsyms_cmds= 8855 thread_safe_flag_spec= 8856 whole_archive_flag_spec= 8857 # include_expsyms should be a list of space-separated symbols to be *always* 8858 # included in the symbol list 8859 include_expsyms= 8860 # exclude_expsyms can be an extended regexp of symbols to exclude 8861 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8862 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8863 # as well as any symbol that contains 'd'. 8864 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8865 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8866 # platforms (ab)use it in PIC code, but their linkers get confused if 8867 # the symbol is explicitly referenced. Since portable code cannot 8868 # rely on this symbol name, it's probably fine to never include it in 8869 # preloaded symbol tables. 8870 # Exclude shared library initialization/finalization symbols. 8871 extract_expsyms_cmds= 8872 8873 case $host_os in 8874 cygwin* | mingw* | pw32* | cegcc*) 8875 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8876 # When not using gcc, we currently assume that we are using 8877 # Microsoft Visual C++. 8878 if test yes != "$GCC"; then 8879 with_gnu_ld=no 8880 fi 8881 ;; 8882 interix*) 8883 # we just hope/assume this is gcc and not c89 (= MSVC++) 8884 with_gnu_ld=yes 8885 ;; 8886 openbsd* | bitrig*) 8887 with_gnu_ld=no 8888 ;; 8889 esac 8890 8891 ld_shlibs=yes 8892 8893 # On some targets, GNU ld is compatible enough with the native linker 8894 # that we're better off using the native interface for both. 8895 lt_use_gnu_ld_interface=no 8896 if test yes = "$with_gnu_ld"; then 8897 case $host_os in 8898 aix*) 8899 # The AIX port of GNU ld has always aspired to compatibility 8900 # with the native linker. However, as the warning in the GNU ld 8901 # block says, versions before 2.19.5* couldn't really create working 8902 # shared libraries, regardless of the interface used. 8903 case `$LD -v 2>&1` in 8904 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8905 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8906 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8907 *) 8908 lt_use_gnu_ld_interface=yes 8909 ;; 8910 esac 8911 ;; 8912 *) 8913 lt_use_gnu_ld_interface=yes 8914 ;; 8915 esac 8916 fi 8917 8918 if test yes = "$lt_use_gnu_ld_interface"; then 8919 # If archive_cmds runs LD, not CC, wlarc should be empty 8920 wlarc='$wl' 8921 8922 # Set some defaults for GNU ld with shared library support. These 8923 # are reset later if shared libraries are not supported. Putting them 8924 # here allows them to be overridden if necessary. 8925 runpath_var=LD_RUN_PATH 8926 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8927 export_dynamic_flag_spec='$wl--export-dynamic' 8928 # ancient GNU ld didn't support --whole-archive et. al. 8929 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8930 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8931 else 8932 whole_archive_flag_spec= 8933 fi 8934 supports_anon_versioning=no 8935 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8936 *GNU\ gold*) supports_anon_versioning=yes ;; 8937 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8938 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8939 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8940 *\ 2.11.*) ;; # other 2.11 versions 8941 *) supports_anon_versioning=yes ;; 8942 esac 8943 8944 # See if GNU ld supports shared libraries. 8945 case $host_os in 8946 aix[3-9]*) 8947 # On AIX/PPC, the GNU linker is very broken 8948 if test ia64 != "$host_cpu"; then 8949 ld_shlibs=no 8950 cat <<_LT_EOF 1>&2 8951 8952*** Warning: the GNU linker, at least up to release 2.19, is reported 8953*** to be unable to reliably create shared libraries on AIX. 8954*** Therefore, libtool is disabling shared libraries support. If you 8955*** really care for shared libraries, you may want to install binutils 8956*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8957*** You will then need to restart the configuration process. 8958 8959_LT_EOF 8960 fi 8961 ;; 8962 8963 amigaos*) 8964 case $host_cpu in 8965 powerpc) 8966 # see comment about AmigaOS4 .so support 8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8968 archive_expsym_cmds='' 8969 ;; 8970 m68k) 8971 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)' 8972 hardcode_libdir_flag_spec='-L$libdir' 8973 hardcode_minus_L=yes 8974 ;; 8975 esac 8976 ;; 8977 8978 beos*) 8979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8980 allow_undefined_flag=unsupported 8981 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8982 # support --undefined. This deserves some investigation. FIXME 8983 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8984 else 8985 ld_shlibs=no 8986 fi 8987 ;; 8988 8989 cygwin* | mingw* | pw32* | cegcc*) 8990 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8991 # as there is no search path for DLLs. 8992 hardcode_libdir_flag_spec='-L$libdir' 8993 export_dynamic_flag_spec='$wl--export-all-symbols' 8994 allow_undefined_flag=unsupported 8995 always_export_symbols=no 8996 enable_shared_with_static_runtimes=yes 8997 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' 8998 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8999 9000 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9002 # If the export-symbols file already is a .def file, use it as 9003 # is; otherwise, prepend EXPORTS... 9004 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9005 cp $export_symbols $output_objdir/$soname.def; 9006 else 9007 echo EXPORTS > $output_objdir/$soname.def; 9008 cat $export_symbols >> $output_objdir/$soname.def; 9009 fi~ 9010 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9011 else 9012 ld_shlibs=no 9013 fi 9014 ;; 9015 9016 haiku*) 9017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9018 link_all_deplibs=yes 9019 ;; 9020 9021 os2*) 9022 hardcode_libdir_flag_spec='-L$libdir' 9023 hardcode_minus_L=yes 9024 allow_undefined_flag=unsupported 9025 shrext_cmds=.dll 9026 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9027 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9028 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9029 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9030 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9031 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9032 emximp -o $lib $output_objdir/$libname.def' 9033 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9034 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9035 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9036 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9037 prefix_cmds="$SED"~ 9038 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9039 prefix_cmds="$prefix_cmds -e 1d"; 9040 fi~ 9041 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9042 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9043 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9044 emximp -o $lib $output_objdir/$libname.def' 9045 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9046 enable_shared_with_static_runtimes=yes 9047 ;; 9048 9049 interix[3-9]*) 9050 hardcode_direct=no 9051 hardcode_shlibpath_var=no 9052 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9053 export_dynamic_flag_spec='$wl-E' 9054 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9055 # Instead, shared libraries are loaded at an image base (0x10000000 by 9056 # default) and relocated if they conflict, which is a slow very memory 9057 # consuming and fragmenting process. To avoid this, we pick a random, 9058 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9059 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9060 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9061 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' 9062 ;; 9063 9064 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9065 tmp_diet=no 9066 if test linux-dietlibc = "$host_os"; then 9067 case $cc_basename in 9068 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9069 esac 9070 fi 9071 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9072 && test no = "$tmp_diet" 9073 then 9074 tmp_addflag=' $pic_flag' 9075 tmp_sharedflag='-shared' 9076 case $cc_basename,$host_cpu in 9077 pgcc*) # Portland Group C compiler 9078 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' 9079 tmp_addflag=' $pic_flag' 9080 ;; 9081 pgf77* | pgf90* | pgf95* | pgfortran*) 9082 # Portland Group f77 and f90 compilers 9083 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' 9084 tmp_addflag=' $pic_flag -Mnomain' ;; 9085 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9086 tmp_addflag=' -i_dynamic' ;; 9087 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9088 tmp_addflag=' -i_dynamic -nofor_main' ;; 9089 ifc* | ifort*) # Intel Fortran compiler 9090 tmp_addflag=' -nofor_main' ;; 9091 lf95*) # Lahey Fortran 8.1 9092 whole_archive_flag_spec= 9093 tmp_sharedflag='--shared' ;; 9094 nagfor*) # NAGFOR 5.3 9095 tmp_sharedflag='-Wl,-shared' ;; 9096 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9097 tmp_sharedflag='-qmkshrobj' 9098 tmp_addflag= ;; 9099 nvcc*) # Cuda Compiler Driver 2.2 9100 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' 9101 compiler_needs_object=yes 9102 ;; 9103 esac 9104 case `$CC -V 2>&1 | sed 5q` in 9105 *Sun\ C*) # Sun C 5.9 9106 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' 9107 compiler_needs_object=yes 9108 tmp_sharedflag='-G' ;; 9109 *Sun\ F*) # Sun Fortran 8.3 9110 tmp_sharedflag='-G' ;; 9111 esac 9112 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9113 9114 if test yes = "$supports_anon_versioning"; then 9115 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9117 echo "local: *; };" >> $output_objdir/$libname.ver~ 9118 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9119 fi 9120 9121 case $cc_basename in 9122 tcc*) 9123 export_dynamic_flag_spec='-rdynamic' 9124 ;; 9125 xlf* | bgf* | bgxlf* | mpixlf*) 9126 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9127 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9128 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9129 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9130 if test yes = "$supports_anon_versioning"; then 9131 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9132 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9133 echo "local: *; };" >> $output_objdir/$libname.ver~ 9134 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9135 fi 9136 ;; 9137 esac 9138 else 9139 ld_shlibs=no 9140 fi 9141 ;; 9142 9143 netbsd*) 9144 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9145 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9146 wlarc= 9147 else 9148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9149 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9150 fi 9151 ;; 9152 9153 solaris*) 9154 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9155 ld_shlibs=no 9156 cat <<_LT_EOF 1>&2 9157 9158*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9159*** create shared libraries on Solaris systems. Therefore, libtool 9160*** is disabling shared libraries support. We urge you to upgrade GNU 9161*** binutils to release 2.9.1 or newer. Another option is to modify 9162*** your PATH or compiler configuration so that the native linker is 9163*** used, and then restart. 9164 9165_LT_EOF 9166 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9167 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9168 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9169 else 9170 ld_shlibs=no 9171 fi 9172 ;; 9173 9174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9175 case `$LD -v 2>&1` in 9176 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9177 ld_shlibs=no 9178 cat <<_LT_EOF 1>&2 9179 9180*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9181*** reliably create shared libraries on SCO systems. Therefore, libtool 9182*** is disabling shared libraries support. We urge you to upgrade GNU 9183*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9184*** your PATH or compiler configuration so that the native linker is 9185*** used, and then restart. 9186 9187_LT_EOF 9188 ;; 9189 *) 9190 # For security reasons, it is highly recommended that you always 9191 # use absolute paths for naming shared libraries, and exclude the 9192 # DT_RUNPATH tag from executables and libraries. But doing so 9193 # requires that you compile everything twice, which is a pain. 9194 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9195 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9198 else 9199 ld_shlibs=no 9200 fi 9201 ;; 9202 esac 9203 ;; 9204 9205 sunos4*) 9206 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9207 wlarc= 9208 hardcode_direct=yes 9209 hardcode_shlibpath_var=no 9210 ;; 9211 9212 *) 9213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9215 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9216 else 9217 ld_shlibs=no 9218 fi 9219 ;; 9220 esac 9221 9222 if test no = "$ld_shlibs"; then 9223 runpath_var= 9224 hardcode_libdir_flag_spec= 9225 export_dynamic_flag_spec= 9226 whole_archive_flag_spec= 9227 fi 9228 else 9229 # PORTME fill in a description of your system's linker (not GNU ld) 9230 case $host_os in 9231 aix3*) 9232 allow_undefined_flag=unsupported 9233 always_export_symbols=yes 9234 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' 9235 # Note: this linker hardcodes the directories in LIBPATH if there 9236 # are no directories specified by -L. 9237 hardcode_minus_L=yes 9238 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9239 # Neither direct hardcoding nor static linking is supported with a 9240 # broken collect2. 9241 hardcode_direct=unsupported 9242 fi 9243 ;; 9244 9245 aix[4-9]*) 9246 if test ia64 = "$host_cpu"; then 9247 # On IA64, the linker does run time linking by default, so we don't 9248 # have to do anything special. 9249 aix_use_runtimelinking=no 9250 exp_sym_flag='-Bexport' 9251 no_entry_flag= 9252 else 9253 # If we're using GNU nm, then we don't want the "-C" option. 9254 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9255 # Without the "-l" option, or with the "-B" option, AIX nm treats 9256 # weak defined symbols like other global defined symbols, whereas 9257 # GNU nm marks them as "W". 9258 # While the 'weak' keyword is ignored in the Export File, we need 9259 # it in the Import File for the 'aix-soname' feature, so we have 9260 # to replace the "-B" option with "-P" for AIX nm. 9261 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9262 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' 9263 else 9264 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' 9265 fi 9266 aix_use_runtimelinking=no 9267 9268 # Test if we are trying to use run time linking or normal 9269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9270 # have runtime linking enabled, and use it for executables. 9271 # For shared libraries, we enable/disable runtime linking 9272 # depending on the kind of the shared library created - 9273 # when "with_aix_soname,aix_use_runtimelinking" is: 9274 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9275 # "aix,yes" lib.so shared, rtl:yes, for executables 9276 # lib.a static archive 9277 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9278 # lib.a(lib.so.V) shared, rtl:no, for executables 9279 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9280 # lib.a(lib.so.V) shared, rtl:no 9281 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9282 # lib.a static archive 9283 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9284 for ld_flag in $LDFLAGS; do 9285 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9286 aix_use_runtimelinking=yes 9287 break 9288 fi 9289 done 9290 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9291 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9292 # so we don't have lib.a shared libs to link our executables. 9293 # We have to force runtime linking in this case. 9294 aix_use_runtimelinking=yes 9295 LDFLAGS="$LDFLAGS -Wl,-brtl" 9296 fi 9297 ;; 9298 esac 9299 9300 exp_sym_flag='-bexport' 9301 no_entry_flag='-bnoentry' 9302 fi 9303 9304 # When large executables or shared objects are built, AIX ld can 9305 # have problems creating the table of contents. If linking a library 9306 # or program results in "error TOC overflow" add -mminimal-toc to 9307 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9308 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9309 9310 archive_cmds='' 9311 hardcode_direct=yes 9312 hardcode_direct_absolute=yes 9313 hardcode_libdir_separator=':' 9314 link_all_deplibs=yes 9315 file_list_spec='$wl-f,' 9316 case $with_aix_soname,$aix_use_runtimelinking in 9317 aix,*) ;; # traditional, no import file 9318 svr4,* | *,yes) # use import file 9319 # The Import File defines what to hardcode. 9320 hardcode_direct=no 9321 hardcode_direct_absolute=no 9322 ;; 9323 esac 9324 9325 if test yes = "$GCC"; then 9326 case $host_os in aix4.[012]|aix4.[012].*) 9327 # We only want to do this on AIX 4.2 and lower, the check 9328 # below for broken collect2 doesn't work under 4.3+ 9329 collect2name=`$CC -print-prog-name=collect2` 9330 if test -f "$collect2name" && 9331 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9332 then 9333 # We have reworked collect2 9334 : 9335 else 9336 # We have old collect2 9337 hardcode_direct=unsupported 9338 # It fails to find uninstalled libraries when the uninstalled 9339 # path is not listed in the libpath. Setting hardcode_minus_L 9340 # to unsupported forces relinking 9341 hardcode_minus_L=yes 9342 hardcode_libdir_flag_spec='-L$libdir' 9343 hardcode_libdir_separator= 9344 fi 9345 ;; 9346 esac 9347 shared_flag='-shared' 9348 if test yes = "$aix_use_runtimelinking"; then 9349 shared_flag="$shared_flag "'$wl-G' 9350 fi 9351 # Need to ensure runtime linking is disabled for the traditional 9352 # shared library, or the linker may eventually find shared libraries 9353 # /with/ Import File - we do not want to mix them. 9354 shared_flag_aix='-shared' 9355 shared_flag_svr4='-shared $wl-G' 9356 else 9357 # not using gcc 9358 if test ia64 = "$host_cpu"; then 9359 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9360 # chokes on -Wl,-G. The following line is correct: 9361 shared_flag='-G' 9362 else 9363 if test yes = "$aix_use_runtimelinking"; then 9364 shared_flag='$wl-G' 9365 else 9366 shared_flag='$wl-bM:SRE' 9367 fi 9368 shared_flag_aix='$wl-bM:SRE' 9369 shared_flag_svr4='$wl-G' 9370 fi 9371 fi 9372 9373 export_dynamic_flag_spec='$wl-bexpall' 9374 # It seems that -bexpall does not export symbols beginning with 9375 # underscore (_), so it is better to generate a list of symbols to export. 9376 always_export_symbols=yes 9377 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9378 # Warning - without using the other runtime loading flags (-brtl), 9379 # -berok will link without error, but may produce a broken library. 9380 allow_undefined_flag='-berok' 9381 # Determine the default libpath from the value encoded in an 9382 # empty executable. 9383 if test set = "${lt_cv_aix_libpath+set}"; then 9384 aix_libpath=$lt_cv_aix_libpath 9385else 9386 if ${lt_cv_aix_libpath_+:} false; then : 9387 $as_echo_n "(cached) " >&6 9388else 9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9390/* end confdefs.h. */ 9391 9392int 9393main () 9394{ 9395 9396 ; 9397 return 0; 9398} 9399_ACEOF 9400if ac_fn_c_try_link "$LINENO"; then : 9401 9402 lt_aix_libpath_sed=' 9403 /Import File Strings/,/^$/ { 9404 /^0/ { 9405 s/^0 *\([^ ]*\) *$/\1/ 9406 p 9407 } 9408 }' 9409 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9410 # Check for a 64-bit object if we didn't find anything. 9411 if test -z "$lt_cv_aix_libpath_"; then 9412 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9413 fi 9414fi 9415rm -f core conftest.err conftest.$ac_objext \ 9416 conftest$ac_exeext conftest.$ac_ext 9417 if test -z "$lt_cv_aix_libpath_"; then 9418 lt_cv_aix_libpath_=/usr/lib:/lib 9419 fi 9420 9421fi 9422 9423 aix_libpath=$lt_cv_aix_libpath_ 9424fi 9425 9426 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9427 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 9428 else 9429 if test ia64 = "$host_cpu"; then 9430 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9431 allow_undefined_flag="-z nodefs" 9432 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" 9433 else 9434 # Determine the default libpath from the value encoded in an 9435 # empty executable. 9436 if test set = "${lt_cv_aix_libpath+set}"; then 9437 aix_libpath=$lt_cv_aix_libpath 9438else 9439 if ${lt_cv_aix_libpath_+:} false; then : 9440 $as_echo_n "(cached) " >&6 9441else 9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9443/* end confdefs.h. */ 9444 9445int 9446main () 9447{ 9448 9449 ; 9450 return 0; 9451} 9452_ACEOF 9453if ac_fn_c_try_link "$LINENO"; then : 9454 9455 lt_aix_libpath_sed=' 9456 /Import File Strings/,/^$/ { 9457 /^0/ { 9458 s/^0 *\([^ ]*\) *$/\1/ 9459 p 9460 } 9461 }' 9462 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9463 # Check for a 64-bit object if we didn't find anything. 9464 if test -z "$lt_cv_aix_libpath_"; then 9465 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9466 fi 9467fi 9468rm -f core conftest.err conftest.$ac_objext \ 9469 conftest$ac_exeext conftest.$ac_ext 9470 if test -z "$lt_cv_aix_libpath_"; then 9471 lt_cv_aix_libpath_=/usr/lib:/lib 9472 fi 9473 9474fi 9475 9476 aix_libpath=$lt_cv_aix_libpath_ 9477fi 9478 9479 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9480 # Warning - without using the other run time loading flags, 9481 # -berok will link without error, but may produce a broken library. 9482 no_undefined_flag=' $wl-bernotok' 9483 allow_undefined_flag=' $wl-berok' 9484 if test yes = "$with_gnu_ld"; then 9485 # We only use this code for GNU lds that support --whole-archive. 9486 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9487 else 9488 # Exported symbols can be pulled into shared objects from archives 9489 whole_archive_flag_spec='$convenience' 9490 fi 9491 archive_cmds_need_lc=yes 9492 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9493 # -brtl affects multiple linker settings, -berok does not and is overridden later 9494 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9495 if test svr4 != "$with_aix_soname"; then 9496 # This is similar to how AIX traditionally builds its shared libraries. 9497 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' 9498 fi 9499 if test aix != "$with_aix_soname"; then 9500 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' 9501 else 9502 # used by -dlpreopen to get the symbols 9503 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9504 fi 9505 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9506 fi 9507 fi 9508 ;; 9509 9510 amigaos*) 9511 case $host_cpu in 9512 powerpc) 9513 # see comment about AmigaOS4 .so support 9514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9515 archive_expsym_cmds='' 9516 ;; 9517 m68k) 9518 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)' 9519 hardcode_libdir_flag_spec='-L$libdir' 9520 hardcode_minus_L=yes 9521 ;; 9522 esac 9523 ;; 9524 9525 bsdi[45]*) 9526 export_dynamic_flag_spec=-rdynamic 9527 ;; 9528 9529 cygwin* | mingw* | pw32* | cegcc*) 9530 # When not using gcc, we currently assume that we are using 9531 # Microsoft Visual C++. 9532 # hardcode_libdir_flag_spec is actually meaningless, as there is 9533 # no search path for DLLs. 9534 case $cc_basename in 9535 cl*) 9536 # Native MSVC 9537 hardcode_libdir_flag_spec=' ' 9538 allow_undefined_flag=unsupported 9539 always_export_symbols=yes 9540 file_list_spec='@' 9541 # Tell ltmain to make .lib files, not .a files. 9542 libext=lib 9543 # Tell ltmain to make .dll files, not .so files. 9544 shrext_cmds=.dll 9545 # FIXME: Setting linknames here is a bad hack. 9546 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9547 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9548 cp "$export_symbols" "$output_objdir/$soname.def"; 9549 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9550 else 9551 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9552 fi~ 9553 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9554 linknames=' 9555 # The linker will not automatically build a static lib if we build a DLL. 9556 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9557 enable_shared_with_static_runtimes=yes 9558 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9560 # Don't use ranlib 9561 old_postinstall_cmds='chmod 644 $oldlib' 9562 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9563 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9564 case $lt_outputfile in 9565 *.exe|*.EXE) ;; 9566 *) 9567 lt_outputfile=$lt_outputfile.exe 9568 lt_tool_outputfile=$lt_tool_outputfile.exe 9569 ;; 9570 esac~ 9571 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9572 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9573 $RM "$lt_outputfile.manifest"; 9574 fi' 9575 ;; 9576 *) 9577 # Assume MSVC wrapper 9578 hardcode_libdir_flag_spec=' ' 9579 allow_undefined_flag=unsupported 9580 # Tell ltmain to make .lib files, not .a files. 9581 libext=lib 9582 # Tell ltmain to make .dll files, not .so files. 9583 shrext_cmds=.dll 9584 # FIXME: Setting linknames here is a bad hack. 9585 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9586 # The linker will automatically build a .lib file if we build a DLL. 9587 old_archive_from_new_cmds='true' 9588 # FIXME: Should let the user specify the lib program. 9589 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9590 enable_shared_with_static_runtimes=yes 9591 ;; 9592 esac 9593 ;; 9594 9595 darwin* | rhapsody*) 9596 9597 9598 archive_cmds_need_lc=no 9599 hardcode_direct=no 9600 hardcode_automatic=yes 9601 hardcode_shlibpath_var=unsupported 9602 if test yes = "$lt_cv_ld_force_load"; then 9603 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\"`' 9604 9605 else 9606 whole_archive_flag_spec='' 9607 fi 9608 link_all_deplibs=yes 9609 allow_undefined_flag=$_lt_dar_allow_undefined 9610 case $cc_basename in 9611 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9612 *) _lt_dar_can_shared=$GCC ;; 9613 esac 9614 if test yes = "$_lt_dar_can_shared"; then 9615 output_verbose_link_cmd=func_echo_all 9616 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9617 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9618 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" 9619 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" 9620 9621 else 9622 ld_shlibs=no 9623 fi 9624 9625 ;; 9626 9627 dgux*) 9628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9629 hardcode_libdir_flag_spec='-L$libdir' 9630 hardcode_shlibpath_var=no 9631 ;; 9632 9633 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9634 # support. Future versions do this automatically, but an explicit c++rt0.o 9635 # does not break anything, and helps significantly (at the cost of a little 9636 # extra space). 9637 freebsd2.2*) 9638 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9639 hardcode_libdir_flag_spec='-R$libdir' 9640 hardcode_direct=yes 9641 hardcode_shlibpath_var=no 9642 ;; 9643 9644 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9645 freebsd2.*) 9646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9647 hardcode_direct=yes 9648 hardcode_minus_L=yes 9649 hardcode_shlibpath_var=no 9650 ;; 9651 9652 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9653 freebsd* | dragonfly*) 9654 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9655 hardcode_libdir_flag_spec='-R$libdir' 9656 hardcode_direct=yes 9657 hardcode_shlibpath_var=no 9658 ;; 9659 9660 hpux9*) 9661 if test yes = "$GCC"; then 9662 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' 9663 else 9664 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' 9665 fi 9666 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9667 hardcode_libdir_separator=: 9668 hardcode_direct=yes 9669 9670 # hardcode_minus_L: Not really in the search PATH, 9671 # but as the default location of the library. 9672 hardcode_minus_L=yes 9673 export_dynamic_flag_spec='$wl-E' 9674 ;; 9675 9676 hpux10*) 9677 if test yes,no = "$GCC,$with_gnu_ld"; then 9678 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9679 else 9680 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9681 fi 9682 if test no = "$with_gnu_ld"; then 9683 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9684 hardcode_libdir_separator=: 9685 hardcode_direct=yes 9686 hardcode_direct_absolute=yes 9687 export_dynamic_flag_spec='$wl-E' 9688 # hardcode_minus_L: Not really in the search PATH, 9689 # but as the default location of the library. 9690 hardcode_minus_L=yes 9691 fi 9692 ;; 9693 9694 hpux11*) 9695 if test yes,no = "$GCC,$with_gnu_ld"; then 9696 case $host_cpu in 9697 hppa*64*) 9698 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9699 ;; 9700 ia64*) 9701 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9702 ;; 9703 *) 9704 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9705 ;; 9706 esac 9707 else 9708 case $host_cpu in 9709 hppa*64*) 9710 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9711 ;; 9712 ia64*) 9713 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9714 ;; 9715 *) 9716 9717 # Older versions of the 11.00 compiler do not understand -b yet 9718 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9720$as_echo_n "checking if $CC understands -b... " >&6; } 9721if ${lt_cv_prog_compiler__b+:} false; then : 9722 $as_echo_n "(cached) " >&6 9723else 9724 lt_cv_prog_compiler__b=no 9725 save_LDFLAGS=$LDFLAGS 9726 LDFLAGS="$LDFLAGS -b" 9727 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9728 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9729 # The linker can only warn and ignore the option if not recognized 9730 # So say no if there are warnings 9731 if test -s conftest.err; then 9732 # Append any errors to the config.log. 9733 cat conftest.err 1>&5 9734 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9736 if diff conftest.exp conftest.er2 >/dev/null; then 9737 lt_cv_prog_compiler__b=yes 9738 fi 9739 else 9740 lt_cv_prog_compiler__b=yes 9741 fi 9742 fi 9743 $RM -r conftest* 9744 LDFLAGS=$save_LDFLAGS 9745 9746fi 9747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9748$as_echo "$lt_cv_prog_compiler__b" >&6; } 9749 9750if test yes = "$lt_cv_prog_compiler__b"; then 9751 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9752else 9753 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9754fi 9755 9756 ;; 9757 esac 9758 fi 9759 if test no = "$with_gnu_ld"; then 9760 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9761 hardcode_libdir_separator=: 9762 9763 case $host_cpu in 9764 hppa*64*|ia64*) 9765 hardcode_direct=no 9766 hardcode_shlibpath_var=no 9767 ;; 9768 *) 9769 hardcode_direct=yes 9770 hardcode_direct_absolute=yes 9771 export_dynamic_flag_spec='$wl-E' 9772 9773 # hardcode_minus_L: Not really in the search PATH, 9774 # but as the default location of the library. 9775 hardcode_minus_L=yes 9776 ;; 9777 esac 9778 fi 9779 ;; 9780 9781 irix5* | irix6* | nonstopux*) 9782 if test yes = "$GCC"; then 9783 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' 9784 # Try to use the -exported_symbol ld option, if it does not 9785 # work, assume that -exports_file does not work either and 9786 # implicitly export all symbols. 9787 # This should be the same for all languages, so no per-tag cache variable. 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9789$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9790if ${lt_cv_irix_exported_symbol+:} false; then : 9791 $as_echo_n "(cached) " >&6 9792else 9793 save_LDFLAGS=$LDFLAGS 9794 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796/* end confdefs.h. */ 9797int foo (void) { return 0; } 9798_ACEOF 9799if ac_fn_c_try_link "$LINENO"; then : 9800 lt_cv_irix_exported_symbol=yes 9801else 9802 lt_cv_irix_exported_symbol=no 9803fi 9804rm -f core conftest.err conftest.$ac_objext \ 9805 conftest$ac_exeext conftest.$ac_ext 9806 LDFLAGS=$save_LDFLAGS 9807fi 9808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9809$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9810 if test yes = "$lt_cv_irix_exported_symbol"; then 9811 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' 9812 fi 9813 else 9814 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' 9815 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' 9816 fi 9817 archive_cmds_need_lc='no' 9818 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9819 hardcode_libdir_separator=: 9820 inherit_rpath=yes 9821 link_all_deplibs=yes 9822 ;; 9823 9824 linux*) 9825 case $cc_basename in 9826 tcc*) 9827 # Fabrice Bellard et al's Tiny C Compiler 9828 ld_shlibs=yes 9829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9830 ;; 9831 esac 9832 ;; 9833 9834 netbsd*) 9835 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9837 else 9838 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9839 fi 9840 hardcode_libdir_flag_spec='-R$libdir' 9841 hardcode_direct=yes 9842 hardcode_shlibpath_var=no 9843 ;; 9844 9845 newsos6) 9846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9847 hardcode_direct=yes 9848 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9849 hardcode_libdir_separator=: 9850 hardcode_shlibpath_var=no 9851 ;; 9852 9853 *nto* | *qnx*) 9854 ;; 9855 9856 openbsd* | bitrig*) 9857 if test -f /usr/libexec/ld.so; then 9858 hardcode_direct=yes 9859 hardcode_shlibpath_var=no 9860 hardcode_direct_absolute=yes 9861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9863 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9864 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9865 export_dynamic_flag_spec='$wl-E' 9866 else 9867 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9868 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9869 fi 9870 else 9871 ld_shlibs=no 9872 fi 9873 ;; 9874 9875 os2*) 9876 hardcode_libdir_flag_spec='-L$libdir' 9877 hardcode_minus_L=yes 9878 allow_undefined_flag=unsupported 9879 shrext_cmds=.dll 9880 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9881 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9882 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9883 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9884 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9885 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9886 emximp -o $lib $output_objdir/$libname.def' 9887 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9888 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9889 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9890 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9891 prefix_cmds="$SED"~ 9892 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9893 prefix_cmds="$prefix_cmds -e 1d"; 9894 fi~ 9895 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9896 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9897 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9898 emximp -o $lib $output_objdir/$libname.def' 9899 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9900 enable_shared_with_static_runtimes=yes 9901 ;; 9902 9903 osf3*) 9904 if test yes = "$GCC"; then 9905 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9906 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' 9907 else 9908 allow_undefined_flag=' -expect_unresolved \*' 9909 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' 9910 fi 9911 archive_cmds_need_lc='no' 9912 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9913 hardcode_libdir_separator=: 9914 ;; 9915 9916 osf4* | osf5*) # as osf3* with the addition of -msym flag 9917 if test yes = "$GCC"; then 9918 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9919 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' 9920 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9921 else 9922 allow_undefined_flag=' -expect_unresolved \*' 9923 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' 9924 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~ 9925 $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' 9926 9927 # Both c and cxx compiler support -rpath directly 9928 hardcode_libdir_flag_spec='-rpath $libdir' 9929 fi 9930 archive_cmds_need_lc='no' 9931 hardcode_libdir_separator=: 9932 ;; 9933 9934 solaris*) 9935 no_undefined_flag=' -z defs' 9936 if test yes = "$GCC"; then 9937 wlarc='$wl' 9938 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9939 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9940 $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' 9941 else 9942 case `$CC -V 2>&1` in 9943 *"Compilers 5.0"*) 9944 wlarc='' 9945 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9946 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9947 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9948 ;; 9949 *) 9950 wlarc='$wl' 9951 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9953 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9954 ;; 9955 esac 9956 fi 9957 hardcode_libdir_flag_spec='-R$libdir' 9958 hardcode_shlibpath_var=no 9959 case $host_os in 9960 solaris2.[0-5] | solaris2.[0-5].*) ;; 9961 *) 9962 # The compiler driver will combine and reorder linker options, 9963 # but understands '-z linker_flag'. GCC discards it without '$wl', 9964 # but is careful enough not to reorder. 9965 # Supported since Solaris 2.6 (maybe 2.5.1?) 9966 if test yes = "$GCC"; then 9967 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9968 else 9969 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9970 fi 9971 ;; 9972 esac 9973 link_all_deplibs=yes 9974 ;; 9975 9976 sunos4*) 9977 if test sequent = "$host_vendor"; then 9978 # Use $CC to link under sequent, because it throws in some extra .o 9979 # files that make .init and .fini sections work. 9980 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9981 else 9982 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9983 fi 9984 hardcode_libdir_flag_spec='-L$libdir' 9985 hardcode_direct=yes 9986 hardcode_minus_L=yes 9987 hardcode_shlibpath_var=no 9988 ;; 9989 9990 sysv4) 9991 case $host_vendor in 9992 sni) 9993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9994 hardcode_direct=yes # is this really true??? 9995 ;; 9996 siemens) 9997 ## LD is ld it makes a PLAMLIB 9998 ## CC just makes a GrossModule. 9999 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10000 reload_cmds='$CC -r -o $output$reload_objs' 10001 hardcode_direct=no 10002 ;; 10003 motorola) 10004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10005 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10006 ;; 10007 esac 10008 runpath_var='LD_RUN_PATH' 10009 hardcode_shlibpath_var=no 10010 ;; 10011 10012 sysv4.3*) 10013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10014 hardcode_shlibpath_var=no 10015 export_dynamic_flag_spec='-Bexport' 10016 ;; 10017 10018 sysv4*MP*) 10019 if test -d /usr/nec; then 10020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10021 hardcode_shlibpath_var=no 10022 runpath_var=LD_RUN_PATH 10023 hardcode_runpath_var=yes 10024 ld_shlibs=yes 10025 fi 10026 ;; 10027 10028 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10029 no_undefined_flag='$wl-z,text' 10030 archive_cmds_need_lc=no 10031 hardcode_shlibpath_var=no 10032 runpath_var='LD_RUN_PATH' 10033 10034 if test yes = "$GCC"; then 10035 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10036 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10037 else 10038 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10039 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10040 fi 10041 ;; 10042 10043 sysv5* | sco3.2v5* | sco5v6*) 10044 # Note: We CANNOT use -z defs as we might desire, because we do not 10045 # link with -lc, and that would cause any symbols used from libc to 10046 # always be unresolved, which means just about no library would 10047 # ever link correctly. If we're not using GNU ld we use -z text 10048 # though, which does catch some bad symbols but isn't as heavy-handed 10049 # as -z defs. 10050 no_undefined_flag='$wl-z,text' 10051 allow_undefined_flag='$wl-z,nodefs' 10052 archive_cmds_need_lc=no 10053 hardcode_shlibpath_var=no 10054 hardcode_libdir_flag_spec='$wl-R,$libdir' 10055 hardcode_libdir_separator=':' 10056 link_all_deplibs=yes 10057 export_dynamic_flag_spec='$wl-Bexport' 10058 runpath_var='LD_RUN_PATH' 10059 10060 if test yes = "$GCC"; then 10061 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10062 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10063 else 10064 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10065 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10066 fi 10067 ;; 10068 10069 uts4*) 10070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10071 hardcode_libdir_flag_spec='-L$libdir' 10072 hardcode_shlibpath_var=no 10073 ;; 10074 10075 *) 10076 ld_shlibs=no 10077 ;; 10078 esac 10079 10080 if test sni = "$host_vendor"; then 10081 case $host in 10082 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10083 export_dynamic_flag_spec='$wl-Blargedynsym' 10084 ;; 10085 esac 10086 fi 10087 fi 10088 10089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10090$as_echo "$ld_shlibs" >&6; } 10091test no = "$ld_shlibs" && can_build_shared=no 10092 10093with_gnu_ld=$with_gnu_ld 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109# 10110# Do we need to explicitly link libc? 10111# 10112case "x$archive_cmds_need_lc" in 10113x|xyes) 10114 # Assume -lc should be added 10115 archive_cmds_need_lc=yes 10116 10117 if test yes,yes = "$GCC,$enable_shared"; then 10118 case $archive_cmds in 10119 *'~'*) 10120 # FIXME: we may have to deal with multi-command sequences. 10121 ;; 10122 '$CC '*) 10123 # Test whether the compiler implicitly links with -lc since on some 10124 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10125 # to ld, don't add -lc before -lgcc. 10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10127$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10128if ${lt_cv_archive_cmds_need_lc+:} false; then : 10129 $as_echo_n "(cached) " >&6 10130else 10131 $RM conftest* 10132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10133 10134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10135 (eval $ac_compile) 2>&5 10136 ac_status=$? 10137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10138 test $ac_status = 0; } 2>conftest.err; then 10139 soname=conftest 10140 lib=conftest 10141 libobjs=conftest.$ac_objext 10142 deplibs= 10143 wl=$lt_prog_compiler_wl 10144 pic_flag=$lt_prog_compiler_pic 10145 compiler_flags=-v 10146 linker_flags=-v 10147 verstring= 10148 output_objdir=. 10149 libname=conftest 10150 lt_save_allow_undefined_flag=$allow_undefined_flag 10151 allow_undefined_flag= 10152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10153 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10154 ac_status=$? 10155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10156 test $ac_status = 0; } 10157 then 10158 lt_cv_archive_cmds_need_lc=no 10159 else 10160 lt_cv_archive_cmds_need_lc=yes 10161 fi 10162 allow_undefined_flag=$lt_save_allow_undefined_flag 10163 else 10164 cat conftest.err 1>&5 10165 fi 10166 $RM conftest* 10167 10168fi 10169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10170$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10171 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10172 ;; 10173 esac 10174 fi 10175 ;; 10176esac 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10330$as_echo_n "checking dynamic linker characteristics... " >&6; } 10331 10332if test yes = "$GCC"; then 10333 case $host_os in 10334 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10335 *) lt_awk_arg='/^libraries:/' ;; 10336 esac 10337 case $host_os in 10338 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10339 *) lt_sed_strip_eq='s|=/|/|g' ;; 10340 esac 10341 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10342 case $lt_search_path_spec in 10343 *\;*) 10344 # if the path contains ";" then we assume it to be the separator 10345 # otherwise default to the standard path separator (i.e. ":") - it is 10346 # assumed that no part of a normal pathname contains ";" but that should 10347 # okay in the real world where ";" in dirpaths is itself problematic. 10348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10349 ;; 10350 *) 10351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10352 ;; 10353 esac 10354 # Ok, now we have the path, separated by spaces, we can step through it 10355 # and add multilib dir if necessary... 10356 lt_tmp_lt_search_path_spec= 10357 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10358 # ...but if some path component already ends with the multilib dir we assume 10359 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10360 case "$lt_multi_os_dir; $lt_search_path_spec " in 10361 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10362 lt_multi_os_dir= 10363 ;; 10364 esac 10365 for lt_sys_path in $lt_search_path_spec; do 10366 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10367 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10368 elif test -n "$lt_multi_os_dir"; then 10369 test -d "$lt_sys_path" && \ 10370 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10371 fi 10372 done 10373 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10374BEGIN {RS = " "; FS = "/|\n";} { 10375 lt_foo = ""; 10376 lt_count = 0; 10377 for (lt_i = NF; lt_i > 0; lt_i--) { 10378 if ($lt_i != "" && $lt_i != ".") { 10379 if ($lt_i == "..") { 10380 lt_count++; 10381 } else { 10382 if (lt_count == 0) { 10383 lt_foo = "/" $lt_i lt_foo; 10384 } else { 10385 lt_count--; 10386 } 10387 } 10388 } 10389 } 10390 if (lt_foo != "") { lt_freq[lt_foo]++; } 10391 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10392}'` 10393 # AWK program above erroneously prepends '/' to C:/dos/paths 10394 # for these hosts. 10395 case $host_os in 10396 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10397 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10398 esac 10399 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10400else 10401 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10402fi 10403library_names_spec= 10404libname_spec='lib$name' 10405soname_spec= 10406shrext_cmds=.so 10407postinstall_cmds= 10408postuninstall_cmds= 10409finish_cmds= 10410finish_eval= 10411shlibpath_var= 10412shlibpath_overrides_runpath=unknown 10413version_type=none 10414dynamic_linker="$host_os ld.so" 10415sys_lib_dlsearch_path_spec="/lib /usr/lib" 10416need_lib_prefix=unknown 10417hardcode_into_libs=no 10418 10419# when you set need_version to no, make sure it does not cause -set_version 10420# flags to be left without arguments 10421need_version=unknown 10422 10423 10424 10425case $host_os in 10426aix3*) 10427 version_type=linux # correct to gnu/linux during the next big refactor 10428 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10429 shlibpath_var=LIBPATH 10430 10431 # AIX 3 has no versioning support, so we append a major version to the name. 10432 soname_spec='$libname$release$shared_ext$major' 10433 ;; 10434 10435aix[4-9]*) 10436 version_type=linux # correct to gnu/linux during the next big refactor 10437 need_lib_prefix=no 10438 need_version=no 10439 hardcode_into_libs=yes 10440 if test ia64 = "$host_cpu"; then 10441 # AIX 5 supports IA64 10442 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10443 shlibpath_var=LD_LIBRARY_PATH 10444 else 10445 # With GCC up to 2.95.x, collect2 would create an import file 10446 # for dependence libraries. The import file would start with 10447 # the line '#! .'. This would cause the generated library to 10448 # depend on '.', always an invalid library. This was fixed in 10449 # development snapshots of GCC prior to 3.0. 10450 case $host_os in 10451 aix4 | aix4.[01] | aix4.[01].*) 10452 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10453 echo ' yes ' 10454 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10455 : 10456 else 10457 can_build_shared=no 10458 fi 10459 ;; 10460 esac 10461 # Using Import Files as archive members, it is possible to support 10462 # filename-based versioning of shared library archives on AIX. While 10463 # this would work for both with and without runtime linking, it will 10464 # prevent static linking of such archives. So we do filename-based 10465 # shared library versioning with .so extension only, which is used 10466 # when both runtime linking and shared linking is enabled. 10467 # Unfortunately, runtime linking may impact performance, so we do 10468 # not want this to be the default eventually. Also, we use the 10469 # versioned .so libs for executables only if there is the -brtl 10470 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10471 # To allow for filename-based versioning support, we need to create 10472 # libNAME.so.V as an archive file, containing: 10473 # *) an Import File, referring to the versioned filename of the 10474 # archive as well as the shared archive member, telling the 10475 # bitwidth (32 or 64) of that shared object, and providing the 10476 # list of exported symbols of that shared object, eventually 10477 # decorated with the 'weak' keyword 10478 # *) the shared object with the F_LOADONLY flag set, to really avoid 10479 # it being seen by the linker. 10480 # At run time we better use the real file rather than another symlink, 10481 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10482 10483 case $with_aix_soname,$aix_use_runtimelinking in 10484 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10485 # soname into executable. Probably we can add versioning support to 10486 # collect2, so additional links can be useful in future. 10487 aix,yes) # traditional libtool 10488 dynamic_linker='AIX unversionable lib.so' 10489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10490 # instead of lib<name>.a to let people know that these are not 10491 # typical AIX shared libraries. 10492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10493 ;; 10494 aix,no) # traditional AIX only 10495 dynamic_linker='AIX lib.a(lib.so.V)' 10496 # We preserve .a as extension for shared libraries through AIX4.2 10497 # and later when we are not doing run time linking. 10498 library_names_spec='$libname$release.a $libname.a' 10499 soname_spec='$libname$release$shared_ext$major' 10500 ;; 10501 svr4,*) # full svr4 only 10502 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10503 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10504 # We do not specify a path in Import Files, so LIBPATH fires. 10505 shlibpath_overrides_runpath=yes 10506 ;; 10507 *,yes) # both, prefer svr4 10508 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10509 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10510 # unpreferred sharedlib libNAME.a needs extra handling 10511 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"' 10512 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"' 10513 # We do not specify a path in Import Files, so LIBPATH fires. 10514 shlibpath_overrides_runpath=yes 10515 ;; 10516 *,no) # both, prefer aix 10517 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10518 library_names_spec='$libname$release.a $libname.a' 10519 soname_spec='$libname$release$shared_ext$major' 10520 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10521 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)' 10522 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"' 10523 ;; 10524 esac 10525 shlibpath_var=LIBPATH 10526 fi 10527 ;; 10528 10529amigaos*) 10530 case $host_cpu in 10531 powerpc) 10532 # Since July 2007 AmigaOS4 officially supports .so libraries. 10533 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10535 ;; 10536 m68k) 10537 library_names_spec='$libname.ixlibrary $libname.a' 10538 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10539 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' 10540 ;; 10541 esac 10542 ;; 10543 10544beos*) 10545 library_names_spec='$libname$shared_ext' 10546 dynamic_linker="$host_os ld.so" 10547 shlibpath_var=LIBRARY_PATH 10548 ;; 10549 10550bsdi[45]*) 10551 version_type=linux # correct to gnu/linux during the next big refactor 10552 need_version=no 10553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10554 soname_spec='$libname$release$shared_ext$major' 10555 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10556 shlibpath_var=LD_LIBRARY_PATH 10557 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10558 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10559 # the default ld.so.conf also contains /usr/contrib/lib and 10560 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10561 # libtool to hard-code these into programs 10562 ;; 10563 10564cygwin* | mingw* | pw32* | cegcc*) 10565 version_type=windows 10566 shrext_cmds=.dll 10567 need_version=no 10568 need_lib_prefix=no 10569 10570 case $GCC,$cc_basename in 10571 yes,*) 10572 # gcc 10573 library_names_spec='$libname.dll.a' 10574 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10575 postinstall_cmds='base_file=`basename \$file`~ 10576 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10577 dldir=$destdir/`dirname \$dlpath`~ 10578 test -d \$dldir || mkdir -p \$dldir~ 10579 $install_prog $dir/$dlname \$dldir/$dlname~ 10580 chmod a+x \$dldir/$dlname~ 10581 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10582 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10583 fi' 10584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10585 dlpath=$dir/\$dldll~ 10586 $RM \$dlpath' 10587 shlibpath_overrides_runpath=yes 10588 10589 case $host_os in 10590 cygwin*) 10591 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10592 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10593 10594 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10595 ;; 10596 mingw* | cegcc*) 10597 # MinGW DLLs use traditional 'lib' prefix 10598 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10599 ;; 10600 pw32*) 10601 # pw32 DLLs use 'pw' prefix rather than 'lib' 10602 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10603 ;; 10604 esac 10605 dynamic_linker='Win32 ld.exe' 10606 ;; 10607 10608 *,cl*) 10609 # Native MSVC 10610 libname_spec='$name' 10611 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10612 library_names_spec='$libname.dll.lib' 10613 10614 case $build_os in 10615 mingw*) 10616 sys_lib_search_path_spec= 10617 lt_save_ifs=$IFS 10618 IFS=';' 10619 for lt_path in $LIB 10620 do 10621 IFS=$lt_save_ifs 10622 # Let DOS variable expansion print the short 8.3 style file name. 10623 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10624 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10625 done 10626 IFS=$lt_save_ifs 10627 # Convert to MSYS style. 10628 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10629 ;; 10630 cygwin*) 10631 # Convert to unix form, then to dos form, then back to unix form 10632 # but this time dos style (no spaces!) so that the unix form looks 10633 # like /cygdrive/c/PROGRA~1:/cygdr... 10634 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10635 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10636 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10637 ;; 10638 *) 10639 sys_lib_search_path_spec=$LIB 10640 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10641 # It is most probably a Windows format PATH. 10642 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10643 else 10644 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10645 fi 10646 # FIXME: find the short name or the path components, as spaces are 10647 # common. (e.g. "Program Files" -> "PROGRA~1") 10648 ;; 10649 esac 10650 10651 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10652 postinstall_cmds='base_file=`basename \$file`~ 10653 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10654 dldir=$destdir/`dirname \$dlpath`~ 10655 test -d \$dldir || mkdir -p \$dldir~ 10656 $install_prog $dir/$dlname \$dldir/$dlname' 10657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10658 dlpath=$dir/\$dldll~ 10659 $RM \$dlpath' 10660 shlibpath_overrides_runpath=yes 10661 dynamic_linker='Win32 link.exe' 10662 ;; 10663 10664 *) 10665 # Assume MSVC wrapper 10666 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10667 dynamic_linker='Win32 ld.exe' 10668 ;; 10669 esac 10670 # FIXME: first we should search . and the directory the executable is in 10671 shlibpath_var=PATH 10672 ;; 10673 10674darwin* | rhapsody*) 10675 dynamic_linker="$host_os dyld" 10676 version_type=darwin 10677 need_lib_prefix=no 10678 need_version=no 10679 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10680 soname_spec='$libname$release$major$shared_ext' 10681 shlibpath_overrides_runpath=yes 10682 shlibpath_var=DYLD_LIBRARY_PATH 10683 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10684 10685 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10686 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10687 ;; 10688 10689dgux*) 10690 version_type=linux # correct to gnu/linux during the next big refactor 10691 need_lib_prefix=no 10692 need_version=no 10693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10694 soname_spec='$libname$release$shared_ext$major' 10695 shlibpath_var=LD_LIBRARY_PATH 10696 ;; 10697 10698freebsd* | dragonfly*) 10699 # DragonFly does not have aout. When/if they implement a new 10700 # versioning mechanism, adjust this. 10701 if test -x /usr/bin/objformat; then 10702 objformat=`/usr/bin/objformat` 10703 else 10704 case $host_os in 10705 freebsd[23].*) objformat=aout ;; 10706 *) objformat=elf ;; 10707 esac 10708 fi 10709 version_type=freebsd-$objformat 10710 case $version_type in 10711 freebsd-elf*) 10712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10713 soname_spec='$libname$release$shared_ext$major' 10714 need_version=no 10715 need_lib_prefix=no 10716 ;; 10717 freebsd-*) 10718 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10719 need_version=yes 10720 ;; 10721 esac 10722 shlibpath_var=LD_LIBRARY_PATH 10723 case $host_os in 10724 freebsd2.*) 10725 shlibpath_overrides_runpath=yes 10726 ;; 10727 freebsd3.[01]* | freebsdelf3.[01]*) 10728 shlibpath_overrides_runpath=yes 10729 hardcode_into_libs=yes 10730 ;; 10731 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10732 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10733 shlibpath_overrides_runpath=no 10734 hardcode_into_libs=yes 10735 ;; 10736 *) # from 4.6 on, and DragonFly 10737 shlibpath_overrides_runpath=yes 10738 hardcode_into_libs=yes 10739 ;; 10740 esac 10741 ;; 10742 10743haiku*) 10744 version_type=linux # correct to gnu/linux during the next big refactor 10745 need_lib_prefix=no 10746 need_version=no 10747 dynamic_linker="$host_os runtime_loader" 10748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10749 soname_spec='$libname$release$shared_ext$major' 10750 shlibpath_var=LIBRARY_PATH 10751 shlibpath_overrides_runpath=no 10752 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10753 hardcode_into_libs=yes 10754 ;; 10755 10756hpux9* | hpux10* | hpux11*) 10757 # Give a soname corresponding to the major version so that dld.sl refuses to 10758 # link against other versions. 10759 version_type=sunos 10760 need_lib_prefix=no 10761 need_version=no 10762 case $host_cpu in 10763 ia64*) 10764 shrext_cmds='.so' 10765 hardcode_into_libs=yes 10766 dynamic_linker="$host_os dld.so" 10767 shlibpath_var=LD_LIBRARY_PATH 10768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10770 soname_spec='$libname$release$shared_ext$major' 10771 if test 32 = "$HPUX_IA64_MODE"; then 10772 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10773 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10774 else 10775 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10776 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10777 fi 10778 ;; 10779 hppa*64*) 10780 shrext_cmds='.sl' 10781 hardcode_into_libs=yes 10782 dynamic_linker="$host_os dld.sl" 10783 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10786 soname_spec='$libname$release$shared_ext$major' 10787 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10789 ;; 10790 *) 10791 shrext_cmds='.sl' 10792 dynamic_linker="$host_os dld.sl" 10793 shlibpath_var=SHLIB_PATH 10794 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10795 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10796 soname_spec='$libname$release$shared_ext$major' 10797 ;; 10798 esac 10799 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10800 postinstall_cmds='chmod 555 $lib' 10801 # or fails outright, so override atomically: 10802 install_override_mode=555 10803 ;; 10804 10805interix[3-9]*) 10806 version_type=linux # correct to gnu/linux during the next big refactor 10807 need_lib_prefix=no 10808 need_version=no 10809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10810 soname_spec='$libname$release$shared_ext$major' 10811 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10812 shlibpath_var=LD_LIBRARY_PATH 10813 shlibpath_overrides_runpath=no 10814 hardcode_into_libs=yes 10815 ;; 10816 10817irix5* | irix6* | nonstopux*) 10818 case $host_os in 10819 nonstopux*) version_type=nonstopux ;; 10820 *) 10821 if test yes = "$lt_cv_prog_gnu_ld"; then 10822 version_type=linux # correct to gnu/linux during the next big refactor 10823 else 10824 version_type=irix 10825 fi ;; 10826 esac 10827 need_lib_prefix=no 10828 need_version=no 10829 soname_spec='$libname$release$shared_ext$major' 10830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10831 case $host_os in 10832 irix5* | nonstopux*) 10833 libsuff= shlibsuff= 10834 ;; 10835 *) 10836 case $LD in # libtool.m4 will add one of these switches to LD 10837 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10838 libsuff= shlibsuff= libmagic=32-bit;; 10839 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10840 libsuff=32 shlibsuff=N32 libmagic=N32;; 10841 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10842 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10843 *) libsuff= shlibsuff= libmagic=never-match;; 10844 esac 10845 ;; 10846 esac 10847 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10848 shlibpath_overrides_runpath=no 10849 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10850 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10851 hardcode_into_libs=yes 10852 ;; 10853 10854# No shared lib support for Linux oldld, aout, or coff. 10855linux*oldld* | linux*aout* | linux*coff*) 10856 dynamic_linker=no 10857 ;; 10858 10859linux*android*) 10860 version_type=none # Android doesn't support versioned libraries. 10861 need_lib_prefix=no 10862 need_version=no 10863 library_names_spec='$libname$release$shared_ext' 10864 soname_spec='$libname$release$shared_ext' 10865 finish_cmds= 10866 shlibpath_var=LD_LIBRARY_PATH 10867 shlibpath_overrides_runpath=yes 10868 10869 # This implies no fast_install, which is unacceptable. 10870 # Some rework will be needed to allow for fast_install 10871 # before this can be enabled. 10872 hardcode_into_libs=yes 10873 10874 dynamic_linker='Android linker' 10875 # Don't embed -rpath directories since the linker doesn't support them. 10876 hardcode_libdir_flag_spec='-L$libdir' 10877 ;; 10878 10879# This must be glibc/ELF. 10880linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10881 version_type=linux # correct to gnu/linux during the next big refactor 10882 need_lib_prefix=no 10883 need_version=no 10884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10885 soname_spec='$libname$release$shared_ext$major' 10886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10887 shlibpath_var=LD_LIBRARY_PATH 10888 shlibpath_overrides_runpath=no 10889 10890 # Some binutils ld are patched to set DT_RUNPATH 10891 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10892 $as_echo_n "(cached) " >&6 10893else 10894 lt_cv_shlibpath_overrides_runpath=no 10895 save_LDFLAGS=$LDFLAGS 10896 save_libdir=$libdir 10897 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10898 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10900/* end confdefs.h. */ 10901 10902int 10903main () 10904{ 10905 10906 ; 10907 return 0; 10908} 10909_ACEOF 10910if ac_fn_c_try_link "$LINENO"; then : 10911 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10912 lt_cv_shlibpath_overrides_runpath=yes 10913fi 10914fi 10915rm -f core conftest.err conftest.$ac_objext \ 10916 conftest$ac_exeext conftest.$ac_ext 10917 LDFLAGS=$save_LDFLAGS 10918 libdir=$save_libdir 10919 10920fi 10921 10922 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10923 10924 # This implies no fast_install, which is unacceptable. 10925 # Some rework will be needed to allow for fast_install 10926 # before this can be enabled. 10927 hardcode_into_libs=yes 10928 10929 # Add ABI-specific directories to the system library path. 10930 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10931 10932 # Ideally, we could use ldconfig to report *all* directores which are 10933 # searched for libraries, however this is still not possible. Aside from not 10934 # being certain /sbin/ldconfig is available, command 10935 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10936 # even though it is searched at run-time. Try to do the best guess by 10937 # appending ld.so.conf contents (and includes) to the search path. 10938 if test -f /etc/ld.so.conf; then 10939 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' ' '` 10940 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10941 fi 10942 10943 # We used to test for /lib/ld.so.1 and disable shared libraries on 10944 # powerpc, because MkLinux only supported shared libraries with the 10945 # GNU dynamic linker. Since this was broken with cross compilers, 10946 # most powerpc-linux boxes support dynamic linking these days and 10947 # people can always --disable-shared, the test was removed, and we 10948 # assume the GNU/Linux dynamic linker is in use. 10949 dynamic_linker='GNU/Linux ld.so' 10950 ;; 10951 10952netbsd*) 10953 version_type=sunos 10954 need_lib_prefix=no 10955 need_version=no 10956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10957 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10959 dynamic_linker='NetBSD (a.out) ld.so' 10960 else 10961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10962 soname_spec='$libname$release$shared_ext$major' 10963 dynamic_linker='NetBSD ld.elf_so' 10964 fi 10965 shlibpath_var=LD_LIBRARY_PATH 10966 shlibpath_overrides_runpath=yes 10967 hardcode_into_libs=yes 10968 ;; 10969 10970newsos6) 10971 version_type=linux # correct to gnu/linux during the next big refactor 10972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10973 shlibpath_var=LD_LIBRARY_PATH 10974 shlibpath_overrides_runpath=yes 10975 ;; 10976 10977*nto* | *qnx*) 10978 version_type=qnx 10979 need_lib_prefix=no 10980 need_version=no 10981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10982 soname_spec='$libname$release$shared_ext$major' 10983 shlibpath_var=LD_LIBRARY_PATH 10984 shlibpath_overrides_runpath=no 10985 hardcode_into_libs=yes 10986 dynamic_linker='ldqnx.so' 10987 ;; 10988 10989openbsd* | bitrig*) 10990 version_type=sunos 10991 sys_lib_dlsearch_path_spec=/usr/lib 10992 need_lib_prefix=no 10993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10994 need_version=no 10995 else 10996 need_version=yes 10997 fi 10998 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11000 shlibpath_var=LD_LIBRARY_PATH 11001 shlibpath_overrides_runpath=yes 11002 ;; 11003 11004os2*) 11005 libname_spec='$name' 11006 version_type=windows 11007 shrext_cmds=.dll 11008 need_version=no 11009 need_lib_prefix=no 11010 # OS/2 can only load a DLL with a base name of 8 characters or less. 11011 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11012 v=$($ECHO $release$versuffix | tr -d .-); 11013 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11014 $ECHO $n$v`$shared_ext' 11015 library_names_spec='${libname}_dll.$libext' 11016 dynamic_linker='OS/2 ld.exe' 11017 shlibpath_var=BEGINLIBPATH 11018 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11020 postinstall_cmds='base_file=`basename \$file`~ 11021 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11022 dldir=$destdir/`dirname \$dlpath`~ 11023 test -d \$dldir || mkdir -p \$dldir~ 11024 $install_prog $dir/$dlname \$dldir/$dlname~ 11025 chmod a+x \$dldir/$dlname~ 11026 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11027 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11028 fi' 11029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11030 dlpath=$dir/\$dldll~ 11031 $RM \$dlpath' 11032 ;; 11033 11034osf3* | osf4* | osf5*) 11035 version_type=osf 11036 need_lib_prefix=no 11037 need_version=no 11038 soname_spec='$libname$release$shared_ext$major' 11039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11040 shlibpath_var=LD_LIBRARY_PATH 11041 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11043 ;; 11044 11045rdos*) 11046 dynamic_linker=no 11047 ;; 11048 11049solaris*) 11050 version_type=linux # correct to gnu/linux during the next big refactor 11051 need_lib_prefix=no 11052 need_version=no 11053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11054 soname_spec='$libname$release$shared_ext$major' 11055 shlibpath_var=LD_LIBRARY_PATH 11056 shlibpath_overrides_runpath=yes 11057 hardcode_into_libs=yes 11058 # ldd complains unless libraries are executable 11059 postinstall_cmds='chmod +x $lib' 11060 ;; 11061 11062sunos4*) 11063 version_type=sunos 11064 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11065 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11066 shlibpath_var=LD_LIBRARY_PATH 11067 shlibpath_overrides_runpath=yes 11068 if test yes = "$with_gnu_ld"; then 11069 need_lib_prefix=no 11070 fi 11071 need_version=yes 11072 ;; 11073 11074sysv4 | sysv4.3*) 11075 version_type=linux # correct to gnu/linux during the next big refactor 11076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11077 soname_spec='$libname$release$shared_ext$major' 11078 shlibpath_var=LD_LIBRARY_PATH 11079 case $host_vendor in 11080 sni) 11081 shlibpath_overrides_runpath=no 11082 need_lib_prefix=no 11083 runpath_var=LD_RUN_PATH 11084 ;; 11085 siemens) 11086 need_lib_prefix=no 11087 ;; 11088 motorola) 11089 need_lib_prefix=no 11090 need_version=no 11091 shlibpath_overrides_runpath=no 11092 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11093 ;; 11094 esac 11095 ;; 11096 11097sysv4*MP*) 11098 if test -d /usr/nec; then 11099 version_type=linux # correct to gnu/linux during the next big refactor 11100 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11101 soname_spec='$libname$shared_ext.$major' 11102 shlibpath_var=LD_LIBRARY_PATH 11103 fi 11104 ;; 11105 11106sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11107 version_type=sco 11108 need_lib_prefix=no 11109 need_version=no 11110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11111 soname_spec='$libname$release$shared_ext$major' 11112 shlibpath_var=LD_LIBRARY_PATH 11113 shlibpath_overrides_runpath=yes 11114 hardcode_into_libs=yes 11115 if test yes = "$with_gnu_ld"; then 11116 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11117 else 11118 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11119 case $host_os in 11120 sco3.2v5*) 11121 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11122 ;; 11123 esac 11124 fi 11125 sys_lib_dlsearch_path_spec='/usr/lib' 11126 ;; 11127 11128tpf*) 11129 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11130 version_type=linux # correct to gnu/linux during the next big refactor 11131 need_lib_prefix=no 11132 need_version=no 11133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11134 shlibpath_var=LD_LIBRARY_PATH 11135 shlibpath_overrides_runpath=no 11136 hardcode_into_libs=yes 11137 ;; 11138 11139uts4*) 11140 version_type=linux # correct to gnu/linux during the next big refactor 11141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11142 soname_spec='$libname$release$shared_ext$major' 11143 shlibpath_var=LD_LIBRARY_PATH 11144 ;; 11145 11146*) 11147 dynamic_linker=no 11148 ;; 11149esac 11150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11151$as_echo "$dynamic_linker" >&6; } 11152test no = "$dynamic_linker" && can_build_shared=no 11153 11154variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11155if test yes = "$GCC"; then 11156 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11157fi 11158 11159if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11160 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11161fi 11162 11163if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11164 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11165fi 11166 11167# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11168configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11169 11170# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11171func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11172 11173# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11174configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11273$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11274hardcode_action= 11275if test -n "$hardcode_libdir_flag_spec" || 11276 test -n "$runpath_var" || 11277 test yes = "$hardcode_automatic"; then 11278 11279 # We can hardcode non-existent directories. 11280 if test no != "$hardcode_direct" && 11281 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11282 # have to relink, otherwise we might link with an installed library 11283 # when we should be linking with a yet-to-be-installed one 11284 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11285 test no != "$hardcode_minus_L"; then 11286 # Linking always hardcodes the temporary library directory. 11287 hardcode_action=relink 11288 else 11289 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11290 hardcode_action=immediate 11291 fi 11292else 11293 # We cannot hardcode anything, or else we can only hardcode existing 11294 # directories. 11295 hardcode_action=unsupported 11296fi 11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11298$as_echo "$hardcode_action" >&6; } 11299 11300if test relink = "$hardcode_action" || 11301 test yes = "$inherit_rpath"; then 11302 # Fast installation is not supported 11303 enable_fast_install=no 11304elif test yes = "$shlibpath_overrides_runpath" || 11305 test no = "$enable_shared"; then 11306 # Fast installation is not necessary 11307 enable_fast_install=needless 11308fi 11309 11310 11311 11312 11313 11314 11315 if test yes != "$enable_dlopen"; then 11316 enable_dlopen=unknown 11317 enable_dlopen_self=unknown 11318 enable_dlopen_self_static=unknown 11319else 11320 lt_cv_dlopen=no 11321 lt_cv_dlopen_libs= 11322 11323 case $host_os in 11324 beos*) 11325 lt_cv_dlopen=load_add_on 11326 lt_cv_dlopen_libs= 11327 lt_cv_dlopen_self=yes 11328 ;; 11329 11330 mingw* | pw32* | cegcc*) 11331 lt_cv_dlopen=LoadLibrary 11332 lt_cv_dlopen_libs= 11333 ;; 11334 11335 cygwin*) 11336 lt_cv_dlopen=dlopen 11337 lt_cv_dlopen_libs= 11338 ;; 11339 11340 darwin*) 11341 # if libdl is installed we need to link against it 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11343$as_echo_n "checking for dlopen in -ldl... " >&6; } 11344if ${ac_cv_lib_dl_dlopen+:} false; then : 11345 $as_echo_n "(cached) " >&6 11346else 11347 ac_check_lib_save_LIBS=$LIBS 11348LIBS="-ldl $LIBS" 11349cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11350/* end confdefs.h. */ 11351 11352/* Override any GCC internal prototype to avoid an error. 11353 Use char because int might match the return type of a GCC 11354 builtin and then its argument prototype would still apply. */ 11355#ifdef __cplusplus 11356extern "C" 11357#endif 11358char dlopen (); 11359int 11360main () 11361{ 11362return dlopen (); 11363 ; 11364 return 0; 11365} 11366_ACEOF 11367if ac_fn_c_try_link "$LINENO"; then : 11368 ac_cv_lib_dl_dlopen=yes 11369else 11370 ac_cv_lib_dl_dlopen=no 11371fi 11372rm -f core conftest.err conftest.$ac_objext \ 11373 conftest$ac_exeext conftest.$ac_ext 11374LIBS=$ac_check_lib_save_LIBS 11375fi 11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11377$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11378if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11379 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11380else 11381 11382 lt_cv_dlopen=dyld 11383 lt_cv_dlopen_libs= 11384 lt_cv_dlopen_self=yes 11385 11386fi 11387 11388 ;; 11389 11390 tpf*) 11391 # Don't try to run any link tests for TPF. We know it's impossible 11392 # because TPF is a cross-compiler, and we know how we open DSOs. 11393 lt_cv_dlopen=dlopen 11394 lt_cv_dlopen_libs= 11395 lt_cv_dlopen_self=no 11396 ;; 11397 11398 *) 11399 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11400if test "x$ac_cv_func_shl_load" = xyes; then : 11401 lt_cv_dlopen=shl_load 11402else 11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11404$as_echo_n "checking for shl_load in -ldld... " >&6; } 11405if ${ac_cv_lib_dld_shl_load+:} false; then : 11406 $as_echo_n "(cached) " >&6 11407else 11408 ac_check_lib_save_LIBS=$LIBS 11409LIBS="-ldld $LIBS" 11410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11411/* end confdefs.h. */ 11412 11413/* Override any GCC internal prototype to avoid an error. 11414 Use char because int might match the return type of a GCC 11415 builtin and then its argument prototype would still apply. */ 11416#ifdef __cplusplus 11417extern "C" 11418#endif 11419char shl_load (); 11420int 11421main () 11422{ 11423return shl_load (); 11424 ; 11425 return 0; 11426} 11427_ACEOF 11428if ac_fn_c_try_link "$LINENO"; then : 11429 ac_cv_lib_dld_shl_load=yes 11430else 11431 ac_cv_lib_dld_shl_load=no 11432fi 11433rm -f core conftest.err conftest.$ac_objext \ 11434 conftest$ac_exeext conftest.$ac_ext 11435LIBS=$ac_check_lib_save_LIBS 11436fi 11437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11438$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11439if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11440 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11441else 11442 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11443if test "x$ac_cv_func_dlopen" = xyes; then : 11444 lt_cv_dlopen=dlopen 11445else 11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11447$as_echo_n "checking for dlopen in -ldl... " >&6; } 11448if ${ac_cv_lib_dl_dlopen+:} false; then : 11449 $as_echo_n "(cached) " >&6 11450else 11451 ac_check_lib_save_LIBS=$LIBS 11452LIBS="-ldl $LIBS" 11453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11454/* end confdefs.h. */ 11455 11456/* Override any GCC internal prototype to avoid an error. 11457 Use char because int might match the return type of a GCC 11458 builtin and then its argument prototype would still apply. */ 11459#ifdef __cplusplus 11460extern "C" 11461#endif 11462char dlopen (); 11463int 11464main () 11465{ 11466return dlopen (); 11467 ; 11468 return 0; 11469} 11470_ACEOF 11471if ac_fn_c_try_link "$LINENO"; then : 11472 ac_cv_lib_dl_dlopen=yes 11473else 11474 ac_cv_lib_dl_dlopen=no 11475fi 11476rm -f core conftest.err conftest.$ac_objext \ 11477 conftest$ac_exeext conftest.$ac_ext 11478LIBS=$ac_check_lib_save_LIBS 11479fi 11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11481$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11482if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11483 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11484else 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11486$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11487if ${ac_cv_lib_svld_dlopen+:} false; then : 11488 $as_echo_n "(cached) " >&6 11489else 11490 ac_check_lib_save_LIBS=$LIBS 11491LIBS="-lsvld $LIBS" 11492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11493/* end confdefs.h. */ 11494 11495/* Override any GCC internal prototype to avoid an error. 11496 Use char because int might match the return type of a GCC 11497 builtin and then its argument prototype would still apply. */ 11498#ifdef __cplusplus 11499extern "C" 11500#endif 11501char dlopen (); 11502int 11503main () 11504{ 11505return dlopen (); 11506 ; 11507 return 0; 11508} 11509_ACEOF 11510if ac_fn_c_try_link "$LINENO"; then : 11511 ac_cv_lib_svld_dlopen=yes 11512else 11513 ac_cv_lib_svld_dlopen=no 11514fi 11515rm -f core conftest.err conftest.$ac_objext \ 11516 conftest$ac_exeext conftest.$ac_ext 11517LIBS=$ac_check_lib_save_LIBS 11518fi 11519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11520$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11521if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11522 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11523else 11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11525$as_echo_n "checking for dld_link in -ldld... " >&6; } 11526if ${ac_cv_lib_dld_dld_link+:} false; then : 11527 $as_echo_n "(cached) " >&6 11528else 11529 ac_check_lib_save_LIBS=$LIBS 11530LIBS="-ldld $LIBS" 11531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11532/* end confdefs.h. */ 11533 11534/* Override any GCC internal prototype to avoid an error. 11535 Use char because int might match the return type of a GCC 11536 builtin and then its argument prototype would still apply. */ 11537#ifdef __cplusplus 11538extern "C" 11539#endif 11540char dld_link (); 11541int 11542main () 11543{ 11544return dld_link (); 11545 ; 11546 return 0; 11547} 11548_ACEOF 11549if ac_fn_c_try_link "$LINENO"; then : 11550 ac_cv_lib_dld_dld_link=yes 11551else 11552 ac_cv_lib_dld_dld_link=no 11553fi 11554rm -f core conftest.err conftest.$ac_objext \ 11555 conftest$ac_exeext conftest.$ac_ext 11556LIBS=$ac_check_lib_save_LIBS 11557fi 11558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11559$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11560if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11561 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11562fi 11563 11564 11565fi 11566 11567 11568fi 11569 11570 11571fi 11572 11573 11574fi 11575 11576 11577fi 11578 11579 ;; 11580 esac 11581 11582 if test no = "$lt_cv_dlopen"; then 11583 enable_dlopen=no 11584 else 11585 enable_dlopen=yes 11586 fi 11587 11588 case $lt_cv_dlopen in 11589 dlopen) 11590 save_CPPFLAGS=$CPPFLAGS 11591 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11592 11593 save_LDFLAGS=$LDFLAGS 11594 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11595 11596 save_LIBS=$LIBS 11597 LIBS="$lt_cv_dlopen_libs $LIBS" 11598 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11600$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11601if ${lt_cv_dlopen_self+:} false; then : 11602 $as_echo_n "(cached) " >&6 11603else 11604 if test yes = "$cross_compiling"; then : 11605 lt_cv_dlopen_self=cross 11606else 11607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11608 lt_status=$lt_dlunknown 11609 cat > conftest.$ac_ext <<_LT_EOF 11610#line $LINENO "configure" 11611#include "confdefs.h" 11612 11613#if HAVE_DLFCN_H 11614#include <dlfcn.h> 11615#endif 11616 11617#include <stdio.h> 11618 11619#ifdef RTLD_GLOBAL 11620# define LT_DLGLOBAL RTLD_GLOBAL 11621#else 11622# ifdef DL_GLOBAL 11623# define LT_DLGLOBAL DL_GLOBAL 11624# else 11625# define LT_DLGLOBAL 0 11626# endif 11627#endif 11628 11629/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11630 find out it does not work in some platform. */ 11631#ifndef LT_DLLAZY_OR_NOW 11632# ifdef RTLD_LAZY 11633# define LT_DLLAZY_OR_NOW RTLD_LAZY 11634# else 11635# ifdef DL_LAZY 11636# define LT_DLLAZY_OR_NOW DL_LAZY 11637# else 11638# ifdef RTLD_NOW 11639# define LT_DLLAZY_OR_NOW RTLD_NOW 11640# else 11641# ifdef DL_NOW 11642# define LT_DLLAZY_OR_NOW DL_NOW 11643# else 11644# define LT_DLLAZY_OR_NOW 0 11645# endif 11646# endif 11647# endif 11648# endif 11649#endif 11650 11651/* When -fvisibility=hidden is used, assume the code has been annotated 11652 correspondingly for the symbols needed. */ 11653#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11654int fnord () __attribute__((visibility("default"))); 11655#endif 11656 11657int fnord () { return 42; } 11658int main () 11659{ 11660 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11661 int status = $lt_dlunknown; 11662 11663 if (self) 11664 { 11665 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11666 else 11667 { 11668 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11669 else puts (dlerror ()); 11670 } 11671 /* dlclose (self); */ 11672 } 11673 else 11674 puts (dlerror ()); 11675 11676 return status; 11677} 11678_LT_EOF 11679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11680 (eval $ac_link) 2>&5 11681 ac_status=$? 11682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11683 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11684 (./conftest; exit; ) >&5 2>/dev/null 11685 lt_status=$? 11686 case x$lt_status in 11687 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11688 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11689 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11690 esac 11691 else : 11692 # compilation failed 11693 lt_cv_dlopen_self=no 11694 fi 11695fi 11696rm -fr conftest* 11697 11698 11699fi 11700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11701$as_echo "$lt_cv_dlopen_self" >&6; } 11702 11703 if test yes = "$lt_cv_dlopen_self"; then 11704 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11706$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11707if ${lt_cv_dlopen_self_static+:} false; then : 11708 $as_echo_n "(cached) " >&6 11709else 11710 if test yes = "$cross_compiling"; then : 11711 lt_cv_dlopen_self_static=cross 11712else 11713 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11714 lt_status=$lt_dlunknown 11715 cat > conftest.$ac_ext <<_LT_EOF 11716#line $LINENO "configure" 11717#include "confdefs.h" 11718 11719#if HAVE_DLFCN_H 11720#include <dlfcn.h> 11721#endif 11722 11723#include <stdio.h> 11724 11725#ifdef RTLD_GLOBAL 11726# define LT_DLGLOBAL RTLD_GLOBAL 11727#else 11728# ifdef DL_GLOBAL 11729# define LT_DLGLOBAL DL_GLOBAL 11730# else 11731# define LT_DLGLOBAL 0 11732# endif 11733#endif 11734 11735/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11736 find out it does not work in some platform. */ 11737#ifndef LT_DLLAZY_OR_NOW 11738# ifdef RTLD_LAZY 11739# define LT_DLLAZY_OR_NOW RTLD_LAZY 11740# else 11741# ifdef DL_LAZY 11742# define LT_DLLAZY_OR_NOW DL_LAZY 11743# else 11744# ifdef RTLD_NOW 11745# define LT_DLLAZY_OR_NOW RTLD_NOW 11746# else 11747# ifdef DL_NOW 11748# define LT_DLLAZY_OR_NOW DL_NOW 11749# else 11750# define LT_DLLAZY_OR_NOW 0 11751# endif 11752# endif 11753# endif 11754# endif 11755#endif 11756 11757/* When -fvisibility=hidden is used, assume the code has been annotated 11758 correspondingly for the symbols needed. */ 11759#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11760int fnord () __attribute__((visibility("default"))); 11761#endif 11762 11763int fnord () { return 42; } 11764int main () 11765{ 11766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11767 int status = $lt_dlunknown; 11768 11769 if (self) 11770 { 11771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11772 else 11773 { 11774 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11775 else puts (dlerror ()); 11776 } 11777 /* dlclose (self); */ 11778 } 11779 else 11780 puts (dlerror ()); 11781 11782 return status; 11783} 11784_LT_EOF 11785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11786 (eval $ac_link) 2>&5 11787 ac_status=$? 11788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11789 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11790 (./conftest; exit; ) >&5 2>/dev/null 11791 lt_status=$? 11792 case x$lt_status in 11793 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11794 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11795 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11796 esac 11797 else : 11798 # compilation failed 11799 lt_cv_dlopen_self_static=no 11800 fi 11801fi 11802rm -fr conftest* 11803 11804 11805fi 11806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11807$as_echo "$lt_cv_dlopen_self_static" >&6; } 11808 fi 11809 11810 CPPFLAGS=$save_CPPFLAGS 11811 LDFLAGS=$save_LDFLAGS 11812 LIBS=$save_LIBS 11813 ;; 11814 esac 11815 11816 case $lt_cv_dlopen_self in 11817 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11818 *) enable_dlopen_self=unknown ;; 11819 esac 11820 11821 case $lt_cv_dlopen_self_static in 11822 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11823 *) enable_dlopen_self_static=unknown ;; 11824 esac 11825fi 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843striplib= 11844old_striplib= 11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11846$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11847if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11848 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11849 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11851$as_echo "yes" >&6; } 11852else 11853# FIXME - insert some real tests, host_os isn't really good enough 11854 case $host_os in 11855 darwin*) 11856 if test -n "$STRIP"; then 11857 striplib="$STRIP -x" 11858 old_striplib="$STRIP -S" 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11860$as_echo "yes" >&6; } 11861 else 11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11863$as_echo "no" >&6; } 11864 fi 11865 ;; 11866 *) 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11868$as_echo "no" >&6; } 11869 ;; 11870 esac 11871fi 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 # Report what library types will actually be built 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11886$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11888$as_echo "$can_build_shared" >&6; } 11889 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11891$as_echo_n "checking whether to build shared libraries... " >&6; } 11892 test no = "$can_build_shared" && enable_shared=no 11893 11894 # On AIX, shared libraries and static libraries use the same namespace, and 11895 # are all built from PIC. 11896 case $host_os in 11897 aix3*) 11898 test yes = "$enable_shared" && enable_static=no 11899 if test -n "$RANLIB"; then 11900 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11901 postinstall_cmds='$RANLIB $lib' 11902 fi 11903 ;; 11904 11905 aix[4-9]*) 11906 if test ia64 != "$host_cpu"; then 11907 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11908 yes,aix,yes) ;; # shared object as lib.so file only 11909 yes,svr4,*) ;; # shared object as lib.so archive member only 11910 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11911 esac 11912 fi 11913 ;; 11914 esac 11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11916$as_echo "$enable_shared" >&6; } 11917 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11919$as_echo_n "checking whether to build static libraries... " >&6; } 11920 # Make sure either enable_shared or enable_static is yes. 11921 test yes = "$enable_shared" || enable_static=yes 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11923$as_echo "$enable_static" >&6; } 11924 11925 11926 11927 11928fi 11929ac_ext=c 11930ac_cpp='$CPP $CPPFLAGS' 11931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11933ac_compiler_gnu=$ac_cv_c_compiler_gnu 11934 11935CC=$lt_save_CC 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 ac_config_commands="$ac_config_commands libtool" 11952 11953 11954 11955 11956# Only expand once: 11957 11958 11959 11960# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11973$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11974if ${ac_cv_prog_cc_c99+:} false; then : 11975 $as_echo_n "(cached) " >&6 11976else 11977 ac_cv_prog_cc_c99=no 11978ac_save_CC=$CC 11979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11980/* end confdefs.h. */ 11981#include <stdarg.h> 11982#include <stdbool.h> 11983#include <stdlib.h> 11984#include <wchar.h> 11985#include <stdio.h> 11986 11987// Check varargs macros. These examples are taken from C99 6.10.3.5. 11988#define debug(...) fprintf (stderr, __VA_ARGS__) 11989#define showlist(...) puts (#__VA_ARGS__) 11990#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11991static void 11992test_varargs_macros (void) 11993{ 11994 int x = 1234; 11995 int y = 5678; 11996 debug ("Flag"); 11997 debug ("X = %d\n", x); 11998 showlist (The first, second, and third items.); 11999 report (x>y, "x is %d but y is %d", x, y); 12000} 12001 12002// Check long long types. 12003#define BIG64 18446744073709551615ull 12004#define BIG32 4294967295ul 12005#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12006#if !BIG_OK 12007 your preprocessor is broken; 12008#endif 12009#if BIG_OK 12010#else 12011 your preprocessor is broken; 12012#endif 12013static long long int bignum = -9223372036854775807LL; 12014static unsigned long long int ubignum = BIG64; 12015 12016struct incomplete_array 12017{ 12018 int datasize; 12019 double data[]; 12020}; 12021 12022struct named_init { 12023 int number; 12024 const wchar_t *name; 12025 double average; 12026}; 12027 12028typedef const char *ccp; 12029 12030static inline int 12031test_restrict (ccp restrict text) 12032{ 12033 // See if C++-style comments work. 12034 // Iterate through items via the restricted pointer. 12035 // Also check for declarations in for loops. 12036 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12037 continue; 12038 return 0; 12039} 12040 12041// Check varargs and va_copy. 12042static void 12043test_varargs (const char *format, ...) 12044{ 12045 va_list args; 12046 va_start (args, format); 12047 va_list args_copy; 12048 va_copy (args_copy, args); 12049 12050 const char *str; 12051 int number; 12052 float fnumber; 12053 12054 while (*format) 12055 { 12056 switch (*format++) 12057 { 12058 case 's': // string 12059 str = va_arg (args_copy, const char *); 12060 break; 12061 case 'd': // int 12062 number = va_arg (args_copy, int); 12063 break; 12064 case 'f': // float 12065 fnumber = va_arg (args_copy, double); 12066 break; 12067 default: 12068 break; 12069 } 12070 } 12071 va_end (args_copy); 12072 va_end (args); 12073} 12074 12075int 12076main () 12077{ 12078 12079 // Check bool. 12080 _Bool success = false; 12081 12082 // Check restrict. 12083 if (test_restrict ("String literal") == 0) 12084 success = true; 12085 char *restrict newvar = "Another string"; 12086 12087 // Check varargs. 12088 test_varargs ("s, d' f .", "string", 65, 34.234); 12089 test_varargs_macros (); 12090 12091 // Check flexible array members. 12092 struct incomplete_array *ia = 12093 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12094 ia->datasize = 10; 12095 for (int i = 0; i < ia->datasize; ++i) 12096 ia->data[i] = i * 1.234; 12097 12098 // Check named initializers. 12099 struct named_init ni = { 12100 .number = 34, 12101 .name = L"Test wide string", 12102 .average = 543.34343, 12103 }; 12104 12105 ni.number = 58; 12106 12107 int dynamic_array[ni.number]; 12108 dynamic_array[ni.number - 1] = 543; 12109 12110 // work around unused variable warnings 12111 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12112 || dynamic_array[ni.number - 1] != 543); 12113 12114 ; 12115 return 0; 12116} 12117_ACEOF 12118for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12119do 12120 CC="$ac_save_CC $ac_arg" 12121 if ac_fn_c_try_compile "$LINENO"; then : 12122 ac_cv_prog_cc_c99=$ac_arg 12123fi 12124rm -f core conftest.err conftest.$ac_objext 12125 test "x$ac_cv_prog_cc_c99" != "xno" && break 12126done 12127rm -f conftest.$ac_ext 12128CC=$ac_save_CC 12129 12130fi 12131# AC_CACHE_VAL 12132case "x$ac_cv_prog_cc_c99" in 12133 x) 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12135$as_echo "none needed" >&6; } ;; 12136 xno) 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12138$as_echo "unsupported" >&6; } ;; 12139 *) 12140 CC="$CC $ac_cv_prog_cc_c99" 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12142$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12143esac 12144if test "x$ac_cv_prog_cc_c99" != xno; then : 12145 12146fi 12147 12148 12149 12150 12151 12152 12153ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12154if test "x$ac_cv_have_decl___clang__" = xyes; then : 12155 CLANGCC="yes" 12156else 12157 CLANGCC="no" 12158fi 12159 12160ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12161if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12162 INTELCC="yes" 12163else 12164 INTELCC="no" 12165fi 12166 12167ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12168if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12169 SUNCC="yes" 12170else 12171 SUNCC="no" 12172fi 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12183 if test -n "$ac_tool_prefix"; then 12184 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12185set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12187$as_echo_n "checking for $ac_word... " >&6; } 12188if ${ac_cv_path_PKG_CONFIG+:} false; then : 12189 $as_echo_n "(cached) " >&6 12190else 12191 case $PKG_CONFIG in 12192 [\\/]* | ?:[\\/]*) 12193 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12194 ;; 12195 *) 12196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12197for as_dir in $PATH 12198do 12199 IFS=$as_save_IFS 12200 test -z "$as_dir" && as_dir=. 12201 for ac_exec_ext in '' $ac_executable_extensions; do 12202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12203 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12205 break 2 12206 fi 12207done 12208 done 12209IFS=$as_save_IFS 12210 12211 ;; 12212esac 12213fi 12214PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12215if test -n "$PKG_CONFIG"; then 12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12217$as_echo "$PKG_CONFIG" >&6; } 12218else 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12220$as_echo "no" >&6; } 12221fi 12222 12223 12224fi 12225if test -z "$ac_cv_path_PKG_CONFIG"; then 12226 ac_pt_PKG_CONFIG=$PKG_CONFIG 12227 # Extract the first word of "pkg-config", so it can be a program name with args. 12228set dummy pkg-config; ac_word=$2 12229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12230$as_echo_n "checking for $ac_word... " >&6; } 12231if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12232 $as_echo_n "(cached) " >&6 12233else 12234 case $ac_pt_PKG_CONFIG in 12235 [\\/]* | ?:[\\/]*) 12236 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12237 ;; 12238 *) 12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12240for as_dir in $PATH 12241do 12242 IFS=$as_save_IFS 12243 test -z "$as_dir" && as_dir=. 12244 for ac_exec_ext in '' $ac_executable_extensions; do 12245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12246 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12248 break 2 12249 fi 12250done 12251 done 12252IFS=$as_save_IFS 12253 12254 ;; 12255esac 12256fi 12257ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12258if test -n "$ac_pt_PKG_CONFIG"; then 12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12260$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12261else 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12263$as_echo "no" >&6; } 12264fi 12265 12266 if test "x$ac_pt_PKG_CONFIG" = x; then 12267 PKG_CONFIG="" 12268 else 12269 case $cross_compiling:$ac_tool_warned in 12270yes:) 12271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12273ac_tool_warned=yes ;; 12274esac 12275 PKG_CONFIG=$ac_pt_PKG_CONFIG 12276 fi 12277else 12278 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12279fi 12280 12281fi 12282if test -n "$PKG_CONFIG"; then 12283 _pkg_min_version=0.9.0 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12285$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12286 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12288$as_echo "yes" >&6; } 12289 else 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12291$as_echo "no" >&6; } 12292 PKG_CONFIG="" 12293 fi 12294fi 12295 12296 12297 12298 12299 12300# Check whether --enable-selective-werror was given. 12301if test "${enable_selective_werror+set}" = set; then : 12302 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12303else 12304 SELECTIVE_WERROR=yes 12305fi 12306 12307 12308 12309 12310 12311# -v is too short to test reliably with XORG_TESTSET_CFLAG 12312if test "x$SUNCC" = "xyes"; then 12313 BASE_CFLAGS="-v" 12314else 12315 BASE_CFLAGS="" 12316fi 12317 12318# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332xorg_testset_save_CFLAGS="$CFLAGS" 12333 12334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12339 $as_echo_n "(cached) " >&6 12340else 12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12342/* end confdefs.h. */ 12343int i; 12344_ACEOF 12345if ac_fn_c_try_compile "$LINENO"; then : 12346 xorg_cv_cc_flag_unknown_warning_option=yes 12347else 12348 xorg_cv_cc_flag_unknown_warning_option=no 12349fi 12350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12351fi 12352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12355 CFLAGS="$xorg_testset_save_CFLAGS" 12356fi 12357 12358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12361 fi 12362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12366 $as_echo_n "(cached) " >&6 12367else 12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12369/* end confdefs.h. */ 12370int i; 12371_ACEOF 12372if ac_fn_c_try_compile "$LINENO"; then : 12373 xorg_cv_cc_flag_unused_command_line_argument=yes 12374else 12375 xorg_cv_cc_flag_unused_command_line_argument=no 12376fi 12377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12378fi 12379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12382 CFLAGS="$xorg_testset_save_CFLAGS" 12383fi 12384 12385found="no" 12386 12387 if test $found = "no" ; then 12388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12390 fi 12391 12392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12394 fi 12395 12396 CFLAGS="$CFLAGS -Wall" 12397 12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12399$as_echo_n "checking if $CC supports -Wall... " >&6; } 12400 cacheid=xorg_cv_cc_flag__Wall 12401 if eval \${$cacheid+:} false; then : 12402 $as_echo_n "(cached) " >&6 12403else 12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12405/* end confdefs.h. */ 12406int i; 12407int 12408main () 12409{ 12410 12411 ; 12412 return 0; 12413} 12414_ACEOF 12415if ac_fn_c_try_link "$LINENO"; then : 12416 eval $cacheid=yes 12417else 12418 eval $cacheid=no 12419fi 12420rm -f core conftest.err conftest.$ac_objext \ 12421 conftest$ac_exeext conftest.$ac_ext 12422fi 12423 12424 12425 CFLAGS="$xorg_testset_save_CFLAGS" 12426 12427 eval supported=\$$cacheid 12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12429$as_echo "$supported" >&6; } 12430 if test "$supported" = "yes" ; then 12431 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12432 found="yes" 12433 fi 12434 fi 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450xorg_testset_save_CFLAGS="$CFLAGS" 12451 12452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12457 $as_echo_n "(cached) " >&6 12458else 12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12460/* end confdefs.h. */ 12461int i; 12462_ACEOF 12463if ac_fn_c_try_compile "$LINENO"; then : 12464 xorg_cv_cc_flag_unknown_warning_option=yes 12465else 12466 xorg_cv_cc_flag_unknown_warning_option=no 12467fi 12468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12469fi 12470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12473 CFLAGS="$xorg_testset_save_CFLAGS" 12474fi 12475 12476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12479 fi 12480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12484 $as_echo_n "(cached) " >&6 12485else 12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12487/* end confdefs.h. */ 12488int i; 12489_ACEOF 12490if ac_fn_c_try_compile "$LINENO"; then : 12491 xorg_cv_cc_flag_unused_command_line_argument=yes 12492else 12493 xorg_cv_cc_flag_unused_command_line_argument=no 12494fi 12495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12496fi 12497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12500 CFLAGS="$xorg_testset_save_CFLAGS" 12501fi 12502 12503found="no" 12504 12505 if test $found = "no" ; then 12506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12508 fi 12509 12510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12512 fi 12513 12514 CFLAGS="$CFLAGS -Wpointer-arith" 12515 12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12517$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12518 cacheid=xorg_cv_cc_flag__Wpointer_arith 12519 if eval \${$cacheid+:} false; then : 12520 $as_echo_n "(cached) " >&6 12521else 12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12523/* end confdefs.h. */ 12524int i; 12525int 12526main () 12527{ 12528 12529 ; 12530 return 0; 12531} 12532_ACEOF 12533if ac_fn_c_try_link "$LINENO"; then : 12534 eval $cacheid=yes 12535else 12536 eval $cacheid=no 12537fi 12538rm -f core conftest.err conftest.$ac_objext \ 12539 conftest$ac_exeext conftest.$ac_ext 12540fi 12541 12542 12543 CFLAGS="$xorg_testset_save_CFLAGS" 12544 12545 eval supported=\$$cacheid 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12547$as_echo "$supported" >&6; } 12548 if test "$supported" = "yes" ; then 12549 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12550 found="yes" 12551 fi 12552 fi 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568xorg_testset_save_CFLAGS="$CFLAGS" 12569 12570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12575 $as_echo_n "(cached) " >&6 12576else 12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12578/* end confdefs.h. */ 12579int i; 12580_ACEOF 12581if ac_fn_c_try_compile "$LINENO"; then : 12582 xorg_cv_cc_flag_unknown_warning_option=yes 12583else 12584 xorg_cv_cc_flag_unknown_warning_option=no 12585fi 12586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12587fi 12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12591 CFLAGS="$xorg_testset_save_CFLAGS" 12592fi 12593 12594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12597 fi 12598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12602 $as_echo_n "(cached) " >&6 12603else 12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12605/* end confdefs.h. */ 12606int i; 12607_ACEOF 12608if ac_fn_c_try_compile "$LINENO"; then : 12609 xorg_cv_cc_flag_unused_command_line_argument=yes 12610else 12611 xorg_cv_cc_flag_unused_command_line_argument=no 12612fi 12613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12614fi 12615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12618 CFLAGS="$xorg_testset_save_CFLAGS" 12619fi 12620 12621found="no" 12622 12623 if test $found = "no" ; then 12624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12626 fi 12627 12628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12630 fi 12631 12632 CFLAGS="$CFLAGS -Wmissing-declarations" 12633 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12635$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12636 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12637 if eval \${$cacheid+:} false; then : 12638 $as_echo_n "(cached) " >&6 12639else 12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12641/* end confdefs.h. */ 12642int i; 12643int 12644main () 12645{ 12646 12647 ; 12648 return 0; 12649} 12650_ACEOF 12651if ac_fn_c_try_link "$LINENO"; then : 12652 eval $cacheid=yes 12653else 12654 eval $cacheid=no 12655fi 12656rm -f core conftest.err conftest.$ac_objext \ 12657 conftest$ac_exeext conftest.$ac_ext 12658fi 12659 12660 12661 CFLAGS="$xorg_testset_save_CFLAGS" 12662 12663 eval supported=\$$cacheid 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12665$as_echo "$supported" >&6; } 12666 if test "$supported" = "yes" ; then 12667 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12668 found="yes" 12669 fi 12670 fi 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686xorg_testset_save_CFLAGS="$CFLAGS" 12687 12688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12693 $as_echo_n "(cached) " >&6 12694else 12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12696/* end confdefs.h. */ 12697int i; 12698_ACEOF 12699if ac_fn_c_try_compile "$LINENO"; then : 12700 xorg_cv_cc_flag_unknown_warning_option=yes 12701else 12702 xorg_cv_cc_flag_unknown_warning_option=no 12703fi 12704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12705fi 12706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12709 CFLAGS="$xorg_testset_save_CFLAGS" 12710fi 12711 12712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12715 fi 12716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12720 $as_echo_n "(cached) " >&6 12721else 12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12723/* end confdefs.h. */ 12724int i; 12725_ACEOF 12726if ac_fn_c_try_compile "$LINENO"; then : 12727 xorg_cv_cc_flag_unused_command_line_argument=yes 12728else 12729 xorg_cv_cc_flag_unused_command_line_argument=no 12730fi 12731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12732fi 12733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12736 CFLAGS="$xorg_testset_save_CFLAGS" 12737fi 12738 12739found="no" 12740 12741 if test $found = "no" ; then 12742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12744 fi 12745 12746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12748 fi 12749 12750 CFLAGS="$CFLAGS -Wformat=2" 12751 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12753$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12754 cacheid=xorg_cv_cc_flag__Wformat_2 12755 if eval \${$cacheid+:} false; then : 12756 $as_echo_n "(cached) " >&6 12757else 12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12759/* end confdefs.h. */ 12760int i; 12761int 12762main () 12763{ 12764 12765 ; 12766 return 0; 12767} 12768_ACEOF 12769if ac_fn_c_try_link "$LINENO"; then : 12770 eval $cacheid=yes 12771else 12772 eval $cacheid=no 12773fi 12774rm -f core conftest.err conftest.$ac_objext \ 12775 conftest$ac_exeext conftest.$ac_ext 12776fi 12777 12778 12779 CFLAGS="$xorg_testset_save_CFLAGS" 12780 12781 eval supported=\$$cacheid 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12783$as_echo "$supported" >&6; } 12784 if test "$supported" = "yes" ; then 12785 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12786 found="yes" 12787 fi 12788 fi 12789 12790 if test $found = "no" ; then 12791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12793 fi 12794 12795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12797 fi 12798 12799 CFLAGS="$CFLAGS -Wformat" 12800 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12802$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12803 cacheid=xorg_cv_cc_flag__Wformat 12804 if eval \${$cacheid+:} false; then : 12805 $as_echo_n "(cached) " >&6 12806else 12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12808/* end confdefs.h. */ 12809int i; 12810int 12811main () 12812{ 12813 12814 ; 12815 return 0; 12816} 12817_ACEOF 12818if ac_fn_c_try_link "$LINENO"; then : 12819 eval $cacheid=yes 12820else 12821 eval $cacheid=no 12822fi 12823rm -f core conftest.err conftest.$ac_objext \ 12824 conftest$ac_exeext conftest.$ac_ext 12825fi 12826 12827 12828 CFLAGS="$xorg_testset_save_CFLAGS" 12829 12830 eval supported=\$$cacheid 12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12832$as_echo "$supported" >&6; } 12833 if test "$supported" = "yes" ; then 12834 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12835 found="yes" 12836 fi 12837 fi 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855xorg_testset_save_CFLAGS="$CFLAGS" 12856 12857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12862 $as_echo_n "(cached) " >&6 12863else 12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12865/* end confdefs.h. */ 12866int i; 12867_ACEOF 12868if ac_fn_c_try_compile "$LINENO"; then : 12869 xorg_cv_cc_flag_unknown_warning_option=yes 12870else 12871 xorg_cv_cc_flag_unknown_warning_option=no 12872fi 12873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12874fi 12875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12878 CFLAGS="$xorg_testset_save_CFLAGS" 12879fi 12880 12881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12884 fi 12885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12889 $as_echo_n "(cached) " >&6 12890else 12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12892/* end confdefs.h. */ 12893int i; 12894_ACEOF 12895if ac_fn_c_try_compile "$LINENO"; then : 12896 xorg_cv_cc_flag_unused_command_line_argument=yes 12897else 12898 xorg_cv_cc_flag_unused_command_line_argument=no 12899fi 12900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12901fi 12902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12905 CFLAGS="$xorg_testset_save_CFLAGS" 12906fi 12907 12908found="no" 12909 12910 if test $found = "no" ; then 12911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12913 fi 12914 12915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12917 fi 12918 12919 CFLAGS="$CFLAGS -Wstrict-prototypes" 12920 12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12922$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12923 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12924 if eval \${$cacheid+:} false; then : 12925 $as_echo_n "(cached) " >&6 12926else 12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12928/* end confdefs.h. */ 12929int i; 12930int 12931main () 12932{ 12933 12934 ; 12935 return 0; 12936} 12937_ACEOF 12938if ac_fn_c_try_link "$LINENO"; then : 12939 eval $cacheid=yes 12940else 12941 eval $cacheid=no 12942fi 12943rm -f core conftest.err conftest.$ac_objext \ 12944 conftest$ac_exeext conftest.$ac_ext 12945fi 12946 12947 12948 CFLAGS="$xorg_testset_save_CFLAGS" 12949 12950 eval supported=\$$cacheid 12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12952$as_echo "$supported" >&6; } 12953 if test "$supported" = "yes" ; then 12954 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12955 found="yes" 12956 fi 12957 fi 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973xorg_testset_save_CFLAGS="$CFLAGS" 12974 12975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12980 $as_echo_n "(cached) " >&6 12981else 12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12983/* end confdefs.h. */ 12984int i; 12985_ACEOF 12986if ac_fn_c_try_compile "$LINENO"; then : 12987 xorg_cv_cc_flag_unknown_warning_option=yes 12988else 12989 xorg_cv_cc_flag_unknown_warning_option=no 12990fi 12991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12992fi 12993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12996 CFLAGS="$xorg_testset_save_CFLAGS" 12997fi 12998 12999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13002 fi 13003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13007 $as_echo_n "(cached) " >&6 13008else 13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13010/* end confdefs.h. */ 13011int i; 13012_ACEOF 13013if ac_fn_c_try_compile "$LINENO"; then : 13014 xorg_cv_cc_flag_unused_command_line_argument=yes 13015else 13016 xorg_cv_cc_flag_unused_command_line_argument=no 13017fi 13018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13019fi 13020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13023 CFLAGS="$xorg_testset_save_CFLAGS" 13024fi 13025 13026found="no" 13027 13028 if test $found = "no" ; then 13029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13031 fi 13032 13033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13035 fi 13036 13037 CFLAGS="$CFLAGS -Wmissing-prototypes" 13038 13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13040$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13041 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13042 if eval \${$cacheid+:} false; then : 13043 $as_echo_n "(cached) " >&6 13044else 13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13046/* end confdefs.h. */ 13047int i; 13048int 13049main () 13050{ 13051 13052 ; 13053 return 0; 13054} 13055_ACEOF 13056if ac_fn_c_try_link "$LINENO"; then : 13057 eval $cacheid=yes 13058else 13059 eval $cacheid=no 13060fi 13061rm -f core conftest.err conftest.$ac_objext \ 13062 conftest$ac_exeext conftest.$ac_ext 13063fi 13064 13065 13066 CFLAGS="$xorg_testset_save_CFLAGS" 13067 13068 eval supported=\$$cacheid 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13070$as_echo "$supported" >&6; } 13071 if test "$supported" = "yes" ; then 13072 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13073 found="yes" 13074 fi 13075 fi 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091xorg_testset_save_CFLAGS="$CFLAGS" 13092 13093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13098 $as_echo_n "(cached) " >&6 13099else 13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13101/* end confdefs.h. */ 13102int i; 13103_ACEOF 13104if ac_fn_c_try_compile "$LINENO"; then : 13105 xorg_cv_cc_flag_unknown_warning_option=yes 13106else 13107 xorg_cv_cc_flag_unknown_warning_option=no 13108fi 13109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13110fi 13111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13114 CFLAGS="$xorg_testset_save_CFLAGS" 13115fi 13116 13117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13120 fi 13121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13125 $as_echo_n "(cached) " >&6 13126else 13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13128/* end confdefs.h. */ 13129int i; 13130_ACEOF 13131if ac_fn_c_try_compile "$LINENO"; then : 13132 xorg_cv_cc_flag_unused_command_line_argument=yes 13133else 13134 xorg_cv_cc_flag_unused_command_line_argument=no 13135fi 13136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13137fi 13138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13141 CFLAGS="$xorg_testset_save_CFLAGS" 13142fi 13143 13144found="no" 13145 13146 if test $found = "no" ; then 13147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13149 fi 13150 13151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13153 fi 13154 13155 CFLAGS="$CFLAGS -Wnested-externs" 13156 13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13158$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13159 cacheid=xorg_cv_cc_flag__Wnested_externs 13160 if eval \${$cacheid+:} false; then : 13161 $as_echo_n "(cached) " >&6 13162else 13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13164/* end confdefs.h. */ 13165int i; 13166int 13167main () 13168{ 13169 13170 ; 13171 return 0; 13172} 13173_ACEOF 13174if ac_fn_c_try_link "$LINENO"; then : 13175 eval $cacheid=yes 13176else 13177 eval $cacheid=no 13178fi 13179rm -f core conftest.err conftest.$ac_objext \ 13180 conftest$ac_exeext conftest.$ac_ext 13181fi 13182 13183 13184 CFLAGS="$xorg_testset_save_CFLAGS" 13185 13186 eval supported=\$$cacheid 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13188$as_echo "$supported" >&6; } 13189 if test "$supported" = "yes" ; then 13190 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13191 found="yes" 13192 fi 13193 fi 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209xorg_testset_save_CFLAGS="$CFLAGS" 13210 13211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13216 $as_echo_n "(cached) " >&6 13217else 13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13219/* end confdefs.h. */ 13220int i; 13221_ACEOF 13222if ac_fn_c_try_compile "$LINENO"; then : 13223 xorg_cv_cc_flag_unknown_warning_option=yes 13224else 13225 xorg_cv_cc_flag_unknown_warning_option=no 13226fi 13227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13228fi 13229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13232 CFLAGS="$xorg_testset_save_CFLAGS" 13233fi 13234 13235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13238 fi 13239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13243 $as_echo_n "(cached) " >&6 13244else 13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13246/* end confdefs.h. */ 13247int i; 13248_ACEOF 13249if ac_fn_c_try_compile "$LINENO"; then : 13250 xorg_cv_cc_flag_unused_command_line_argument=yes 13251else 13252 xorg_cv_cc_flag_unused_command_line_argument=no 13253fi 13254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13255fi 13256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13259 CFLAGS="$xorg_testset_save_CFLAGS" 13260fi 13261 13262found="no" 13263 13264 if test $found = "no" ; then 13265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13267 fi 13268 13269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13271 fi 13272 13273 CFLAGS="$CFLAGS -Wbad-function-cast" 13274 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13276$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13277 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13278 if eval \${$cacheid+:} false; then : 13279 $as_echo_n "(cached) " >&6 13280else 13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13282/* end confdefs.h. */ 13283int i; 13284int 13285main () 13286{ 13287 13288 ; 13289 return 0; 13290} 13291_ACEOF 13292if ac_fn_c_try_link "$LINENO"; then : 13293 eval $cacheid=yes 13294else 13295 eval $cacheid=no 13296fi 13297rm -f core conftest.err conftest.$ac_objext \ 13298 conftest$ac_exeext conftest.$ac_ext 13299fi 13300 13301 13302 CFLAGS="$xorg_testset_save_CFLAGS" 13303 13304 eval supported=\$$cacheid 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13306$as_echo "$supported" >&6; } 13307 if test "$supported" = "yes" ; then 13308 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13309 found="yes" 13310 fi 13311 fi 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327xorg_testset_save_CFLAGS="$CFLAGS" 13328 13329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13334 $as_echo_n "(cached) " >&6 13335else 13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13337/* end confdefs.h. */ 13338int i; 13339_ACEOF 13340if ac_fn_c_try_compile "$LINENO"; then : 13341 xorg_cv_cc_flag_unknown_warning_option=yes 13342else 13343 xorg_cv_cc_flag_unknown_warning_option=no 13344fi 13345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13346fi 13347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13350 CFLAGS="$xorg_testset_save_CFLAGS" 13351fi 13352 13353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13356 fi 13357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13361 $as_echo_n "(cached) " >&6 13362else 13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13364/* end confdefs.h. */ 13365int i; 13366_ACEOF 13367if ac_fn_c_try_compile "$LINENO"; then : 13368 xorg_cv_cc_flag_unused_command_line_argument=yes 13369else 13370 xorg_cv_cc_flag_unused_command_line_argument=no 13371fi 13372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13373fi 13374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13377 CFLAGS="$xorg_testset_save_CFLAGS" 13378fi 13379 13380found="no" 13381 13382 if test $found = "no" ; then 13383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13385 fi 13386 13387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13389 fi 13390 13391 CFLAGS="$CFLAGS -Wold-style-definition" 13392 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13394$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13395 cacheid=xorg_cv_cc_flag__Wold_style_definition 13396 if eval \${$cacheid+:} false; then : 13397 $as_echo_n "(cached) " >&6 13398else 13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13400/* end confdefs.h. */ 13401int i; 13402int 13403main () 13404{ 13405 13406 ; 13407 return 0; 13408} 13409_ACEOF 13410if ac_fn_c_try_link "$LINENO"; then : 13411 eval $cacheid=yes 13412else 13413 eval $cacheid=no 13414fi 13415rm -f core conftest.err conftest.$ac_objext \ 13416 conftest$ac_exeext conftest.$ac_ext 13417fi 13418 13419 13420 CFLAGS="$xorg_testset_save_CFLAGS" 13421 13422 eval supported=\$$cacheid 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13424$as_echo "$supported" >&6; } 13425 if test "$supported" = "yes" ; then 13426 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13427 found="yes" 13428 fi 13429 fi 13430 13431 if test $found = "no" ; then 13432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13434 fi 13435 13436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13438 fi 13439 13440 CFLAGS="$CFLAGS -fd" 13441 13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13443$as_echo_n "checking if $CC supports -fd... " >&6; } 13444 cacheid=xorg_cv_cc_flag__fd 13445 if eval \${$cacheid+:} false; then : 13446 $as_echo_n "(cached) " >&6 13447else 13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13449/* end confdefs.h. */ 13450int i; 13451int 13452main () 13453{ 13454 13455 ; 13456 return 0; 13457} 13458_ACEOF 13459if ac_fn_c_try_link "$LINENO"; then : 13460 eval $cacheid=yes 13461else 13462 eval $cacheid=no 13463fi 13464rm -f core conftest.err conftest.$ac_objext \ 13465 conftest$ac_exeext conftest.$ac_ext 13466fi 13467 13468 13469 CFLAGS="$xorg_testset_save_CFLAGS" 13470 13471 eval supported=\$$cacheid 13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13473$as_echo "$supported" >&6; } 13474 if test "$supported" = "yes" ; then 13475 BASE_CFLAGS="$BASE_CFLAGS -fd" 13476 found="yes" 13477 fi 13478 fi 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494xorg_testset_save_CFLAGS="$CFLAGS" 13495 13496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13499$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13500if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13501 $as_echo_n "(cached) " >&6 13502else 13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13504/* end confdefs.h. */ 13505int i; 13506_ACEOF 13507if ac_fn_c_try_compile "$LINENO"; then : 13508 xorg_cv_cc_flag_unknown_warning_option=yes 13509else 13510 xorg_cv_cc_flag_unknown_warning_option=no 13511fi 13512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13513fi 13514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13515$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13517 CFLAGS="$xorg_testset_save_CFLAGS" 13518fi 13519 13520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13523 fi 13524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13526$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13527if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13528 $as_echo_n "(cached) " >&6 13529else 13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13531/* end confdefs.h. */ 13532int i; 13533_ACEOF 13534if ac_fn_c_try_compile "$LINENO"; then : 13535 xorg_cv_cc_flag_unused_command_line_argument=yes 13536else 13537 xorg_cv_cc_flag_unused_command_line_argument=no 13538fi 13539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13540fi 13541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13542$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13544 CFLAGS="$xorg_testset_save_CFLAGS" 13545fi 13546 13547found="no" 13548 13549 if test $found = "no" ; then 13550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13552 fi 13553 13554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13556 fi 13557 13558 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13559 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13561$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13562 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13563 if eval \${$cacheid+:} false; then : 13564 $as_echo_n "(cached) " >&6 13565else 13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13567/* end confdefs.h. */ 13568int i; 13569int 13570main () 13571{ 13572 13573 ; 13574 return 0; 13575} 13576_ACEOF 13577if ac_fn_c_try_link "$LINENO"; then : 13578 eval $cacheid=yes 13579else 13580 eval $cacheid=no 13581fi 13582rm -f core conftest.err conftest.$ac_objext \ 13583 conftest$ac_exeext conftest.$ac_ext 13584fi 13585 13586 13587 CFLAGS="$xorg_testset_save_CFLAGS" 13588 13589 eval supported=\$$cacheid 13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13591$as_echo "$supported" >&6; } 13592 if test "$supported" = "yes" ; then 13593 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13594 found="yes" 13595 fi 13596 fi 13597 13598 13599 13600 13601 13602# This chunk adds additional warnings that could catch undesired effects. 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616xorg_testset_save_CFLAGS="$CFLAGS" 13617 13618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13621$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13622if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13623 $as_echo_n "(cached) " >&6 13624else 13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13626/* end confdefs.h. */ 13627int i; 13628_ACEOF 13629if ac_fn_c_try_compile "$LINENO"; then : 13630 xorg_cv_cc_flag_unknown_warning_option=yes 13631else 13632 xorg_cv_cc_flag_unknown_warning_option=no 13633fi 13634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13635fi 13636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13637$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13639 CFLAGS="$xorg_testset_save_CFLAGS" 13640fi 13641 13642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13645 fi 13646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13648$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13649if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13650 $as_echo_n "(cached) " >&6 13651else 13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13653/* end confdefs.h. */ 13654int i; 13655_ACEOF 13656if ac_fn_c_try_compile "$LINENO"; then : 13657 xorg_cv_cc_flag_unused_command_line_argument=yes 13658else 13659 xorg_cv_cc_flag_unused_command_line_argument=no 13660fi 13661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13662fi 13663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13664$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13666 CFLAGS="$xorg_testset_save_CFLAGS" 13667fi 13668 13669found="no" 13670 13671 if test $found = "no" ; then 13672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13674 fi 13675 13676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13678 fi 13679 13680 CFLAGS="$CFLAGS -Wunused" 13681 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13683$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13684 cacheid=xorg_cv_cc_flag__Wunused 13685 if eval \${$cacheid+:} false; then : 13686 $as_echo_n "(cached) " >&6 13687else 13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13689/* end confdefs.h. */ 13690int i; 13691int 13692main () 13693{ 13694 13695 ; 13696 return 0; 13697} 13698_ACEOF 13699if ac_fn_c_try_link "$LINENO"; then : 13700 eval $cacheid=yes 13701else 13702 eval $cacheid=no 13703fi 13704rm -f core conftest.err conftest.$ac_objext \ 13705 conftest$ac_exeext conftest.$ac_ext 13706fi 13707 13708 13709 CFLAGS="$xorg_testset_save_CFLAGS" 13710 13711 eval supported=\$$cacheid 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13713$as_echo "$supported" >&6; } 13714 if test "$supported" = "yes" ; then 13715 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13716 found="yes" 13717 fi 13718 fi 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734xorg_testset_save_CFLAGS="$CFLAGS" 13735 13736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13741 $as_echo_n "(cached) " >&6 13742else 13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13744/* end confdefs.h. */ 13745int i; 13746_ACEOF 13747if ac_fn_c_try_compile "$LINENO"; then : 13748 xorg_cv_cc_flag_unknown_warning_option=yes 13749else 13750 xorg_cv_cc_flag_unknown_warning_option=no 13751fi 13752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13753fi 13754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13757 CFLAGS="$xorg_testset_save_CFLAGS" 13758fi 13759 13760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13763 fi 13764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13768 $as_echo_n "(cached) " >&6 13769else 13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13771/* end confdefs.h. */ 13772int i; 13773_ACEOF 13774if ac_fn_c_try_compile "$LINENO"; then : 13775 xorg_cv_cc_flag_unused_command_line_argument=yes 13776else 13777 xorg_cv_cc_flag_unused_command_line_argument=no 13778fi 13779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13780fi 13781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13784 CFLAGS="$xorg_testset_save_CFLAGS" 13785fi 13786 13787found="no" 13788 13789 if test $found = "no" ; then 13790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13792 fi 13793 13794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13796 fi 13797 13798 CFLAGS="$CFLAGS -Wuninitialized" 13799 13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13801$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13802 cacheid=xorg_cv_cc_flag__Wuninitialized 13803 if eval \${$cacheid+:} false; then : 13804 $as_echo_n "(cached) " >&6 13805else 13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13807/* end confdefs.h. */ 13808int i; 13809int 13810main () 13811{ 13812 13813 ; 13814 return 0; 13815} 13816_ACEOF 13817if ac_fn_c_try_link "$LINENO"; then : 13818 eval $cacheid=yes 13819else 13820 eval $cacheid=no 13821fi 13822rm -f core conftest.err conftest.$ac_objext \ 13823 conftest$ac_exeext conftest.$ac_ext 13824fi 13825 13826 13827 CFLAGS="$xorg_testset_save_CFLAGS" 13828 13829 eval supported=\$$cacheid 13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13831$as_echo "$supported" >&6; } 13832 if test "$supported" = "yes" ; then 13833 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13834 found="yes" 13835 fi 13836 fi 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852xorg_testset_save_CFLAGS="$CFLAGS" 13853 13854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13859 $as_echo_n "(cached) " >&6 13860else 13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13862/* end confdefs.h. */ 13863int i; 13864_ACEOF 13865if ac_fn_c_try_compile "$LINENO"; then : 13866 xorg_cv_cc_flag_unknown_warning_option=yes 13867else 13868 xorg_cv_cc_flag_unknown_warning_option=no 13869fi 13870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13871fi 13872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13875 CFLAGS="$xorg_testset_save_CFLAGS" 13876fi 13877 13878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13881 fi 13882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13886 $as_echo_n "(cached) " >&6 13887else 13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13889/* end confdefs.h. */ 13890int i; 13891_ACEOF 13892if ac_fn_c_try_compile "$LINENO"; then : 13893 xorg_cv_cc_flag_unused_command_line_argument=yes 13894else 13895 xorg_cv_cc_flag_unused_command_line_argument=no 13896fi 13897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13898fi 13899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13902 CFLAGS="$xorg_testset_save_CFLAGS" 13903fi 13904 13905found="no" 13906 13907 if test $found = "no" ; then 13908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13910 fi 13911 13912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13914 fi 13915 13916 CFLAGS="$CFLAGS -Wshadow" 13917 13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13919$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13920 cacheid=xorg_cv_cc_flag__Wshadow 13921 if eval \${$cacheid+:} false; then : 13922 $as_echo_n "(cached) " >&6 13923else 13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13925/* end confdefs.h. */ 13926int i; 13927int 13928main () 13929{ 13930 13931 ; 13932 return 0; 13933} 13934_ACEOF 13935if ac_fn_c_try_link "$LINENO"; then : 13936 eval $cacheid=yes 13937else 13938 eval $cacheid=no 13939fi 13940rm -f core conftest.err conftest.$ac_objext \ 13941 conftest$ac_exeext conftest.$ac_ext 13942fi 13943 13944 13945 CFLAGS="$xorg_testset_save_CFLAGS" 13946 13947 eval supported=\$$cacheid 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13949$as_echo "$supported" >&6; } 13950 if test "$supported" = "yes" ; then 13951 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13952 found="yes" 13953 fi 13954 fi 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970xorg_testset_save_CFLAGS="$CFLAGS" 13971 13972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13977 $as_echo_n "(cached) " >&6 13978else 13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13980/* end confdefs.h. */ 13981int i; 13982_ACEOF 13983if ac_fn_c_try_compile "$LINENO"; then : 13984 xorg_cv_cc_flag_unknown_warning_option=yes 13985else 13986 xorg_cv_cc_flag_unknown_warning_option=no 13987fi 13988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13989fi 13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13993 CFLAGS="$xorg_testset_save_CFLAGS" 13994fi 13995 13996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13999 fi 14000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14004 $as_echo_n "(cached) " >&6 14005else 14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14007/* end confdefs.h. */ 14008int i; 14009_ACEOF 14010if ac_fn_c_try_compile "$LINENO"; then : 14011 xorg_cv_cc_flag_unused_command_line_argument=yes 14012else 14013 xorg_cv_cc_flag_unused_command_line_argument=no 14014fi 14015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14016fi 14017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14020 CFLAGS="$xorg_testset_save_CFLAGS" 14021fi 14022 14023found="no" 14024 14025 if test $found = "no" ; then 14026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14028 fi 14029 14030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14032 fi 14033 14034 CFLAGS="$CFLAGS -Wmissing-noreturn" 14035 14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14037$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14038 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14039 if eval \${$cacheid+:} false; then : 14040 $as_echo_n "(cached) " >&6 14041else 14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14043/* end confdefs.h. */ 14044int i; 14045int 14046main () 14047{ 14048 14049 ; 14050 return 0; 14051} 14052_ACEOF 14053if ac_fn_c_try_link "$LINENO"; then : 14054 eval $cacheid=yes 14055else 14056 eval $cacheid=no 14057fi 14058rm -f core conftest.err conftest.$ac_objext \ 14059 conftest$ac_exeext conftest.$ac_ext 14060fi 14061 14062 14063 CFLAGS="$xorg_testset_save_CFLAGS" 14064 14065 eval supported=\$$cacheid 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14067$as_echo "$supported" >&6; } 14068 if test "$supported" = "yes" ; then 14069 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14070 found="yes" 14071 fi 14072 fi 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088xorg_testset_save_CFLAGS="$CFLAGS" 14089 14090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14095 $as_echo_n "(cached) " >&6 14096else 14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14098/* end confdefs.h. */ 14099int i; 14100_ACEOF 14101if ac_fn_c_try_compile "$LINENO"; then : 14102 xorg_cv_cc_flag_unknown_warning_option=yes 14103else 14104 xorg_cv_cc_flag_unknown_warning_option=no 14105fi 14106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14107fi 14108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14111 CFLAGS="$xorg_testset_save_CFLAGS" 14112fi 14113 14114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14117 fi 14118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14122 $as_echo_n "(cached) " >&6 14123else 14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14125/* end confdefs.h. */ 14126int i; 14127_ACEOF 14128if ac_fn_c_try_compile "$LINENO"; then : 14129 xorg_cv_cc_flag_unused_command_line_argument=yes 14130else 14131 xorg_cv_cc_flag_unused_command_line_argument=no 14132fi 14133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14134fi 14135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14138 CFLAGS="$xorg_testset_save_CFLAGS" 14139fi 14140 14141found="no" 14142 14143 if test $found = "no" ; then 14144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14146 fi 14147 14148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14150 fi 14151 14152 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14153 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14155$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14156 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14157 if eval \${$cacheid+:} false; then : 14158 $as_echo_n "(cached) " >&6 14159else 14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14161/* end confdefs.h. */ 14162int i; 14163int 14164main () 14165{ 14166 14167 ; 14168 return 0; 14169} 14170_ACEOF 14171if ac_fn_c_try_link "$LINENO"; then : 14172 eval $cacheid=yes 14173else 14174 eval $cacheid=no 14175fi 14176rm -f core conftest.err conftest.$ac_objext \ 14177 conftest$ac_exeext conftest.$ac_ext 14178fi 14179 14180 14181 CFLAGS="$xorg_testset_save_CFLAGS" 14182 14183 eval supported=\$$cacheid 14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14185$as_echo "$supported" >&6; } 14186 if test "$supported" = "yes" ; then 14187 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14188 found="yes" 14189 fi 14190 fi 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206xorg_testset_save_CFLAGS="$CFLAGS" 14207 14208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14213 $as_echo_n "(cached) " >&6 14214else 14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14216/* end confdefs.h. */ 14217int i; 14218_ACEOF 14219if ac_fn_c_try_compile "$LINENO"; then : 14220 xorg_cv_cc_flag_unknown_warning_option=yes 14221else 14222 xorg_cv_cc_flag_unknown_warning_option=no 14223fi 14224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14225fi 14226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14229 CFLAGS="$xorg_testset_save_CFLAGS" 14230fi 14231 14232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14235 fi 14236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14240 $as_echo_n "(cached) " >&6 14241else 14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14243/* end confdefs.h. */ 14244int i; 14245_ACEOF 14246if ac_fn_c_try_compile "$LINENO"; then : 14247 xorg_cv_cc_flag_unused_command_line_argument=yes 14248else 14249 xorg_cv_cc_flag_unused_command_line_argument=no 14250fi 14251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14252fi 14253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14256 CFLAGS="$xorg_testset_save_CFLAGS" 14257fi 14258 14259found="no" 14260 14261 if test $found = "no" ; then 14262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14264 fi 14265 14266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14268 fi 14269 14270 CFLAGS="$CFLAGS -Wredundant-decls" 14271 14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14273$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14274 cacheid=xorg_cv_cc_flag__Wredundant_decls 14275 if eval \${$cacheid+:} false; then : 14276 $as_echo_n "(cached) " >&6 14277else 14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14279/* end confdefs.h. */ 14280int i; 14281int 14282main () 14283{ 14284 14285 ; 14286 return 0; 14287} 14288_ACEOF 14289if ac_fn_c_try_link "$LINENO"; then : 14290 eval $cacheid=yes 14291else 14292 eval $cacheid=no 14293fi 14294rm -f core conftest.err conftest.$ac_objext \ 14295 conftest$ac_exeext conftest.$ac_ext 14296fi 14297 14298 14299 CFLAGS="$xorg_testset_save_CFLAGS" 14300 14301 eval supported=\$$cacheid 14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14303$as_echo "$supported" >&6; } 14304 if test "$supported" = "yes" ; then 14305 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14306 found="yes" 14307 fi 14308 fi 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324xorg_testset_save_CFLAGS="$CFLAGS" 14325 14326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14331 $as_echo_n "(cached) " >&6 14332else 14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14334/* end confdefs.h. */ 14335int i; 14336_ACEOF 14337if ac_fn_c_try_compile "$LINENO"; then : 14338 xorg_cv_cc_flag_unknown_warning_option=yes 14339else 14340 xorg_cv_cc_flag_unknown_warning_option=no 14341fi 14342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14343fi 14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14347 CFLAGS="$xorg_testset_save_CFLAGS" 14348fi 14349 14350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14353 fi 14354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14358 $as_echo_n "(cached) " >&6 14359else 14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14361/* end confdefs.h. */ 14362int i; 14363_ACEOF 14364if ac_fn_c_try_compile "$LINENO"; then : 14365 xorg_cv_cc_flag_unused_command_line_argument=yes 14366else 14367 xorg_cv_cc_flag_unused_command_line_argument=no 14368fi 14369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14370fi 14371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14374 CFLAGS="$xorg_testset_save_CFLAGS" 14375fi 14376 14377found="no" 14378 14379 if test $found = "no" ; then 14380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14382 fi 14383 14384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14386 fi 14387 14388 CFLAGS="$CFLAGS -Wlogical-op" 14389 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14391$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14392 cacheid=xorg_cv_cc_flag__Wlogical_op 14393 if eval \${$cacheid+:} false; then : 14394 $as_echo_n "(cached) " >&6 14395else 14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14397/* end confdefs.h. */ 14398int i; 14399int 14400main () 14401{ 14402 14403 ; 14404 return 0; 14405} 14406_ACEOF 14407if ac_fn_c_try_link "$LINENO"; then : 14408 eval $cacheid=yes 14409else 14410 eval $cacheid=no 14411fi 14412rm -f core conftest.err conftest.$ac_objext \ 14413 conftest$ac_exeext conftest.$ac_ext 14414fi 14415 14416 14417 CFLAGS="$xorg_testset_save_CFLAGS" 14418 14419 eval supported=\$$cacheid 14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14421$as_echo "$supported" >&6; } 14422 if test "$supported" = "yes" ; then 14423 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14424 found="yes" 14425 fi 14426 fi 14427 14428 14429 14430# These are currently disabled because they are noisy. They will be enabled 14431# in the future once the codebase is sufficiently modernized to silence 14432# them. For now, I don't want them to drown out the other warnings. 14433# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14434# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14435# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14436 14437# Turn some warnings into errors, so we don't accidently get successful builds 14438# when there are problems that should be fixed. 14439 14440if test "x$SELECTIVE_WERROR" = "xyes" ; then 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454xorg_testset_save_CFLAGS="$CFLAGS" 14455 14456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14461 $as_echo_n "(cached) " >&6 14462else 14463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14464/* end confdefs.h. */ 14465int i; 14466_ACEOF 14467if ac_fn_c_try_compile "$LINENO"; then : 14468 xorg_cv_cc_flag_unknown_warning_option=yes 14469else 14470 xorg_cv_cc_flag_unknown_warning_option=no 14471fi 14472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14473fi 14474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14477 CFLAGS="$xorg_testset_save_CFLAGS" 14478fi 14479 14480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14483 fi 14484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14488 $as_echo_n "(cached) " >&6 14489else 14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14491/* end confdefs.h. */ 14492int i; 14493_ACEOF 14494if ac_fn_c_try_compile "$LINENO"; then : 14495 xorg_cv_cc_flag_unused_command_line_argument=yes 14496else 14497 xorg_cv_cc_flag_unused_command_line_argument=no 14498fi 14499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14500fi 14501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14504 CFLAGS="$xorg_testset_save_CFLAGS" 14505fi 14506 14507found="no" 14508 14509 if test $found = "no" ; then 14510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14512 fi 14513 14514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14516 fi 14517 14518 CFLAGS="$CFLAGS -Werror=implicit" 14519 14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14521$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14522 cacheid=xorg_cv_cc_flag__Werror_implicit 14523 if eval \${$cacheid+:} false; then : 14524 $as_echo_n "(cached) " >&6 14525else 14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14527/* end confdefs.h. */ 14528int i; 14529int 14530main () 14531{ 14532 14533 ; 14534 return 0; 14535} 14536_ACEOF 14537if ac_fn_c_try_link "$LINENO"; then : 14538 eval $cacheid=yes 14539else 14540 eval $cacheid=no 14541fi 14542rm -f core conftest.err conftest.$ac_objext \ 14543 conftest$ac_exeext conftest.$ac_ext 14544fi 14545 14546 14547 CFLAGS="$xorg_testset_save_CFLAGS" 14548 14549 eval supported=\$$cacheid 14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14551$as_echo "$supported" >&6; } 14552 if test "$supported" = "yes" ; then 14553 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14554 found="yes" 14555 fi 14556 fi 14557 14558 if test $found = "no" ; then 14559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14561 fi 14562 14563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14565 fi 14566 14567 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14568 14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14570$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14571 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14572 if eval \${$cacheid+:} false; then : 14573 $as_echo_n "(cached) " >&6 14574else 14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14576/* end confdefs.h. */ 14577int i; 14578int 14579main () 14580{ 14581 14582 ; 14583 return 0; 14584} 14585_ACEOF 14586if ac_fn_c_try_link "$LINENO"; then : 14587 eval $cacheid=yes 14588else 14589 eval $cacheid=no 14590fi 14591rm -f core conftest.err conftest.$ac_objext \ 14592 conftest$ac_exeext conftest.$ac_ext 14593fi 14594 14595 14596 CFLAGS="$xorg_testset_save_CFLAGS" 14597 14598 eval supported=\$$cacheid 14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14600$as_echo "$supported" >&6; } 14601 if test "$supported" = "yes" ; then 14602 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14603 found="yes" 14604 fi 14605 fi 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621xorg_testset_save_CFLAGS="$CFLAGS" 14622 14623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14628 $as_echo_n "(cached) " >&6 14629else 14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14631/* end confdefs.h. */ 14632int i; 14633_ACEOF 14634if ac_fn_c_try_compile "$LINENO"; then : 14635 xorg_cv_cc_flag_unknown_warning_option=yes 14636else 14637 xorg_cv_cc_flag_unknown_warning_option=no 14638fi 14639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14640fi 14641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14644 CFLAGS="$xorg_testset_save_CFLAGS" 14645fi 14646 14647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14650 fi 14651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14655 $as_echo_n "(cached) " >&6 14656else 14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14658/* end confdefs.h. */ 14659int i; 14660_ACEOF 14661if ac_fn_c_try_compile "$LINENO"; then : 14662 xorg_cv_cc_flag_unused_command_line_argument=yes 14663else 14664 xorg_cv_cc_flag_unused_command_line_argument=no 14665fi 14666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14667fi 14668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14671 CFLAGS="$xorg_testset_save_CFLAGS" 14672fi 14673 14674found="no" 14675 14676 if test $found = "no" ; then 14677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14679 fi 14680 14681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14683 fi 14684 14685 CFLAGS="$CFLAGS -Werror=nonnull" 14686 14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14688$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14689 cacheid=xorg_cv_cc_flag__Werror_nonnull 14690 if eval \${$cacheid+:} false; then : 14691 $as_echo_n "(cached) " >&6 14692else 14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14694/* end confdefs.h. */ 14695int i; 14696int 14697main () 14698{ 14699 14700 ; 14701 return 0; 14702} 14703_ACEOF 14704if ac_fn_c_try_link "$LINENO"; then : 14705 eval $cacheid=yes 14706else 14707 eval $cacheid=no 14708fi 14709rm -f core conftest.err conftest.$ac_objext \ 14710 conftest$ac_exeext conftest.$ac_ext 14711fi 14712 14713 14714 CFLAGS="$xorg_testset_save_CFLAGS" 14715 14716 eval supported=\$$cacheid 14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14718$as_echo "$supported" >&6; } 14719 if test "$supported" = "yes" ; then 14720 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14721 found="yes" 14722 fi 14723 fi 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739xorg_testset_save_CFLAGS="$CFLAGS" 14740 14741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14746 $as_echo_n "(cached) " >&6 14747else 14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14749/* end confdefs.h. */ 14750int i; 14751_ACEOF 14752if ac_fn_c_try_compile "$LINENO"; then : 14753 xorg_cv_cc_flag_unknown_warning_option=yes 14754else 14755 xorg_cv_cc_flag_unknown_warning_option=no 14756fi 14757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14758fi 14759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14762 CFLAGS="$xorg_testset_save_CFLAGS" 14763fi 14764 14765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14768 fi 14769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14773 $as_echo_n "(cached) " >&6 14774else 14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14776/* end confdefs.h. */ 14777int i; 14778_ACEOF 14779if ac_fn_c_try_compile "$LINENO"; then : 14780 xorg_cv_cc_flag_unused_command_line_argument=yes 14781else 14782 xorg_cv_cc_flag_unused_command_line_argument=no 14783fi 14784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14785fi 14786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14789 CFLAGS="$xorg_testset_save_CFLAGS" 14790fi 14791 14792found="no" 14793 14794 if test $found = "no" ; then 14795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14797 fi 14798 14799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14801 fi 14802 14803 CFLAGS="$CFLAGS -Werror=init-self" 14804 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14806$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14807 cacheid=xorg_cv_cc_flag__Werror_init_self 14808 if eval \${$cacheid+:} false; then : 14809 $as_echo_n "(cached) " >&6 14810else 14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14812/* end confdefs.h. */ 14813int i; 14814int 14815main () 14816{ 14817 14818 ; 14819 return 0; 14820} 14821_ACEOF 14822if ac_fn_c_try_link "$LINENO"; then : 14823 eval $cacheid=yes 14824else 14825 eval $cacheid=no 14826fi 14827rm -f core conftest.err conftest.$ac_objext \ 14828 conftest$ac_exeext conftest.$ac_ext 14829fi 14830 14831 14832 CFLAGS="$xorg_testset_save_CFLAGS" 14833 14834 eval supported=\$$cacheid 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14836$as_echo "$supported" >&6; } 14837 if test "$supported" = "yes" ; then 14838 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14839 found="yes" 14840 fi 14841 fi 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857xorg_testset_save_CFLAGS="$CFLAGS" 14858 14859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14862$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14863if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14864 $as_echo_n "(cached) " >&6 14865else 14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14867/* end confdefs.h. */ 14868int i; 14869_ACEOF 14870if ac_fn_c_try_compile "$LINENO"; then : 14871 xorg_cv_cc_flag_unknown_warning_option=yes 14872else 14873 xorg_cv_cc_flag_unknown_warning_option=no 14874fi 14875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14876fi 14877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14878$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14880 CFLAGS="$xorg_testset_save_CFLAGS" 14881fi 14882 14883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14886 fi 14887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14889$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14890if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14891 $as_echo_n "(cached) " >&6 14892else 14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14894/* end confdefs.h. */ 14895int i; 14896_ACEOF 14897if ac_fn_c_try_compile "$LINENO"; then : 14898 xorg_cv_cc_flag_unused_command_line_argument=yes 14899else 14900 xorg_cv_cc_flag_unused_command_line_argument=no 14901fi 14902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14903fi 14904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14905$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14907 CFLAGS="$xorg_testset_save_CFLAGS" 14908fi 14909 14910found="no" 14911 14912 if test $found = "no" ; then 14913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14915 fi 14916 14917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14919 fi 14920 14921 CFLAGS="$CFLAGS -Werror=main" 14922 14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14924$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14925 cacheid=xorg_cv_cc_flag__Werror_main 14926 if eval \${$cacheid+:} false; then : 14927 $as_echo_n "(cached) " >&6 14928else 14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14930/* end confdefs.h. */ 14931int i; 14932int 14933main () 14934{ 14935 14936 ; 14937 return 0; 14938} 14939_ACEOF 14940if ac_fn_c_try_link "$LINENO"; then : 14941 eval $cacheid=yes 14942else 14943 eval $cacheid=no 14944fi 14945rm -f core conftest.err conftest.$ac_objext \ 14946 conftest$ac_exeext conftest.$ac_ext 14947fi 14948 14949 14950 CFLAGS="$xorg_testset_save_CFLAGS" 14951 14952 eval supported=\$$cacheid 14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14954$as_echo "$supported" >&6; } 14955 if test "$supported" = "yes" ; then 14956 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14957 found="yes" 14958 fi 14959 fi 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975xorg_testset_save_CFLAGS="$CFLAGS" 14976 14977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14980$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14981if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14982 $as_echo_n "(cached) " >&6 14983else 14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14985/* end confdefs.h. */ 14986int i; 14987_ACEOF 14988if ac_fn_c_try_compile "$LINENO"; then : 14989 xorg_cv_cc_flag_unknown_warning_option=yes 14990else 14991 xorg_cv_cc_flag_unknown_warning_option=no 14992fi 14993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14994fi 14995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14996$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14998 CFLAGS="$xorg_testset_save_CFLAGS" 14999fi 15000 15001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15004 fi 15005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15007$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15008if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15009 $as_echo_n "(cached) " >&6 15010else 15011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15012/* end confdefs.h. */ 15013int i; 15014_ACEOF 15015if ac_fn_c_try_compile "$LINENO"; then : 15016 xorg_cv_cc_flag_unused_command_line_argument=yes 15017else 15018 xorg_cv_cc_flag_unused_command_line_argument=no 15019fi 15020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15021fi 15022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15023$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15025 CFLAGS="$xorg_testset_save_CFLAGS" 15026fi 15027 15028found="no" 15029 15030 if test $found = "no" ; then 15031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15033 fi 15034 15035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15037 fi 15038 15039 CFLAGS="$CFLAGS -Werror=missing-braces" 15040 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15042$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15043 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15044 if eval \${$cacheid+:} false; then : 15045 $as_echo_n "(cached) " >&6 15046else 15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15048/* end confdefs.h. */ 15049int i; 15050int 15051main () 15052{ 15053 15054 ; 15055 return 0; 15056} 15057_ACEOF 15058if ac_fn_c_try_link "$LINENO"; then : 15059 eval $cacheid=yes 15060else 15061 eval $cacheid=no 15062fi 15063rm -f core conftest.err conftest.$ac_objext \ 15064 conftest$ac_exeext conftest.$ac_ext 15065fi 15066 15067 15068 CFLAGS="$xorg_testset_save_CFLAGS" 15069 15070 eval supported=\$$cacheid 15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15072$as_echo "$supported" >&6; } 15073 if test "$supported" = "yes" ; then 15074 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15075 found="yes" 15076 fi 15077 fi 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093xorg_testset_save_CFLAGS="$CFLAGS" 15094 15095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15098$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15099if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15100 $as_echo_n "(cached) " >&6 15101else 15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15103/* end confdefs.h. */ 15104int i; 15105_ACEOF 15106if ac_fn_c_try_compile "$LINENO"; then : 15107 xorg_cv_cc_flag_unknown_warning_option=yes 15108else 15109 xorg_cv_cc_flag_unknown_warning_option=no 15110fi 15111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15112fi 15113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15114$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15116 CFLAGS="$xorg_testset_save_CFLAGS" 15117fi 15118 15119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15122 fi 15123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15125$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15126if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15127 $as_echo_n "(cached) " >&6 15128else 15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15130/* end confdefs.h. */ 15131int i; 15132_ACEOF 15133if ac_fn_c_try_compile "$LINENO"; then : 15134 xorg_cv_cc_flag_unused_command_line_argument=yes 15135else 15136 xorg_cv_cc_flag_unused_command_line_argument=no 15137fi 15138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15139fi 15140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15141$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15143 CFLAGS="$xorg_testset_save_CFLAGS" 15144fi 15145 15146found="no" 15147 15148 if test $found = "no" ; then 15149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15151 fi 15152 15153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15155 fi 15156 15157 CFLAGS="$CFLAGS -Werror=sequence-point" 15158 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15160$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15161 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15162 if eval \${$cacheid+:} false; then : 15163 $as_echo_n "(cached) " >&6 15164else 15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15166/* end confdefs.h. */ 15167int i; 15168int 15169main () 15170{ 15171 15172 ; 15173 return 0; 15174} 15175_ACEOF 15176if ac_fn_c_try_link "$LINENO"; then : 15177 eval $cacheid=yes 15178else 15179 eval $cacheid=no 15180fi 15181rm -f core conftest.err conftest.$ac_objext \ 15182 conftest$ac_exeext conftest.$ac_ext 15183fi 15184 15185 15186 CFLAGS="$xorg_testset_save_CFLAGS" 15187 15188 eval supported=\$$cacheid 15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15190$as_echo "$supported" >&6; } 15191 if test "$supported" = "yes" ; then 15192 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15193 found="yes" 15194 fi 15195 fi 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211xorg_testset_save_CFLAGS="$CFLAGS" 15212 15213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15216$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15217if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15218 $as_echo_n "(cached) " >&6 15219else 15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15221/* end confdefs.h. */ 15222int i; 15223_ACEOF 15224if ac_fn_c_try_compile "$LINENO"; then : 15225 xorg_cv_cc_flag_unknown_warning_option=yes 15226else 15227 xorg_cv_cc_flag_unknown_warning_option=no 15228fi 15229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15230fi 15231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15232$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15234 CFLAGS="$xorg_testset_save_CFLAGS" 15235fi 15236 15237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15240 fi 15241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15244if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15245 $as_echo_n "(cached) " >&6 15246else 15247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15248/* end confdefs.h. */ 15249int i; 15250_ACEOF 15251if ac_fn_c_try_compile "$LINENO"; then : 15252 xorg_cv_cc_flag_unused_command_line_argument=yes 15253else 15254 xorg_cv_cc_flag_unused_command_line_argument=no 15255fi 15256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15257fi 15258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15259$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15261 CFLAGS="$xorg_testset_save_CFLAGS" 15262fi 15263 15264found="no" 15265 15266 if test $found = "no" ; then 15267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15269 fi 15270 15271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15273 fi 15274 15275 CFLAGS="$CFLAGS -Werror=return-type" 15276 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15278$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15279 cacheid=xorg_cv_cc_flag__Werror_return_type 15280 if eval \${$cacheid+:} false; then : 15281 $as_echo_n "(cached) " >&6 15282else 15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15284/* end confdefs.h. */ 15285int i; 15286int 15287main () 15288{ 15289 15290 ; 15291 return 0; 15292} 15293_ACEOF 15294if ac_fn_c_try_link "$LINENO"; then : 15295 eval $cacheid=yes 15296else 15297 eval $cacheid=no 15298fi 15299rm -f core conftest.err conftest.$ac_objext \ 15300 conftest$ac_exeext conftest.$ac_ext 15301fi 15302 15303 15304 CFLAGS="$xorg_testset_save_CFLAGS" 15305 15306 eval supported=\$$cacheid 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15308$as_echo "$supported" >&6; } 15309 if test "$supported" = "yes" ; then 15310 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15311 found="yes" 15312 fi 15313 fi 15314 15315 if test $found = "no" ; then 15316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15318 fi 15319 15320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15322 fi 15323 15324 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15325 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15327$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15328 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15329 if eval \${$cacheid+:} false; then : 15330 $as_echo_n "(cached) " >&6 15331else 15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15333/* end confdefs.h. */ 15334int i; 15335int 15336main () 15337{ 15338 15339 ; 15340 return 0; 15341} 15342_ACEOF 15343if ac_fn_c_try_link "$LINENO"; then : 15344 eval $cacheid=yes 15345else 15346 eval $cacheid=no 15347fi 15348rm -f core conftest.err conftest.$ac_objext \ 15349 conftest$ac_exeext conftest.$ac_ext 15350fi 15351 15352 15353 CFLAGS="$xorg_testset_save_CFLAGS" 15354 15355 eval supported=\$$cacheid 15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15357$as_echo "$supported" >&6; } 15358 if test "$supported" = "yes" ; then 15359 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15360 found="yes" 15361 fi 15362 fi 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378xorg_testset_save_CFLAGS="$CFLAGS" 15379 15380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15385 $as_echo_n "(cached) " >&6 15386else 15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15388/* end confdefs.h. */ 15389int i; 15390_ACEOF 15391if ac_fn_c_try_compile "$LINENO"; then : 15392 xorg_cv_cc_flag_unknown_warning_option=yes 15393else 15394 xorg_cv_cc_flag_unknown_warning_option=no 15395fi 15396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15397fi 15398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15401 CFLAGS="$xorg_testset_save_CFLAGS" 15402fi 15403 15404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15407 fi 15408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15412 $as_echo_n "(cached) " >&6 15413else 15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15415/* end confdefs.h. */ 15416int i; 15417_ACEOF 15418if ac_fn_c_try_compile "$LINENO"; then : 15419 xorg_cv_cc_flag_unused_command_line_argument=yes 15420else 15421 xorg_cv_cc_flag_unused_command_line_argument=no 15422fi 15423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15424fi 15425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15428 CFLAGS="$xorg_testset_save_CFLAGS" 15429fi 15430 15431found="no" 15432 15433 if test $found = "no" ; then 15434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15436 fi 15437 15438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15440 fi 15441 15442 CFLAGS="$CFLAGS -Werror=trigraphs" 15443 15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15445$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15446 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15447 if eval \${$cacheid+:} false; then : 15448 $as_echo_n "(cached) " >&6 15449else 15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15451/* end confdefs.h. */ 15452int i; 15453int 15454main () 15455{ 15456 15457 ; 15458 return 0; 15459} 15460_ACEOF 15461if ac_fn_c_try_link "$LINENO"; then : 15462 eval $cacheid=yes 15463else 15464 eval $cacheid=no 15465fi 15466rm -f core conftest.err conftest.$ac_objext \ 15467 conftest$ac_exeext conftest.$ac_ext 15468fi 15469 15470 15471 CFLAGS="$xorg_testset_save_CFLAGS" 15472 15473 eval supported=\$$cacheid 15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15475$as_echo "$supported" >&6; } 15476 if test "$supported" = "yes" ; then 15477 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15478 found="yes" 15479 fi 15480 fi 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496xorg_testset_save_CFLAGS="$CFLAGS" 15497 15498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15503 $as_echo_n "(cached) " >&6 15504else 15505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15506/* end confdefs.h. */ 15507int i; 15508_ACEOF 15509if ac_fn_c_try_compile "$LINENO"; then : 15510 xorg_cv_cc_flag_unknown_warning_option=yes 15511else 15512 xorg_cv_cc_flag_unknown_warning_option=no 15513fi 15514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15515fi 15516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15519 CFLAGS="$xorg_testset_save_CFLAGS" 15520fi 15521 15522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15525 fi 15526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15530 $as_echo_n "(cached) " >&6 15531else 15532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15533/* end confdefs.h. */ 15534int i; 15535_ACEOF 15536if ac_fn_c_try_compile "$LINENO"; then : 15537 xorg_cv_cc_flag_unused_command_line_argument=yes 15538else 15539 xorg_cv_cc_flag_unused_command_line_argument=no 15540fi 15541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15542fi 15543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15546 CFLAGS="$xorg_testset_save_CFLAGS" 15547fi 15548 15549found="no" 15550 15551 if test $found = "no" ; then 15552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15554 fi 15555 15556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15558 fi 15559 15560 CFLAGS="$CFLAGS -Werror=array-bounds" 15561 15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15563$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15564 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15565 if eval \${$cacheid+:} false; then : 15566 $as_echo_n "(cached) " >&6 15567else 15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15569/* end confdefs.h. */ 15570int i; 15571int 15572main () 15573{ 15574 15575 ; 15576 return 0; 15577} 15578_ACEOF 15579if ac_fn_c_try_link "$LINENO"; then : 15580 eval $cacheid=yes 15581else 15582 eval $cacheid=no 15583fi 15584rm -f core conftest.err conftest.$ac_objext \ 15585 conftest$ac_exeext conftest.$ac_ext 15586fi 15587 15588 15589 CFLAGS="$xorg_testset_save_CFLAGS" 15590 15591 eval supported=\$$cacheid 15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15593$as_echo "$supported" >&6; } 15594 if test "$supported" = "yes" ; then 15595 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15596 found="yes" 15597 fi 15598 fi 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614xorg_testset_save_CFLAGS="$CFLAGS" 15615 15616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15621 $as_echo_n "(cached) " >&6 15622else 15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15624/* end confdefs.h. */ 15625int i; 15626_ACEOF 15627if ac_fn_c_try_compile "$LINENO"; then : 15628 xorg_cv_cc_flag_unknown_warning_option=yes 15629else 15630 xorg_cv_cc_flag_unknown_warning_option=no 15631fi 15632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15633fi 15634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15637 CFLAGS="$xorg_testset_save_CFLAGS" 15638fi 15639 15640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15643 fi 15644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15648 $as_echo_n "(cached) " >&6 15649else 15650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15651/* end confdefs.h. */ 15652int i; 15653_ACEOF 15654if ac_fn_c_try_compile "$LINENO"; then : 15655 xorg_cv_cc_flag_unused_command_line_argument=yes 15656else 15657 xorg_cv_cc_flag_unused_command_line_argument=no 15658fi 15659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15660fi 15661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15664 CFLAGS="$xorg_testset_save_CFLAGS" 15665fi 15666 15667found="no" 15668 15669 if test $found = "no" ; then 15670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15672 fi 15673 15674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15676 fi 15677 15678 CFLAGS="$CFLAGS -Werror=write-strings" 15679 15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15681$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15682 cacheid=xorg_cv_cc_flag__Werror_write_strings 15683 if eval \${$cacheid+:} false; then : 15684 $as_echo_n "(cached) " >&6 15685else 15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15687/* end confdefs.h. */ 15688int i; 15689int 15690main () 15691{ 15692 15693 ; 15694 return 0; 15695} 15696_ACEOF 15697if ac_fn_c_try_link "$LINENO"; then : 15698 eval $cacheid=yes 15699else 15700 eval $cacheid=no 15701fi 15702rm -f core conftest.err conftest.$ac_objext \ 15703 conftest$ac_exeext conftest.$ac_ext 15704fi 15705 15706 15707 CFLAGS="$xorg_testset_save_CFLAGS" 15708 15709 eval supported=\$$cacheid 15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15711$as_echo "$supported" >&6; } 15712 if test "$supported" = "yes" ; then 15713 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15714 found="yes" 15715 fi 15716 fi 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732xorg_testset_save_CFLAGS="$CFLAGS" 15733 15734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15737$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15738if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15739 $as_echo_n "(cached) " >&6 15740else 15741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15742/* end confdefs.h. */ 15743int i; 15744_ACEOF 15745if ac_fn_c_try_compile "$LINENO"; then : 15746 xorg_cv_cc_flag_unknown_warning_option=yes 15747else 15748 xorg_cv_cc_flag_unknown_warning_option=no 15749fi 15750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15751fi 15752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15753$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15755 CFLAGS="$xorg_testset_save_CFLAGS" 15756fi 15757 15758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15761 fi 15762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15764$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15765if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15766 $as_echo_n "(cached) " >&6 15767else 15768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15769/* end confdefs.h. */ 15770int i; 15771_ACEOF 15772if ac_fn_c_try_compile "$LINENO"; then : 15773 xorg_cv_cc_flag_unused_command_line_argument=yes 15774else 15775 xorg_cv_cc_flag_unused_command_line_argument=no 15776fi 15777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15778fi 15779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15780$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15782 CFLAGS="$xorg_testset_save_CFLAGS" 15783fi 15784 15785found="no" 15786 15787 if test $found = "no" ; then 15788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15790 fi 15791 15792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15794 fi 15795 15796 CFLAGS="$CFLAGS -Werror=address" 15797 15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15799$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15800 cacheid=xorg_cv_cc_flag__Werror_address 15801 if eval \${$cacheid+:} false; then : 15802 $as_echo_n "(cached) " >&6 15803else 15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15805/* end confdefs.h. */ 15806int i; 15807int 15808main () 15809{ 15810 15811 ; 15812 return 0; 15813} 15814_ACEOF 15815if ac_fn_c_try_link "$LINENO"; then : 15816 eval $cacheid=yes 15817else 15818 eval $cacheid=no 15819fi 15820rm -f core conftest.err conftest.$ac_objext \ 15821 conftest$ac_exeext conftest.$ac_ext 15822fi 15823 15824 15825 CFLAGS="$xorg_testset_save_CFLAGS" 15826 15827 eval supported=\$$cacheid 15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15829$as_echo "$supported" >&6; } 15830 if test "$supported" = "yes" ; then 15831 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15832 found="yes" 15833 fi 15834 fi 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850xorg_testset_save_CFLAGS="$CFLAGS" 15851 15852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15855$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15856if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15857 $as_echo_n "(cached) " >&6 15858else 15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15860/* end confdefs.h. */ 15861int i; 15862_ACEOF 15863if ac_fn_c_try_compile "$LINENO"; then : 15864 xorg_cv_cc_flag_unknown_warning_option=yes 15865else 15866 xorg_cv_cc_flag_unknown_warning_option=no 15867fi 15868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15869fi 15870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15871$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15873 CFLAGS="$xorg_testset_save_CFLAGS" 15874fi 15875 15876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15879 fi 15880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15882$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15883if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15884 $as_echo_n "(cached) " >&6 15885else 15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15887/* end confdefs.h. */ 15888int i; 15889_ACEOF 15890if ac_fn_c_try_compile "$LINENO"; then : 15891 xorg_cv_cc_flag_unused_command_line_argument=yes 15892else 15893 xorg_cv_cc_flag_unused_command_line_argument=no 15894fi 15895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15896fi 15897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15898$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15900 CFLAGS="$xorg_testset_save_CFLAGS" 15901fi 15902 15903found="no" 15904 15905 if test $found = "no" ; then 15906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15908 fi 15909 15910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15912 fi 15913 15914 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15915 15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15917$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15918 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15919 if eval \${$cacheid+:} false; then : 15920 $as_echo_n "(cached) " >&6 15921else 15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15923/* end confdefs.h. */ 15924int i; 15925int 15926main () 15927{ 15928 15929 ; 15930 return 0; 15931} 15932_ACEOF 15933if ac_fn_c_try_link "$LINENO"; then : 15934 eval $cacheid=yes 15935else 15936 eval $cacheid=no 15937fi 15938rm -f core conftest.err conftest.$ac_objext \ 15939 conftest$ac_exeext conftest.$ac_ext 15940fi 15941 15942 15943 CFLAGS="$xorg_testset_save_CFLAGS" 15944 15945 eval supported=\$$cacheid 15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15947$as_echo "$supported" >&6; } 15948 if test "$supported" = "yes" ; then 15949 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15950 found="yes" 15951 fi 15952 fi 15953 15954 if test $found = "no" ; then 15955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15957 fi 15958 15959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15961 fi 15962 15963 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15964 15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15966$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15967 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15968 if eval \${$cacheid+:} false; then : 15969 $as_echo_n "(cached) " >&6 15970else 15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15972/* end confdefs.h. */ 15973int i; 15974int 15975main () 15976{ 15977 15978 ; 15979 return 0; 15980} 15981_ACEOF 15982if ac_fn_c_try_link "$LINENO"; then : 15983 eval $cacheid=yes 15984else 15985 eval $cacheid=no 15986fi 15987rm -f core conftest.err conftest.$ac_objext \ 15988 conftest$ac_exeext conftest.$ac_ext 15989fi 15990 15991 15992 CFLAGS="$xorg_testset_save_CFLAGS" 15993 15994 eval supported=\$$cacheid 15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15996$as_echo "$supported" >&6; } 15997 if test "$supported" = "yes" ; then 15998 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15999 found="yes" 16000 fi 16001 fi 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017xorg_testset_save_CFLAGS="$CFLAGS" 16018 16019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16022$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16023if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16024 $as_echo_n "(cached) " >&6 16025else 16026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16027/* end confdefs.h. */ 16028int i; 16029_ACEOF 16030if ac_fn_c_try_compile "$LINENO"; then : 16031 xorg_cv_cc_flag_unknown_warning_option=yes 16032else 16033 xorg_cv_cc_flag_unknown_warning_option=no 16034fi 16035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16036fi 16037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16038$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16040 CFLAGS="$xorg_testset_save_CFLAGS" 16041fi 16042 16043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16046 fi 16047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16049$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16050if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16051 $as_echo_n "(cached) " >&6 16052else 16053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16054/* end confdefs.h. */ 16055int i; 16056_ACEOF 16057if ac_fn_c_try_compile "$LINENO"; then : 16058 xorg_cv_cc_flag_unused_command_line_argument=yes 16059else 16060 xorg_cv_cc_flag_unused_command_line_argument=no 16061fi 16062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16063fi 16064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16065$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16067 CFLAGS="$xorg_testset_save_CFLAGS" 16068fi 16069 16070found="no" 16071 16072 if test $found = "no" ; then 16073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16075 fi 16076 16077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16079 fi 16080 16081 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16082 16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16084$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16085 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16086 if eval \${$cacheid+:} false; then : 16087 $as_echo_n "(cached) " >&6 16088else 16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16090/* end confdefs.h. */ 16091int i; 16092int 16093main () 16094{ 16095 16096 ; 16097 return 0; 16098} 16099_ACEOF 16100if ac_fn_c_try_link "$LINENO"; then : 16101 eval $cacheid=yes 16102else 16103 eval $cacheid=no 16104fi 16105rm -f core conftest.err conftest.$ac_objext \ 16106 conftest$ac_exeext conftest.$ac_ext 16107fi 16108 16109 16110 CFLAGS="$xorg_testset_save_CFLAGS" 16111 16112 eval supported=\$$cacheid 16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16114$as_echo "$supported" >&6; } 16115 if test "$supported" = "yes" ; then 16116 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16117 found="yes" 16118 fi 16119 fi 16120 16121 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16122else 16123{ $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 16124$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;} 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138xorg_testset_save_CFLAGS="$CFLAGS" 16139 16140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16143$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16144if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16145 $as_echo_n "(cached) " >&6 16146else 16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16148/* end confdefs.h. */ 16149int i; 16150_ACEOF 16151if ac_fn_c_try_compile "$LINENO"; then : 16152 xorg_cv_cc_flag_unknown_warning_option=yes 16153else 16154 xorg_cv_cc_flag_unknown_warning_option=no 16155fi 16156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16157fi 16158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16159$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16161 CFLAGS="$xorg_testset_save_CFLAGS" 16162fi 16163 16164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16167 fi 16168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16170$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16171if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16172 $as_echo_n "(cached) " >&6 16173else 16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16175/* end confdefs.h. */ 16176int i; 16177_ACEOF 16178if ac_fn_c_try_compile "$LINENO"; then : 16179 xorg_cv_cc_flag_unused_command_line_argument=yes 16180else 16181 xorg_cv_cc_flag_unused_command_line_argument=no 16182fi 16183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16184fi 16185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16186$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16188 CFLAGS="$xorg_testset_save_CFLAGS" 16189fi 16190 16191found="no" 16192 16193 if test $found = "no" ; then 16194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16196 fi 16197 16198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16200 fi 16201 16202 CFLAGS="$CFLAGS -Wimplicit" 16203 16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16205$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16206 cacheid=xorg_cv_cc_flag__Wimplicit 16207 if eval \${$cacheid+:} false; then : 16208 $as_echo_n "(cached) " >&6 16209else 16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16211/* end confdefs.h. */ 16212int i; 16213int 16214main () 16215{ 16216 16217 ; 16218 return 0; 16219} 16220_ACEOF 16221if ac_fn_c_try_link "$LINENO"; then : 16222 eval $cacheid=yes 16223else 16224 eval $cacheid=no 16225fi 16226rm -f core conftest.err conftest.$ac_objext \ 16227 conftest$ac_exeext conftest.$ac_ext 16228fi 16229 16230 16231 CFLAGS="$xorg_testset_save_CFLAGS" 16232 16233 eval supported=\$$cacheid 16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16235$as_echo "$supported" >&6; } 16236 if test "$supported" = "yes" ; then 16237 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16238 found="yes" 16239 fi 16240 fi 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256xorg_testset_save_CFLAGS="$CFLAGS" 16257 16258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16261$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16262if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16263 $as_echo_n "(cached) " >&6 16264else 16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16266/* end confdefs.h. */ 16267int i; 16268_ACEOF 16269if ac_fn_c_try_compile "$LINENO"; then : 16270 xorg_cv_cc_flag_unknown_warning_option=yes 16271else 16272 xorg_cv_cc_flag_unknown_warning_option=no 16273fi 16274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16275fi 16276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16277$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16279 CFLAGS="$xorg_testset_save_CFLAGS" 16280fi 16281 16282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16285 fi 16286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16288$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16289if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16290 $as_echo_n "(cached) " >&6 16291else 16292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16293/* end confdefs.h. */ 16294int i; 16295_ACEOF 16296if ac_fn_c_try_compile "$LINENO"; then : 16297 xorg_cv_cc_flag_unused_command_line_argument=yes 16298else 16299 xorg_cv_cc_flag_unused_command_line_argument=no 16300fi 16301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16302fi 16303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16304$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16306 CFLAGS="$xorg_testset_save_CFLAGS" 16307fi 16308 16309found="no" 16310 16311 if test $found = "no" ; then 16312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16314 fi 16315 16316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16318 fi 16319 16320 CFLAGS="$CFLAGS -Wnonnull" 16321 16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16323$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16324 cacheid=xorg_cv_cc_flag__Wnonnull 16325 if eval \${$cacheid+:} false; then : 16326 $as_echo_n "(cached) " >&6 16327else 16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16329/* end confdefs.h. */ 16330int i; 16331int 16332main () 16333{ 16334 16335 ; 16336 return 0; 16337} 16338_ACEOF 16339if ac_fn_c_try_link "$LINENO"; then : 16340 eval $cacheid=yes 16341else 16342 eval $cacheid=no 16343fi 16344rm -f core conftest.err conftest.$ac_objext \ 16345 conftest$ac_exeext conftest.$ac_ext 16346fi 16347 16348 16349 CFLAGS="$xorg_testset_save_CFLAGS" 16350 16351 eval supported=\$$cacheid 16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16353$as_echo "$supported" >&6; } 16354 if test "$supported" = "yes" ; then 16355 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16356 found="yes" 16357 fi 16358 fi 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374xorg_testset_save_CFLAGS="$CFLAGS" 16375 16376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16379$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16380if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16381 $as_echo_n "(cached) " >&6 16382else 16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16384/* end confdefs.h. */ 16385int i; 16386_ACEOF 16387if ac_fn_c_try_compile "$LINENO"; then : 16388 xorg_cv_cc_flag_unknown_warning_option=yes 16389else 16390 xorg_cv_cc_flag_unknown_warning_option=no 16391fi 16392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16393fi 16394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16395$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16397 CFLAGS="$xorg_testset_save_CFLAGS" 16398fi 16399 16400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16403 fi 16404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16406$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16407if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16408 $as_echo_n "(cached) " >&6 16409else 16410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16411/* end confdefs.h. */ 16412int i; 16413_ACEOF 16414if ac_fn_c_try_compile "$LINENO"; then : 16415 xorg_cv_cc_flag_unused_command_line_argument=yes 16416else 16417 xorg_cv_cc_flag_unused_command_line_argument=no 16418fi 16419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16420fi 16421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16422$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16424 CFLAGS="$xorg_testset_save_CFLAGS" 16425fi 16426 16427found="no" 16428 16429 if test $found = "no" ; then 16430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16432 fi 16433 16434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16436 fi 16437 16438 CFLAGS="$CFLAGS -Winit-self" 16439 16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16441$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16442 cacheid=xorg_cv_cc_flag__Winit_self 16443 if eval \${$cacheid+:} false; then : 16444 $as_echo_n "(cached) " >&6 16445else 16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16447/* end confdefs.h. */ 16448int i; 16449int 16450main () 16451{ 16452 16453 ; 16454 return 0; 16455} 16456_ACEOF 16457if ac_fn_c_try_link "$LINENO"; then : 16458 eval $cacheid=yes 16459else 16460 eval $cacheid=no 16461fi 16462rm -f core conftest.err conftest.$ac_objext \ 16463 conftest$ac_exeext conftest.$ac_ext 16464fi 16465 16466 16467 CFLAGS="$xorg_testset_save_CFLAGS" 16468 16469 eval supported=\$$cacheid 16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16471$as_echo "$supported" >&6; } 16472 if test "$supported" = "yes" ; then 16473 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16474 found="yes" 16475 fi 16476 fi 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492xorg_testset_save_CFLAGS="$CFLAGS" 16493 16494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16497$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16498if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16499 $as_echo_n "(cached) " >&6 16500else 16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16502/* end confdefs.h. */ 16503int i; 16504_ACEOF 16505if ac_fn_c_try_compile "$LINENO"; then : 16506 xorg_cv_cc_flag_unknown_warning_option=yes 16507else 16508 xorg_cv_cc_flag_unknown_warning_option=no 16509fi 16510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16511fi 16512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16513$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16515 CFLAGS="$xorg_testset_save_CFLAGS" 16516fi 16517 16518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16521 fi 16522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16525if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16526 $as_echo_n "(cached) " >&6 16527else 16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16529/* end confdefs.h. */ 16530int i; 16531_ACEOF 16532if ac_fn_c_try_compile "$LINENO"; then : 16533 xorg_cv_cc_flag_unused_command_line_argument=yes 16534else 16535 xorg_cv_cc_flag_unused_command_line_argument=no 16536fi 16537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16538fi 16539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16540$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16542 CFLAGS="$xorg_testset_save_CFLAGS" 16543fi 16544 16545found="no" 16546 16547 if test $found = "no" ; then 16548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16550 fi 16551 16552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16554 fi 16555 16556 CFLAGS="$CFLAGS -Wmain" 16557 16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16559$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16560 cacheid=xorg_cv_cc_flag__Wmain 16561 if eval \${$cacheid+:} false; then : 16562 $as_echo_n "(cached) " >&6 16563else 16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16565/* end confdefs.h. */ 16566int i; 16567int 16568main () 16569{ 16570 16571 ; 16572 return 0; 16573} 16574_ACEOF 16575if ac_fn_c_try_link "$LINENO"; then : 16576 eval $cacheid=yes 16577else 16578 eval $cacheid=no 16579fi 16580rm -f core conftest.err conftest.$ac_objext \ 16581 conftest$ac_exeext conftest.$ac_ext 16582fi 16583 16584 16585 CFLAGS="$xorg_testset_save_CFLAGS" 16586 16587 eval supported=\$$cacheid 16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16589$as_echo "$supported" >&6; } 16590 if test "$supported" = "yes" ; then 16591 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16592 found="yes" 16593 fi 16594 fi 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610xorg_testset_save_CFLAGS="$CFLAGS" 16611 16612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16615$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16616if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16617 $as_echo_n "(cached) " >&6 16618else 16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16620/* end confdefs.h. */ 16621int i; 16622_ACEOF 16623if ac_fn_c_try_compile "$LINENO"; then : 16624 xorg_cv_cc_flag_unknown_warning_option=yes 16625else 16626 xorg_cv_cc_flag_unknown_warning_option=no 16627fi 16628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16629fi 16630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16631$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16633 CFLAGS="$xorg_testset_save_CFLAGS" 16634fi 16635 16636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16639 fi 16640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16642$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16643if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16644 $as_echo_n "(cached) " >&6 16645else 16646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16647/* end confdefs.h. */ 16648int i; 16649_ACEOF 16650if ac_fn_c_try_compile "$LINENO"; then : 16651 xorg_cv_cc_flag_unused_command_line_argument=yes 16652else 16653 xorg_cv_cc_flag_unused_command_line_argument=no 16654fi 16655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16656fi 16657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16658$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16660 CFLAGS="$xorg_testset_save_CFLAGS" 16661fi 16662 16663found="no" 16664 16665 if test $found = "no" ; then 16666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16668 fi 16669 16670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16672 fi 16673 16674 CFLAGS="$CFLAGS -Wmissing-braces" 16675 16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16677$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16678 cacheid=xorg_cv_cc_flag__Wmissing_braces 16679 if eval \${$cacheid+:} false; then : 16680 $as_echo_n "(cached) " >&6 16681else 16682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16683/* end confdefs.h. */ 16684int i; 16685int 16686main () 16687{ 16688 16689 ; 16690 return 0; 16691} 16692_ACEOF 16693if ac_fn_c_try_link "$LINENO"; then : 16694 eval $cacheid=yes 16695else 16696 eval $cacheid=no 16697fi 16698rm -f core conftest.err conftest.$ac_objext \ 16699 conftest$ac_exeext conftest.$ac_ext 16700fi 16701 16702 16703 CFLAGS="$xorg_testset_save_CFLAGS" 16704 16705 eval supported=\$$cacheid 16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16707$as_echo "$supported" >&6; } 16708 if test "$supported" = "yes" ; then 16709 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16710 found="yes" 16711 fi 16712 fi 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728xorg_testset_save_CFLAGS="$CFLAGS" 16729 16730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16733$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16734if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16735 $as_echo_n "(cached) " >&6 16736else 16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16738/* end confdefs.h. */ 16739int i; 16740_ACEOF 16741if ac_fn_c_try_compile "$LINENO"; then : 16742 xorg_cv_cc_flag_unknown_warning_option=yes 16743else 16744 xorg_cv_cc_flag_unknown_warning_option=no 16745fi 16746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16747fi 16748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16749$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16751 CFLAGS="$xorg_testset_save_CFLAGS" 16752fi 16753 16754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16757 fi 16758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16760$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16761if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16762 $as_echo_n "(cached) " >&6 16763else 16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16765/* end confdefs.h. */ 16766int i; 16767_ACEOF 16768if ac_fn_c_try_compile "$LINENO"; then : 16769 xorg_cv_cc_flag_unused_command_line_argument=yes 16770else 16771 xorg_cv_cc_flag_unused_command_line_argument=no 16772fi 16773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16774fi 16775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16776$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16778 CFLAGS="$xorg_testset_save_CFLAGS" 16779fi 16780 16781found="no" 16782 16783 if test $found = "no" ; then 16784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16786 fi 16787 16788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16790 fi 16791 16792 CFLAGS="$CFLAGS -Wsequence-point" 16793 16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16795$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16796 cacheid=xorg_cv_cc_flag__Wsequence_point 16797 if eval \${$cacheid+:} false; then : 16798 $as_echo_n "(cached) " >&6 16799else 16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16801/* end confdefs.h. */ 16802int i; 16803int 16804main () 16805{ 16806 16807 ; 16808 return 0; 16809} 16810_ACEOF 16811if ac_fn_c_try_link "$LINENO"; then : 16812 eval $cacheid=yes 16813else 16814 eval $cacheid=no 16815fi 16816rm -f core conftest.err conftest.$ac_objext \ 16817 conftest$ac_exeext conftest.$ac_ext 16818fi 16819 16820 16821 CFLAGS="$xorg_testset_save_CFLAGS" 16822 16823 eval supported=\$$cacheid 16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16825$as_echo "$supported" >&6; } 16826 if test "$supported" = "yes" ; then 16827 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16828 found="yes" 16829 fi 16830 fi 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846xorg_testset_save_CFLAGS="$CFLAGS" 16847 16848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16853 $as_echo_n "(cached) " >&6 16854else 16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16856/* end confdefs.h. */ 16857int i; 16858_ACEOF 16859if ac_fn_c_try_compile "$LINENO"; then : 16860 xorg_cv_cc_flag_unknown_warning_option=yes 16861else 16862 xorg_cv_cc_flag_unknown_warning_option=no 16863fi 16864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16865fi 16866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16869 CFLAGS="$xorg_testset_save_CFLAGS" 16870fi 16871 16872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16875 fi 16876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16880 $as_echo_n "(cached) " >&6 16881else 16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16883/* end confdefs.h. */ 16884int i; 16885_ACEOF 16886if ac_fn_c_try_compile "$LINENO"; then : 16887 xorg_cv_cc_flag_unused_command_line_argument=yes 16888else 16889 xorg_cv_cc_flag_unused_command_line_argument=no 16890fi 16891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16892fi 16893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16896 CFLAGS="$xorg_testset_save_CFLAGS" 16897fi 16898 16899found="no" 16900 16901 if test $found = "no" ; then 16902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16904 fi 16905 16906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16908 fi 16909 16910 CFLAGS="$CFLAGS -Wreturn-type" 16911 16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16913$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16914 cacheid=xorg_cv_cc_flag__Wreturn_type 16915 if eval \${$cacheid+:} false; then : 16916 $as_echo_n "(cached) " >&6 16917else 16918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16919/* end confdefs.h. */ 16920int i; 16921int 16922main () 16923{ 16924 16925 ; 16926 return 0; 16927} 16928_ACEOF 16929if ac_fn_c_try_link "$LINENO"; then : 16930 eval $cacheid=yes 16931else 16932 eval $cacheid=no 16933fi 16934rm -f core conftest.err conftest.$ac_objext \ 16935 conftest$ac_exeext conftest.$ac_ext 16936fi 16937 16938 16939 CFLAGS="$xorg_testset_save_CFLAGS" 16940 16941 eval supported=\$$cacheid 16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16943$as_echo "$supported" >&6; } 16944 if test "$supported" = "yes" ; then 16945 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16946 found="yes" 16947 fi 16948 fi 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964xorg_testset_save_CFLAGS="$CFLAGS" 16965 16966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16971 $as_echo_n "(cached) " >&6 16972else 16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16974/* end confdefs.h. */ 16975int i; 16976_ACEOF 16977if ac_fn_c_try_compile "$LINENO"; then : 16978 xorg_cv_cc_flag_unknown_warning_option=yes 16979else 16980 xorg_cv_cc_flag_unknown_warning_option=no 16981fi 16982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16983fi 16984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16987 CFLAGS="$xorg_testset_save_CFLAGS" 16988fi 16989 16990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16993 fi 16994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16998 $as_echo_n "(cached) " >&6 16999else 17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17001/* end confdefs.h. */ 17002int i; 17003_ACEOF 17004if ac_fn_c_try_compile "$LINENO"; then : 17005 xorg_cv_cc_flag_unused_command_line_argument=yes 17006else 17007 xorg_cv_cc_flag_unused_command_line_argument=no 17008fi 17009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17010fi 17011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17014 CFLAGS="$xorg_testset_save_CFLAGS" 17015fi 17016 17017found="no" 17018 17019 if test $found = "no" ; then 17020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17022 fi 17023 17024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17026 fi 17027 17028 CFLAGS="$CFLAGS -Wtrigraphs" 17029 17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17031$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17032 cacheid=xorg_cv_cc_flag__Wtrigraphs 17033 if eval \${$cacheid+:} false; then : 17034 $as_echo_n "(cached) " >&6 17035else 17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17037/* end confdefs.h. */ 17038int i; 17039int 17040main () 17041{ 17042 17043 ; 17044 return 0; 17045} 17046_ACEOF 17047if ac_fn_c_try_link "$LINENO"; then : 17048 eval $cacheid=yes 17049else 17050 eval $cacheid=no 17051fi 17052rm -f core conftest.err conftest.$ac_objext \ 17053 conftest$ac_exeext conftest.$ac_ext 17054fi 17055 17056 17057 CFLAGS="$xorg_testset_save_CFLAGS" 17058 17059 eval supported=\$$cacheid 17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17061$as_echo "$supported" >&6; } 17062 if test "$supported" = "yes" ; then 17063 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17064 found="yes" 17065 fi 17066 fi 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082xorg_testset_save_CFLAGS="$CFLAGS" 17083 17084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17089 $as_echo_n "(cached) " >&6 17090else 17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17092/* end confdefs.h. */ 17093int i; 17094_ACEOF 17095if ac_fn_c_try_compile "$LINENO"; then : 17096 xorg_cv_cc_flag_unknown_warning_option=yes 17097else 17098 xorg_cv_cc_flag_unknown_warning_option=no 17099fi 17100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17101fi 17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17105 CFLAGS="$xorg_testset_save_CFLAGS" 17106fi 17107 17108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17111 fi 17112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17116 $as_echo_n "(cached) " >&6 17117else 17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17119/* end confdefs.h. */ 17120int i; 17121_ACEOF 17122if ac_fn_c_try_compile "$LINENO"; then : 17123 xorg_cv_cc_flag_unused_command_line_argument=yes 17124else 17125 xorg_cv_cc_flag_unused_command_line_argument=no 17126fi 17127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17128fi 17129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17132 CFLAGS="$xorg_testset_save_CFLAGS" 17133fi 17134 17135found="no" 17136 17137 if test $found = "no" ; then 17138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17140 fi 17141 17142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17144 fi 17145 17146 CFLAGS="$CFLAGS -Warray-bounds" 17147 17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17149$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17150 cacheid=xorg_cv_cc_flag__Warray_bounds 17151 if eval \${$cacheid+:} false; then : 17152 $as_echo_n "(cached) " >&6 17153else 17154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17155/* end confdefs.h. */ 17156int i; 17157int 17158main () 17159{ 17160 17161 ; 17162 return 0; 17163} 17164_ACEOF 17165if ac_fn_c_try_link "$LINENO"; then : 17166 eval $cacheid=yes 17167else 17168 eval $cacheid=no 17169fi 17170rm -f core conftest.err conftest.$ac_objext \ 17171 conftest$ac_exeext conftest.$ac_ext 17172fi 17173 17174 17175 CFLAGS="$xorg_testset_save_CFLAGS" 17176 17177 eval supported=\$$cacheid 17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17179$as_echo "$supported" >&6; } 17180 if test "$supported" = "yes" ; then 17181 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17182 found="yes" 17183 fi 17184 fi 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200xorg_testset_save_CFLAGS="$CFLAGS" 17201 17202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17207 $as_echo_n "(cached) " >&6 17208else 17209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17210/* end confdefs.h. */ 17211int i; 17212_ACEOF 17213if ac_fn_c_try_compile "$LINENO"; then : 17214 xorg_cv_cc_flag_unknown_warning_option=yes 17215else 17216 xorg_cv_cc_flag_unknown_warning_option=no 17217fi 17218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17219fi 17220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17223 CFLAGS="$xorg_testset_save_CFLAGS" 17224fi 17225 17226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17229 fi 17230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17234 $as_echo_n "(cached) " >&6 17235else 17236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17237/* end confdefs.h. */ 17238int i; 17239_ACEOF 17240if ac_fn_c_try_compile "$LINENO"; then : 17241 xorg_cv_cc_flag_unused_command_line_argument=yes 17242else 17243 xorg_cv_cc_flag_unused_command_line_argument=no 17244fi 17245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17246fi 17247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17250 CFLAGS="$xorg_testset_save_CFLAGS" 17251fi 17252 17253found="no" 17254 17255 if test $found = "no" ; then 17256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17258 fi 17259 17260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17262 fi 17263 17264 CFLAGS="$CFLAGS -Wwrite-strings" 17265 17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17267$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17268 cacheid=xorg_cv_cc_flag__Wwrite_strings 17269 if eval \${$cacheid+:} false; then : 17270 $as_echo_n "(cached) " >&6 17271else 17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17273/* end confdefs.h. */ 17274int i; 17275int 17276main () 17277{ 17278 17279 ; 17280 return 0; 17281} 17282_ACEOF 17283if ac_fn_c_try_link "$LINENO"; then : 17284 eval $cacheid=yes 17285else 17286 eval $cacheid=no 17287fi 17288rm -f core conftest.err conftest.$ac_objext \ 17289 conftest$ac_exeext conftest.$ac_ext 17290fi 17291 17292 17293 CFLAGS="$xorg_testset_save_CFLAGS" 17294 17295 eval supported=\$$cacheid 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17297$as_echo "$supported" >&6; } 17298 if test "$supported" = "yes" ; then 17299 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17300 found="yes" 17301 fi 17302 fi 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318xorg_testset_save_CFLAGS="$CFLAGS" 17319 17320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17325 $as_echo_n "(cached) " >&6 17326else 17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17328/* end confdefs.h. */ 17329int i; 17330_ACEOF 17331if ac_fn_c_try_compile "$LINENO"; then : 17332 xorg_cv_cc_flag_unknown_warning_option=yes 17333else 17334 xorg_cv_cc_flag_unknown_warning_option=no 17335fi 17336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17337fi 17338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17341 CFLAGS="$xorg_testset_save_CFLAGS" 17342fi 17343 17344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17347 fi 17348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17352 $as_echo_n "(cached) " >&6 17353else 17354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17355/* end confdefs.h. */ 17356int i; 17357_ACEOF 17358if ac_fn_c_try_compile "$LINENO"; then : 17359 xorg_cv_cc_flag_unused_command_line_argument=yes 17360else 17361 xorg_cv_cc_flag_unused_command_line_argument=no 17362fi 17363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17364fi 17365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17368 CFLAGS="$xorg_testset_save_CFLAGS" 17369fi 17370 17371found="no" 17372 17373 if test $found = "no" ; then 17374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17376 fi 17377 17378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17380 fi 17381 17382 CFLAGS="$CFLAGS -Waddress" 17383 17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17385$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17386 cacheid=xorg_cv_cc_flag__Waddress 17387 if eval \${$cacheid+:} false; then : 17388 $as_echo_n "(cached) " >&6 17389else 17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17391/* end confdefs.h. */ 17392int i; 17393int 17394main () 17395{ 17396 17397 ; 17398 return 0; 17399} 17400_ACEOF 17401if ac_fn_c_try_link "$LINENO"; then : 17402 eval $cacheid=yes 17403else 17404 eval $cacheid=no 17405fi 17406rm -f core conftest.err conftest.$ac_objext \ 17407 conftest$ac_exeext conftest.$ac_ext 17408fi 17409 17410 17411 CFLAGS="$xorg_testset_save_CFLAGS" 17412 17413 eval supported=\$$cacheid 17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17415$as_echo "$supported" >&6; } 17416 if test "$supported" = "yes" ; then 17417 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17418 found="yes" 17419 fi 17420 fi 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436xorg_testset_save_CFLAGS="$CFLAGS" 17437 17438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17443 $as_echo_n "(cached) " >&6 17444else 17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17446/* end confdefs.h. */ 17447int i; 17448_ACEOF 17449if ac_fn_c_try_compile "$LINENO"; then : 17450 xorg_cv_cc_flag_unknown_warning_option=yes 17451else 17452 xorg_cv_cc_flag_unknown_warning_option=no 17453fi 17454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17455fi 17456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17459 CFLAGS="$xorg_testset_save_CFLAGS" 17460fi 17461 17462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17465 fi 17466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17470 $as_echo_n "(cached) " >&6 17471else 17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17473/* end confdefs.h. */ 17474int i; 17475_ACEOF 17476if ac_fn_c_try_compile "$LINENO"; then : 17477 xorg_cv_cc_flag_unused_command_line_argument=yes 17478else 17479 xorg_cv_cc_flag_unused_command_line_argument=no 17480fi 17481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17482fi 17483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17486 CFLAGS="$xorg_testset_save_CFLAGS" 17487fi 17488 17489found="no" 17490 17491 if test $found = "no" ; then 17492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17494 fi 17495 17496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17498 fi 17499 17500 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17501 17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17503$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17504 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17505 if eval \${$cacheid+:} false; then : 17506 $as_echo_n "(cached) " >&6 17507else 17508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17509/* end confdefs.h. */ 17510int i; 17511int 17512main () 17513{ 17514 17515 ; 17516 return 0; 17517} 17518_ACEOF 17519if ac_fn_c_try_link "$LINENO"; then : 17520 eval $cacheid=yes 17521else 17522 eval $cacheid=no 17523fi 17524rm -f core conftest.err conftest.$ac_objext \ 17525 conftest$ac_exeext conftest.$ac_ext 17526fi 17527 17528 17529 CFLAGS="$xorg_testset_save_CFLAGS" 17530 17531 eval supported=\$$cacheid 17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17533$as_echo "$supported" >&6; } 17534 if test "$supported" = "yes" ; then 17535 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17536 found="yes" 17537 fi 17538 fi 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554xorg_testset_save_CFLAGS="$CFLAGS" 17555 17556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17561 $as_echo_n "(cached) " >&6 17562else 17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17564/* end confdefs.h. */ 17565int i; 17566_ACEOF 17567if ac_fn_c_try_compile "$LINENO"; then : 17568 xorg_cv_cc_flag_unknown_warning_option=yes 17569else 17570 xorg_cv_cc_flag_unknown_warning_option=no 17571fi 17572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17573fi 17574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17577 CFLAGS="$xorg_testset_save_CFLAGS" 17578fi 17579 17580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17583 fi 17584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17588 $as_echo_n "(cached) " >&6 17589else 17590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17591/* end confdefs.h. */ 17592int i; 17593_ACEOF 17594if ac_fn_c_try_compile "$LINENO"; then : 17595 xorg_cv_cc_flag_unused_command_line_argument=yes 17596else 17597 xorg_cv_cc_flag_unused_command_line_argument=no 17598fi 17599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17600fi 17601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17604 CFLAGS="$xorg_testset_save_CFLAGS" 17605fi 17606 17607found="no" 17608 17609 if test $found = "no" ; then 17610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17612 fi 17613 17614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17616 fi 17617 17618 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17619 17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17621$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17622 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17623 if eval \${$cacheid+:} false; then : 17624 $as_echo_n "(cached) " >&6 17625else 17626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17627/* end confdefs.h. */ 17628int i; 17629int 17630main () 17631{ 17632 17633 ; 17634 return 0; 17635} 17636_ACEOF 17637if ac_fn_c_try_link "$LINENO"; then : 17638 eval $cacheid=yes 17639else 17640 eval $cacheid=no 17641fi 17642rm -f core conftest.err conftest.$ac_objext \ 17643 conftest$ac_exeext conftest.$ac_ext 17644fi 17645 17646 17647 CFLAGS="$xorg_testset_save_CFLAGS" 17648 17649 eval supported=\$$cacheid 17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17651$as_echo "$supported" >&6; } 17652 if test "$supported" = "yes" ; then 17653 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17654 found="yes" 17655 fi 17656 fi 17657 17658 17659fi 17660 17661 17662 17663 17664 17665 17666 17667 CWARNFLAGS="$BASE_CFLAGS" 17668 if test "x$GCC" = xyes ; then 17669 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17670 fi 17671 17672 17673 17674 17675 17676 17677 17678 17679# Check whether --enable-strict-compilation was given. 17680if test "${enable_strict_compilation+set}" = set; then : 17681 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17682else 17683 STRICT_COMPILE=no 17684fi 17685 17686 17687 17688 17689 17690 17691STRICT_CFLAGS="" 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705xorg_testset_save_CFLAGS="$CFLAGS" 17706 17707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17710$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17711if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17712 $as_echo_n "(cached) " >&6 17713else 17714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17715/* end confdefs.h. */ 17716int i; 17717_ACEOF 17718if ac_fn_c_try_compile "$LINENO"; then : 17719 xorg_cv_cc_flag_unknown_warning_option=yes 17720else 17721 xorg_cv_cc_flag_unknown_warning_option=no 17722fi 17723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17724fi 17725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17726$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17728 CFLAGS="$xorg_testset_save_CFLAGS" 17729fi 17730 17731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17734 fi 17735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17738if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17739 $as_echo_n "(cached) " >&6 17740else 17741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17742/* end confdefs.h. */ 17743int i; 17744_ACEOF 17745if ac_fn_c_try_compile "$LINENO"; then : 17746 xorg_cv_cc_flag_unused_command_line_argument=yes 17747else 17748 xorg_cv_cc_flag_unused_command_line_argument=no 17749fi 17750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17751fi 17752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17753$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17755 CFLAGS="$xorg_testset_save_CFLAGS" 17756fi 17757 17758found="no" 17759 17760 if test $found = "no" ; then 17761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17763 fi 17764 17765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17767 fi 17768 17769 CFLAGS="$CFLAGS -pedantic" 17770 17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17772$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17773 cacheid=xorg_cv_cc_flag__pedantic 17774 if eval \${$cacheid+:} false; then : 17775 $as_echo_n "(cached) " >&6 17776else 17777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17778/* end confdefs.h. */ 17779int i; 17780int 17781main () 17782{ 17783 17784 ; 17785 return 0; 17786} 17787_ACEOF 17788if ac_fn_c_try_link "$LINENO"; then : 17789 eval $cacheid=yes 17790else 17791 eval $cacheid=no 17792fi 17793rm -f core conftest.err conftest.$ac_objext \ 17794 conftest$ac_exeext conftest.$ac_ext 17795fi 17796 17797 17798 CFLAGS="$xorg_testset_save_CFLAGS" 17799 17800 eval supported=\$$cacheid 17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17802$as_echo "$supported" >&6; } 17803 if test "$supported" = "yes" ; then 17804 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17805 found="yes" 17806 fi 17807 fi 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823xorg_testset_save_CFLAGS="$CFLAGS" 17824 17825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17830 $as_echo_n "(cached) " >&6 17831else 17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17833/* end confdefs.h. */ 17834int i; 17835_ACEOF 17836if ac_fn_c_try_compile "$LINENO"; then : 17837 xorg_cv_cc_flag_unknown_warning_option=yes 17838else 17839 xorg_cv_cc_flag_unknown_warning_option=no 17840fi 17841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17842fi 17843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17846 CFLAGS="$xorg_testset_save_CFLAGS" 17847fi 17848 17849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17852 fi 17853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17857 $as_echo_n "(cached) " >&6 17858else 17859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17860/* end confdefs.h. */ 17861int i; 17862_ACEOF 17863if ac_fn_c_try_compile "$LINENO"; then : 17864 xorg_cv_cc_flag_unused_command_line_argument=yes 17865else 17866 xorg_cv_cc_flag_unused_command_line_argument=no 17867fi 17868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17869fi 17870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17873 CFLAGS="$xorg_testset_save_CFLAGS" 17874fi 17875 17876found="no" 17877 17878 if test $found = "no" ; then 17879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17881 fi 17882 17883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17885 fi 17886 17887 CFLAGS="$CFLAGS -Werror" 17888 17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17890$as_echo_n "checking if $CC supports -Werror... " >&6; } 17891 cacheid=xorg_cv_cc_flag__Werror 17892 if eval \${$cacheid+:} false; then : 17893 $as_echo_n "(cached) " >&6 17894else 17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17896/* end confdefs.h. */ 17897int i; 17898int 17899main () 17900{ 17901 17902 ; 17903 return 0; 17904} 17905_ACEOF 17906if ac_fn_c_try_link "$LINENO"; then : 17907 eval $cacheid=yes 17908else 17909 eval $cacheid=no 17910fi 17911rm -f core conftest.err conftest.$ac_objext \ 17912 conftest$ac_exeext conftest.$ac_ext 17913fi 17914 17915 17916 CFLAGS="$xorg_testset_save_CFLAGS" 17917 17918 eval supported=\$$cacheid 17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17920$as_echo "$supported" >&6; } 17921 if test "$supported" = "yes" ; then 17922 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17923 found="yes" 17924 fi 17925 fi 17926 17927 if test $found = "no" ; then 17928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17930 fi 17931 17932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17934 fi 17935 17936 CFLAGS="$CFLAGS -errwarn" 17937 17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17939$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17940 cacheid=xorg_cv_cc_flag__errwarn 17941 if eval \${$cacheid+:} false; then : 17942 $as_echo_n "(cached) " >&6 17943else 17944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17945/* end confdefs.h. */ 17946int i; 17947int 17948main () 17949{ 17950 17951 ; 17952 return 0; 17953} 17954_ACEOF 17955if ac_fn_c_try_link "$LINENO"; then : 17956 eval $cacheid=yes 17957else 17958 eval $cacheid=no 17959fi 17960rm -f core conftest.err conftest.$ac_objext \ 17961 conftest$ac_exeext conftest.$ac_ext 17962fi 17963 17964 17965 CFLAGS="$xorg_testset_save_CFLAGS" 17966 17967 eval supported=\$$cacheid 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17969$as_echo "$supported" >&6; } 17970 if test "$supported" = "yes" ; then 17971 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17972 found="yes" 17973 fi 17974 fi 17975 17976 17977 17978# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17979# activate it with -Werror, so we add it here explicitly. 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993xorg_testset_save_CFLAGS="$CFLAGS" 17994 17995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17998$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17999if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18000 $as_echo_n "(cached) " >&6 18001else 18002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18003/* end confdefs.h. */ 18004int i; 18005_ACEOF 18006if ac_fn_c_try_compile "$LINENO"; then : 18007 xorg_cv_cc_flag_unknown_warning_option=yes 18008else 18009 xorg_cv_cc_flag_unknown_warning_option=no 18010fi 18011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18012fi 18013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18014$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18016 CFLAGS="$xorg_testset_save_CFLAGS" 18017fi 18018 18019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18022 fi 18023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18025$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18026if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18027 $as_echo_n "(cached) " >&6 18028else 18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18030/* end confdefs.h. */ 18031int i; 18032_ACEOF 18033if ac_fn_c_try_compile "$LINENO"; then : 18034 xorg_cv_cc_flag_unused_command_line_argument=yes 18035else 18036 xorg_cv_cc_flag_unused_command_line_argument=no 18037fi 18038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18039fi 18040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18041$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18043 CFLAGS="$xorg_testset_save_CFLAGS" 18044fi 18045 18046found="no" 18047 18048 if test $found = "no" ; then 18049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18051 fi 18052 18053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18055 fi 18056 18057 CFLAGS="$CFLAGS -Werror=attributes" 18058 18059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18060$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18061 cacheid=xorg_cv_cc_flag__Werror_attributes 18062 if eval \${$cacheid+:} false; then : 18063 $as_echo_n "(cached) " >&6 18064else 18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18066/* end confdefs.h. */ 18067int i; 18068int 18069main () 18070{ 18071 18072 ; 18073 return 0; 18074} 18075_ACEOF 18076if ac_fn_c_try_link "$LINENO"; then : 18077 eval $cacheid=yes 18078else 18079 eval $cacheid=no 18080fi 18081rm -f core conftest.err conftest.$ac_objext \ 18082 conftest$ac_exeext conftest.$ac_ext 18083fi 18084 18085 18086 CFLAGS="$xorg_testset_save_CFLAGS" 18087 18088 eval supported=\$$cacheid 18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18090$as_echo "$supported" >&6; } 18091 if test "$supported" = "yes" ; then 18092 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18093 found="yes" 18094 fi 18095 fi 18096 18097 18098 18099if test "x$STRICT_COMPILE" = "xyes"; then 18100 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18101 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18102fi 18103 18104 18105 18106 18107 18108 18109cat >>confdefs.h <<_ACEOF 18110#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18111_ACEOF 18112 18113 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18114 if test "x$PVM" = "x"; then 18115 PVM="0" 18116 fi 18117 18118cat >>confdefs.h <<_ACEOF 18119#define PACKAGE_VERSION_MINOR $PVM 18120_ACEOF 18121 18122 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18123 if test "x$PVP" = "x"; then 18124 PVP="0" 18125 fi 18126 18127cat >>confdefs.h <<_ACEOF 18128#define PACKAGE_VERSION_PATCHLEVEL $PVP 18129_ACEOF 18130 18131 18132 18133CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 18134mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18135|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 18136touch \$(top_srcdir)/ChangeLog; \ 18137echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 18138 18139 18140 18141 18142macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18143INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18144mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18145|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 18146touch \$(top_srcdir)/INSTALL; \ 18147echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 18148 18149 18150 18151 18152 18153 18154case $host_os in 18155 solaris*) 18156 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 18157 # check for a man page file found in later versions that use 18158 # traditional section numbers instead 18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 18160$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 18161if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 18162 $as_echo_n "(cached) " >&6 18163else 18164 test "$cross_compiling" = yes && 18165 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18166if test -r "/usr/share/man/man7/attributes.7"; then 18167 ac_cv_file__usr_share_man_man7_attributes_7=yes 18168else 18169 ac_cv_file__usr_share_man_man7_attributes_7=no 18170fi 18171fi 18172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 18173$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 18174if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 18175 SYSV_MAN_SECTIONS=false 18176else 18177 SYSV_MAN_SECTIONS=true 18178fi 18179 18180 ;; 18181 *) SYSV_MAN_SECTIONS=false ;; 18182esac 18183 18184if test x$APP_MAN_SUFFIX = x ; then 18185 APP_MAN_SUFFIX=1 18186fi 18187if test x$APP_MAN_DIR = x ; then 18188 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18189fi 18190 18191if test x$LIB_MAN_SUFFIX = x ; then 18192 LIB_MAN_SUFFIX=3 18193fi 18194if test x$LIB_MAN_DIR = x ; then 18195 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18196fi 18197 18198if test x$FILE_MAN_SUFFIX = x ; then 18199 case $SYSV_MAN_SECTIONS in 18200 true) FILE_MAN_SUFFIX=4 ;; 18201 *) FILE_MAN_SUFFIX=5 ;; 18202 esac 18203fi 18204if test x$FILE_MAN_DIR = x ; then 18205 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18206fi 18207 18208if test x$MISC_MAN_SUFFIX = x ; then 18209 case $SYSV_MAN_SECTIONS in 18210 true) MISC_MAN_SUFFIX=5 ;; 18211 *) MISC_MAN_SUFFIX=7 ;; 18212 esac 18213fi 18214if test x$MISC_MAN_DIR = x ; then 18215 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18216fi 18217 18218if test x$DRIVER_MAN_SUFFIX = x ; then 18219 case $SYSV_MAN_SECTIONS in 18220 true) DRIVER_MAN_SUFFIX=7 ;; 18221 *) DRIVER_MAN_SUFFIX=4 ;; 18222 esac 18223fi 18224if test x$DRIVER_MAN_DIR = x ; then 18225 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18226fi 18227 18228if test x$ADMIN_MAN_SUFFIX = x ; then 18229 case $SYSV_MAN_SECTIONS in 18230 true) ADMIN_MAN_SUFFIX=1m ;; 18231 *) ADMIN_MAN_SUFFIX=8 ;; 18232 esac 18233fi 18234if test x$ADMIN_MAN_DIR = x ; then 18235 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18236fi 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252XORG_MAN_PAGE="X Version 11" 18253 18254MAN_SUBSTS="\ 18255 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18256 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18257 -e 's|__xservername__|Xorg|g' \ 18258 -e 's|__xconfigfile__|xorg.conf|g' \ 18259 -e 's|__projectroot__|\$(prefix)|g' \ 18260 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18261 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18262 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18263 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18264 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18265 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18266 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18267 18268 18269 18270# Check whether --enable-silent-rules was given. 18271if test "${enable_silent_rules+set}" = set; then : 18272 enableval=$enable_silent_rules; 18273fi 18274 18275case $enable_silent_rules in # ((( 18276 yes) AM_DEFAULT_VERBOSITY=0;; 18277 no) AM_DEFAULT_VERBOSITY=1;; 18278 *) AM_DEFAULT_VERBOSITY=0;; 18279esac 18280am_make=${MAKE-make} 18281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18282$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18283if ${am_cv_make_support_nested_variables+:} false; then : 18284 $as_echo_n "(cached) " >&6 18285else 18286 if $as_echo 'TRUE=$(BAR$(V)) 18287BAR0=false 18288BAR1=true 18289V=1 18290am__doit: 18291 @$(TRUE) 18292.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18293 am_cv_make_support_nested_variables=yes 18294else 18295 am_cv_make_support_nested_variables=no 18296fi 18297fi 18298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18299$as_echo "$am_cv_make_support_nested_variables" >&6; } 18300if test $am_cv_make_support_nested_variables = yes; then 18301 AM_V='$(V)' 18302 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18303else 18304 AM_V=$AM_DEFAULT_VERBOSITY 18305 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18306fi 18307AM_BACKSLASH='\' 18308 18309 18310 18311# Obtain compiler/linker options from server and required extensions 18312 18313pkg_failed=no 18314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18315$as_echo_n "checking for XORG... " >&6; } 18316 18317if test -n "$XORG_CFLAGS"; then 18318 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18319 elif test -n "$PKG_CONFIG"; then 18320 if test -n "$PKG_CONFIG" && \ 18321 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10 xproto inputproto >= 2.2\""; } >&5 18322 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10 xproto inputproto >= 2.2") 2>&5 18323 ac_status=$? 18324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18325 test $ac_status = 0; }; then 18326 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.10 xproto inputproto >= 2.2" 2>/dev/null` 18327 test "x$?" != "x0" && pkg_failed=yes 18328else 18329 pkg_failed=yes 18330fi 18331 else 18332 pkg_failed=untried 18333fi 18334if test -n "$XORG_LIBS"; then 18335 pkg_cv_XORG_LIBS="$XORG_LIBS" 18336 elif test -n "$PKG_CONFIG"; then 18337 if test -n "$PKG_CONFIG" && \ 18338 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10 xproto inputproto >= 2.2\""; } >&5 18339 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10 xproto inputproto >= 2.2") 2>&5 18340 ac_status=$? 18341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18342 test $ac_status = 0; }; then 18343 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.10 xproto inputproto >= 2.2" 2>/dev/null` 18344 test "x$?" != "x0" && pkg_failed=yes 18345else 18346 pkg_failed=yes 18347fi 18348 else 18349 pkg_failed=untried 18350fi 18351 18352 18353 18354if test $pkg_failed = yes; then 18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18356$as_echo "no" >&6; } 18357 18358if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18359 _pkg_short_errors_supported=yes 18360else 18361 _pkg_short_errors_supported=no 18362fi 18363 if test $_pkg_short_errors_supported = yes; then 18364 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.10 xproto inputproto >= 2.2" 2>&1` 18365 else 18366 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.10 xproto inputproto >= 2.2" 2>&1` 18367 fi 18368 # Put the nasty error message in config.log where it belongs 18369 echo "$XORG_PKG_ERRORS" >&5 18370 18371 as_fn_error $? "Package requirements (xorg-server >= 1.10 xproto inputproto >= 2.2) were not met: 18372 18373$XORG_PKG_ERRORS 18374 18375Consider adjusting the PKG_CONFIG_PATH environment variable if you 18376installed software in a non-standard prefix. 18377 18378Alternatively, you may set the environment variables XORG_CFLAGS 18379and XORG_LIBS to avoid the need to call pkg-config. 18380See the pkg-config man page for more details." "$LINENO" 5 18381elif test $pkg_failed = untried; then 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18383$as_echo "no" >&6; } 18384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18386as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18387is in your PATH or set the PKG_CONFIG environment variable to the full 18388path to pkg-config. 18389 18390Alternatively, you may set the environment variables XORG_CFLAGS 18391and XORG_LIBS to avoid the need to call pkg-config. 18392See the pkg-config man page for more details. 18393 18394To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18395See \`config.log' for more details" "$LINENO" 5; } 18396else 18397 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18398 XORG_LIBS=$pkg_cv_XORG_LIBS 18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18400$as_echo "yes" >&6; } 18401 18402fi 18403 18404pkg_failed=no 18405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBINPUT" >&5 18406$as_echo_n "checking for LIBINPUT... " >&6; } 18407 18408if test -n "$LIBINPUT_CFLAGS"; then 18409 pkg_cv_LIBINPUT_CFLAGS="$LIBINPUT_CFLAGS" 18410 elif test -n "$PKG_CONFIG"; then 18411 if test -n "$PKG_CONFIG" && \ 18412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libinput >= 1.7.0\""; } >&5 18413 ($PKG_CONFIG --exists --print-errors "libinput >= 1.7.0") 2>&5 18414 ac_status=$? 18415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18416 test $ac_status = 0; }; then 18417 pkg_cv_LIBINPUT_CFLAGS=`$PKG_CONFIG --cflags "libinput >= 1.7.0" 2>/dev/null` 18418 test "x$?" != "x0" && pkg_failed=yes 18419else 18420 pkg_failed=yes 18421fi 18422 else 18423 pkg_failed=untried 18424fi 18425if test -n "$LIBINPUT_LIBS"; then 18426 pkg_cv_LIBINPUT_LIBS="$LIBINPUT_LIBS" 18427 elif test -n "$PKG_CONFIG"; then 18428 if test -n "$PKG_CONFIG" && \ 18429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libinput >= 1.7.0\""; } >&5 18430 ($PKG_CONFIG --exists --print-errors "libinput >= 1.7.0") 2>&5 18431 ac_status=$? 18432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18433 test $ac_status = 0; }; then 18434 pkg_cv_LIBINPUT_LIBS=`$PKG_CONFIG --libs "libinput >= 1.7.0" 2>/dev/null` 18435 test "x$?" != "x0" && pkg_failed=yes 18436else 18437 pkg_failed=yes 18438fi 18439 else 18440 pkg_failed=untried 18441fi 18442 18443 18444 18445if test $pkg_failed = yes; then 18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18447$as_echo "no" >&6; } 18448 18449if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18450 _pkg_short_errors_supported=yes 18451else 18452 _pkg_short_errors_supported=no 18453fi 18454 if test $_pkg_short_errors_supported = yes; then 18455 LIBINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libinput >= 1.7.0" 2>&1` 18456 else 18457 LIBINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libinput >= 1.7.0" 2>&1` 18458 fi 18459 # Put the nasty error message in config.log where it belongs 18460 echo "$LIBINPUT_PKG_ERRORS" >&5 18461 18462 as_fn_error $? "Package requirements (libinput >= 1.7.0) were not met: 18463 18464$LIBINPUT_PKG_ERRORS 18465 18466Consider adjusting the PKG_CONFIG_PATH environment variable if you 18467installed software in a non-standard prefix. 18468 18469Alternatively, you may set the environment variables LIBINPUT_CFLAGS 18470and LIBINPUT_LIBS to avoid the need to call pkg-config. 18471See the pkg-config man page for more details." "$LINENO" 5 18472elif test $pkg_failed = untried; then 18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18474$as_echo "no" >&6; } 18475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18477as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18478is in your PATH or set the PKG_CONFIG environment variable to the full 18479path to pkg-config. 18480 18481Alternatively, you may set the environment variables LIBINPUT_CFLAGS 18482and LIBINPUT_LIBS to avoid the need to call pkg-config. 18483See the pkg-config man page for more details. 18484 18485To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18486See \`config.log' for more details" "$LINENO" 5; } 18487else 18488 LIBINPUT_CFLAGS=$pkg_cv_LIBINPUT_CFLAGS 18489 LIBINPUT_LIBS=$pkg_cv_LIBINPUT_LIBS 18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18491$as_echo "yes" >&6; } 18492 18493fi 18494 18495OLD_LIBS=$LIBS 18496OLD_CFLAGS=$CFLAGS 18497LIBS="$LIBS $LIBINPUT_LIBS" 18498CFLAGS="$CFLAGS $LIBINPUT_CFLAGS" 18499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libinput_device_touch_get_touch_count is available" >&5 18500$as_echo_n "checking if libinput_device_touch_get_touch_count is available... " >&6; } 18501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18502/* end confdefs.h. */ 18503#include <libinput.h> 18504int 18505main () 18506{ 18507libinput_device_touch_get_touch_count(NULL) 18508 ; 18509 return 0; 18510} 18511_ACEOF 18512if ac_fn_c_try_link "$LINENO"; then : 18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18514$as_echo "yes" >&6; } 18515 18516$as_echo "#define HAVE_LIBINPUT_TOUCH_COUNT 1" >>confdefs.h 18517 18518 libinput_have_touch_count=yes 18519else 18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18521$as_echo "no" >&6; } 18522 libinput_have_touch_count=no 18523fi 18524rm -f core conftest.err conftest.$ac_objext \ 18525 conftest$ac_exeext conftest.$ac_ext 18526 18527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libinput_device_config_scroll_get_button_lock is available" >&5 18528$as_echo_n "checking if libinput_device_config_scroll_get_button_lock is available... " >&6; } 18529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18530/* end confdefs.h. */ 18531#include <libinput.h> 18532int 18533main () 18534{ 18535libinput_device_config_scroll_get_button_lock(NULL) 18536 ; 18537 return 0; 18538} 18539_ACEOF 18540if ac_fn_c_try_link "$LINENO"; then : 18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18542$as_echo "yes" >&6; } 18543 18544$as_echo "#define HAVE_LIBINPUT_SCROLL_BUTTON_LOCK 1" >>confdefs.h 18545 18546 libinput_have_scroll_button_lock=yes 18547else 18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18549$as_echo "no" >&6; } 18550 libinput_have_scroll_button_lock=no 18551fi 18552rm -f core conftest.err conftest.$ac_objext \ 18553 conftest$ac_exeext conftest.$ac_ext 18554LIBS=$OLD_LIBS 18555CFLAGS=$OLD_CFLAGS 18556 18557# Define a configure option for an alternate input module directory 18558 18559# Check whether --with-xorg-module-dir was given. 18560if test "${with_xorg_module_dir+set}" = set; then : 18561 withval=$with_xorg_module_dir; moduledir="$withval" 18562else 18563 moduledir="$libdir/xorg/modules" 18564fi 18565 18566inputdir=${moduledir}/input 18567 18568 18569 18570# Check whether --with-xorg-conf-dir was given. 18571if test "${with_xorg_conf_dir+set}" = set; then : 18572 withval=$with_xorg_conf_dir; xorgconfdir="$withval" 18573else 18574 xorgconfdir='${prefix}/share/X11/xorg.conf.d' 18575fi 18576 18577 18578 18579# X Server SDK location is required to install header files 18580sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 18581 18582# Workaround overriding sdkdir to be able to create a tarball when user has no 18583# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am 18584 18585# Check whether --with-sdkdir was given. 18586if test "${with_sdkdir+set}" = set; then : 18587 withval=$with_sdkdir; sdkdir="$withval" 18588fi 18589 18590 18591 18592DRIVER_NAME=libinput 18593 18594 18595ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile man/Makefile test/Makefile xorg-libinput.pc" 18596 18597cat >confcache <<\_ACEOF 18598# This file is a shell script that caches the results of configure 18599# tests run on this system so they can be shared between configure 18600# scripts and configure runs, see configure's option --config-cache. 18601# It is not useful on other systems. If it contains results you don't 18602# want to keep, you may remove or edit it. 18603# 18604# config.status only pays attention to the cache file if you give it 18605# the --recheck option to rerun configure. 18606# 18607# `ac_cv_env_foo' variables (set or unset) will be overridden when 18608# loading this file, other *unset* `ac_cv_foo' will be assigned the 18609# following values. 18610 18611_ACEOF 18612 18613# The following way of writing the cache mishandles newlines in values, 18614# but we know of no workaround that is simple, portable, and efficient. 18615# So, we kill variables containing newlines. 18616# Ultrix sh set writes to stderr and can't be redirected directly, 18617# and sets the high bit in the cache file unless we assign to the vars. 18618( 18619 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18620 eval ac_val=\$$ac_var 18621 case $ac_val in #( 18622 *${as_nl}*) 18623 case $ac_var in #( 18624 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18625$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18626 esac 18627 case $ac_var in #( 18628 _ | IFS | as_nl) ;; #( 18629 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18630 *) { eval $ac_var=; unset $ac_var;} ;; 18631 esac ;; 18632 esac 18633 done 18634 18635 (set) 2>&1 | 18636 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18637 *${as_nl}ac_space=\ *) 18638 # `set' does not quote correctly, so add quotes: double-quote 18639 # substitution turns \\\\ into \\, and sed turns \\ into \. 18640 sed -n \ 18641 "s/'/'\\\\''/g; 18642 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18643 ;; #( 18644 *) 18645 # `set' quotes correctly as required by POSIX, so do not add quotes. 18646 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18647 ;; 18648 esac | 18649 sort 18650) | 18651 sed ' 18652 /^ac_cv_env_/b end 18653 t clear 18654 :clear 18655 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18656 t end 18657 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18658 :end' >>confcache 18659if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18660 if test -w "$cache_file"; then 18661 if test "x$cache_file" != "x/dev/null"; then 18662 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18663$as_echo "$as_me: updating cache $cache_file" >&6;} 18664 if test ! -f "$cache_file" || test -h "$cache_file"; then 18665 cat confcache >"$cache_file" 18666 else 18667 case $cache_file in #( 18668 */* | ?:*) 18669 mv -f confcache "$cache_file"$$ && 18670 mv -f "$cache_file"$$ "$cache_file" ;; #( 18671 *) 18672 mv -f confcache "$cache_file" ;; 18673 esac 18674 fi 18675 fi 18676 else 18677 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18678$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18679 fi 18680fi 18681rm -f confcache 18682 18683test "x$prefix" = xNONE && prefix=$ac_default_prefix 18684# Let make expand exec_prefix. 18685test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18686 18687DEFS=-DHAVE_CONFIG_H 18688 18689ac_libobjs= 18690ac_ltlibobjs= 18691U= 18692for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18693 # 1. Remove the extension, and $U if already installed. 18694 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18695 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18696 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18697 # will be set to the directory where LIBOBJS objects are built. 18698 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18699 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18700done 18701LIBOBJS=$ac_libobjs 18702 18703LTLIBOBJS=$ac_ltlibobjs 18704 18705 18706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18707$as_echo_n "checking that generated files are newer than configure... " >&6; } 18708 if test -n "$am_sleep_pid"; then 18709 # Hide warnings about reused PIDs. 18710 wait $am_sleep_pid 2>/dev/null 18711 fi 18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18713$as_echo "done" >&6; } 18714 if test -n "$EXEEXT"; then 18715 am__EXEEXT_TRUE= 18716 am__EXEEXT_FALSE='#' 18717else 18718 am__EXEEXT_TRUE='#' 18719 am__EXEEXT_FALSE= 18720fi 18721 18722if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18723 as_fn_error $? "conditional \"AMDEP\" was never defined. 18724Usually this means the macro was only invoked conditionally." "$LINENO" 5 18725fi 18726if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18727 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18728Usually this means the macro was only invoked conditionally." "$LINENO" 5 18729fi 18730 18731: "${CONFIG_STATUS=./config.status}" 18732ac_write_fail=0 18733ac_clean_files_save=$ac_clean_files 18734ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18735{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18736$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18737as_write_fail=0 18738cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18739#! $SHELL 18740# Generated by $as_me. 18741# Run this file to recreate the current configuration. 18742# Compiler output produced by configure, useful for debugging 18743# configure, is in config.log if it exists. 18744 18745debug=false 18746ac_cs_recheck=false 18747ac_cs_silent=false 18748 18749SHELL=\${CONFIG_SHELL-$SHELL} 18750export SHELL 18751_ASEOF 18752cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18753## -------------------- ## 18754## M4sh Initialization. ## 18755## -------------------- ## 18756 18757# Be more Bourne compatible 18758DUALCASE=1; export DUALCASE # for MKS sh 18759if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18760 emulate sh 18761 NULLCMD=: 18762 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18763 # is contrary to our usage. Disable this feature. 18764 alias -g '${1+"$@"}'='"$@"' 18765 setopt NO_GLOB_SUBST 18766else 18767 case `(set -o) 2>/dev/null` in #( 18768 *posix*) : 18769 set -o posix ;; #( 18770 *) : 18771 ;; 18772esac 18773fi 18774 18775 18776as_nl=' 18777' 18778export as_nl 18779# Printing a long string crashes Solaris 7 /usr/bin/printf. 18780as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18781as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18782as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18783# Prefer a ksh shell builtin over an external printf program on Solaris, 18784# but without wasting forks for bash or zsh. 18785if test -z "$BASH_VERSION$ZSH_VERSION" \ 18786 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18787 as_echo='print -r --' 18788 as_echo_n='print -rn --' 18789elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18790 as_echo='printf %s\n' 18791 as_echo_n='printf %s' 18792else 18793 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18794 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18795 as_echo_n='/usr/ucb/echo -n' 18796 else 18797 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18798 as_echo_n_body='eval 18799 arg=$1; 18800 case $arg in #( 18801 *"$as_nl"*) 18802 expr "X$arg" : "X\\(.*\\)$as_nl"; 18803 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18804 esac; 18805 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18806 ' 18807 export as_echo_n_body 18808 as_echo_n='sh -c $as_echo_n_body as_echo' 18809 fi 18810 export as_echo_body 18811 as_echo='sh -c $as_echo_body as_echo' 18812fi 18813 18814# The user is always right. 18815if test "${PATH_SEPARATOR+set}" != set; then 18816 PATH_SEPARATOR=: 18817 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18818 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18819 PATH_SEPARATOR=';' 18820 } 18821fi 18822 18823 18824# IFS 18825# We need space, tab and new line, in precisely that order. Quoting is 18826# there to prevent editors from complaining about space-tab. 18827# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18828# splitting by setting IFS to empty value.) 18829IFS=" "" $as_nl" 18830 18831# Find who we are. Look in the path if we contain no directory separator. 18832as_myself= 18833case $0 in #(( 18834 *[\\/]* ) as_myself=$0 ;; 18835 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18836for as_dir in $PATH 18837do 18838 IFS=$as_save_IFS 18839 test -z "$as_dir" && as_dir=. 18840 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18841 done 18842IFS=$as_save_IFS 18843 18844 ;; 18845esac 18846# We did not find ourselves, most probably we were run as `sh COMMAND' 18847# in which case we are not to be found in the path. 18848if test "x$as_myself" = x; then 18849 as_myself=$0 18850fi 18851if test ! -f "$as_myself"; then 18852 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18853 exit 1 18854fi 18855 18856# Unset variables that we do not need and which cause bugs (e.g. in 18857# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18858# suppresses any "Segmentation fault" message there. '((' could 18859# trigger a bug in pdksh 5.2.14. 18860for as_var in BASH_ENV ENV MAIL MAILPATH 18861do eval test x\${$as_var+set} = xset \ 18862 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18863done 18864PS1='$ ' 18865PS2='> ' 18866PS4='+ ' 18867 18868# NLS nuisances. 18869LC_ALL=C 18870export LC_ALL 18871LANGUAGE=C 18872export LANGUAGE 18873 18874# CDPATH. 18875(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18876 18877 18878# as_fn_error STATUS ERROR [LINENO LOG_FD] 18879# ---------------------------------------- 18880# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18881# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18882# script with STATUS, using 1 if that was 0. 18883as_fn_error () 18884{ 18885 as_status=$1; test $as_status -eq 0 && as_status=1 18886 if test "$4"; then 18887 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18888 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18889 fi 18890 $as_echo "$as_me: error: $2" >&2 18891 as_fn_exit $as_status 18892} # as_fn_error 18893 18894 18895# as_fn_set_status STATUS 18896# ----------------------- 18897# Set $? to STATUS, without forking. 18898as_fn_set_status () 18899{ 18900 return $1 18901} # as_fn_set_status 18902 18903# as_fn_exit STATUS 18904# ----------------- 18905# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18906as_fn_exit () 18907{ 18908 set +e 18909 as_fn_set_status $1 18910 exit $1 18911} # as_fn_exit 18912 18913# as_fn_unset VAR 18914# --------------- 18915# Portably unset VAR. 18916as_fn_unset () 18917{ 18918 { eval $1=; unset $1;} 18919} 18920as_unset=as_fn_unset 18921# as_fn_append VAR VALUE 18922# ---------------------- 18923# Append the text in VALUE to the end of the definition contained in VAR. Take 18924# advantage of any shell optimizations that allow amortized linear growth over 18925# repeated appends, instead of the typical quadratic growth present in naive 18926# implementations. 18927if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18928 eval 'as_fn_append () 18929 { 18930 eval $1+=\$2 18931 }' 18932else 18933 as_fn_append () 18934 { 18935 eval $1=\$$1\$2 18936 } 18937fi # as_fn_append 18938 18939# as_fn_arith ARG... 18940# ------------------ 18941# Perform arithmetic evaluation on the ARGs, and store the result in the 18942# global $as_val. Take advantage of shells that can avoid forks. The arguments 18943# must be portable across $(()) and expr. 18944if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18945 eval 'as_fn_arith () 18946 { 18947 as_val=$(( $* )) 18948 }' 18949else 18950 as_fn_arith () 18951 { 18952 as_val=`expr "$@" || test $? -eq 1` 18953 } 18954fi # as_fn_arith 18955 18956 18957if expr a : '\(a\)' >/dev/null 2>&1 && 18958 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18959 as_expr=expr 18960else 18961 as_expr=false 18962fi 18963 18964if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18965 as_basename=basename 18966else 18967 as_basename=false 18968fi 18969 18970if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18971 as_dirname=dirname 18972else 18973 as_dirname=false 18974fi 18975 18976as_me=`$as_basename -- "$0" || 18977$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18978 X"$0" : 'X\(//\)$' \| \ 18979 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18980$as_echo X/"$0" | 18981 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18982 s//\1/ 18983 q 18984 } 18985 /^X\/\(\/\/\)$/{ 18986 s//\1/ 18987 q 18988 } 18989 /^X\/\(\/\).*/{ 18990 s//\1/ 18991 q 18992 } 18993 s/.*/./; q'` 18994 18995# Avoid depending upon Character Ranges. 18996as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18997as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18998as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18999as_cr_digits='0123456789' 19000as_cr_alnum=$as_cr_Letters$as_cr_digits 19001 19002ECHO_C= ECHO_N= ECHO_T= 19003case `echo -n x` in #((((( 19004-n*) 19005 case `echo 'xy\c'` in 19006 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19007 xy) ECHO_C='\c';; 19008 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19009 ECHO_T=' ';; 19010 esac;; 19011*) 19012 ECHO_N='-n';; 19013esac 19014 19015rm -f conf$$ conf$$.exe conf$$.file 19016if test -d conf$$.dir; then 19017 rm -f conf$$.dir/conf$$.file 19018else 19019 rm -f conf$$.dir 19020 mkdir conf$$.dir 2>/dev/null 19021fi 19022if (echo >conf$$.file) 2>/dev/null; then 19023 if ln -s conf$$.file conf$$ 2>/dev/null; then 19024 as_ln_s='ln -s' 19025 # ... but there are two gotchas: 19026 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19027 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19028 # In both cases, we have to default to `cp -pR'. 19029 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19030 as_ln_s='cp -pR' 19031 elif ln conf$$.file conf$$ 2>/dev/null; then 19032 as_ln_s=ln 19033 else 19034 as_ln_s='cp -pR' 19035 fi 19036else 19037 as_ln_s='cp -pR' 19038fi 19039rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19040rmdir conf$$.dir 2>/dev/null 19041 19042 19043# as_fn_mkdir_p 19044# ------------- 19045# Create "$as_dir" as a directory, including parents if necessary. 19046as_fn_mkdir_p () 19047{ 19048 19049 case $as_dir in #( 19050 -*) as_dir=./$as_dir;; 19051 esac 19052 test -d "$as_dir" || eval $as_mkdir_p || { 19053 as_dirs= 19054 while :; do 19055 case $as_dir in #( 19056 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19057 *) as_qdir=$as_dir;; 19058 esac 19059 as_dirs="'$as_qdir' $as_dirs" 19060 as_dir=`$as_dirname -- "$as_dir" || 19061$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19062 X"$as_dir" : 'X\(//\)[^/]' \| \ 19063 X"$as_dir" : 'X\(//\)$' \| \ 19064 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19065$as_echo X"$as_dir" | 19066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19067 s//\1/ 19068 q 19069 } 19070 /^X\(\/\/\)[^/].*/{ 19071 s//\1/ 19072 q 19073 } 19074 /^X\(\/\/\)$/{ 19075 s//\1/ 19076 q 19077 } 19078 /^X\(\/\).*/{ 19079 s//\1/ 19080 q 19081 } 19082 s/.*/./; q'` 19083 test -d "$as_dir" && break 19084 done 19085 test -z "$as_dirs" || eval "mkdir $as_dirs" 19086 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19087 19088 19089} # as_fn_mkdir_p 19090if mkdir -p . 2>/dev/null; then 19091 as_mkdir_p='mkdir -p "$as_dir"' 19092else 19093 test -d ./-p && rmdir ./-p 19094 as_mkdir_p=false 19095fi 19096 19097 19098# as_fn_executable_p FILE 19099# ----------------------- 19100# Test if FILE is an executable regular file. 19101as_fn_executable_p () 19102{ 19103 test -f "$1" && test -x "$1" 19104} # as_fn_executable_p 19105as_test_x='test -x' 19106as_executable_p=as_fn_executable_p 19107 19108# Sed expression to map a string onto a valid CPP name. 19109as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19110 19111# Sed expression to map a string onto a valid variable name. 19112as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19113 19114 19115exec 6>&1 19116## ----------------------------------- ## 19117## Main body of $CONFIG_STATUS script. ## 19118## ----------------------------------- ## 19119_ASEOF 19120test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19121 19122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19123# Save the log message, to keep $0 and so on meaningful, and to 19124# report actual input values of CONFIG_FILES etc. instead of their 19125# values after options handling. 19126ac_log=" 19127This file was extended by xf86-input-libinput $as_me 0.30.0, which was 19128generated by GNU Autoconf 2.69. Invocation command line was 19129 19130 CONFIG_FILES = $CONFIG_FILES 19131 CONFIG_HEADERS = $CONFIG_HEADERS 19132 CONFIG_LINKS = $CONFIG_LINKS 19133 CONFIG_COMMANDS = $CONFIG_COMMANDS 19134 $ $0 $@ 19135 19136on `(hostname || uname -n) 2>/dev/null | sed 1q` 19137" 19138 19139_ACEOF 19140 19141case $ac_config_files in *" 19142"*) set x $ac_config_files; shift; ac_config_files=$*;; 19143esac 19144 19145case $ac_config_headers in *" 19146"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19147esac 19148 19149 19150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19151# Files that config.status was made for. 19152config_files="$ac_config_files" 19153config_headers="$ac_config_headers" 19154config_commands="$ac_config_commands" 19155 19156_ACEOF 19157 19158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19159ac_cs_usage="\ 19160\`$as_me' instantiates files and other configuration actions 19161from templates according to the current configuration. Unless the files 19162and actions are specified as TAGs, all are instantiated by default. 19163 19164Usage: $0 [OPTION]... [TAG]... 19165 19166 -h, --help print this help, then exit 19167 -V, --version print version number and configuration settings, then exit 19168 --config print configuration, then exit 19169 -q, --quiet, --silent 19170 do not print progress messages 19171 -d, --debug don't remove temporary files 19172 --recheck update $as_me by reconfiguring in the same conditions 19173 --file=FILE[:TEMPLATE] 19174 instantiate the configuration file FILE 19175 --header=FILE[:TEMPLATE] 19176 instantiate the configuration header FILE 19177 19178Configuration files: 19179$config_files 19180 19181Configuration headers: 19182$config_headers 19183 19184Configuration commands: 19185$config_commands 19186 19187Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/issues>." 19188 19189_ACEOF 19190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19191ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19192ac_cs_version="\\ 19193xf86-input-libinput config.status 0.30.0 19194configured by $0, generated by GNU Autoconf 2.69, 19195 with options \\"\$ac_cs_config\\" 19196 19197Copyright (C) 2012 Free Software Foundation, Inc. 19198This config.status script is free software; the Free Software Foundation 19199gives unlimited permission to copy, distribute and modify it." 19200 19201ac_pwd='$ac_pwd' 19202srcdir='$srcdir' 19203INSTALL='$INSTALL' 19204MKDIR_P='$MKDIR_P' 19205AWK='$AWK' 19206test -n "\$AWK" || AWK=awk 19207_ACEOF 19208 19209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19210# The default lists apply if the user does not specify any file. 19211ac_need_defaults=: 19212while test $# != 0 19213do 19214 case $1 in 19215 --*=?*) 19216 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19217 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19218 ac_shift=: 19219 ;; 19220 --*=) 19221 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19222 ac_optarg= 19223 ac_shift=: 19224 ;; 19225 *) 19226 ac_option=$1 19227 ac_optarg=$2 19228 ac_shift=shift 19229 ;; 19230 esac 19231 19232 case $ac_option in 19233 # Handling of the options. 19234 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19235 ac_cs_recheck=: ;; 19236 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19237 $as_echo "$ac_cs_version"; exit ;; 19238 --config | --confi | --conf | --con | --co | --c ) 19239 $as_echo "$ac_cs_config"; exit ;; 19240 --debug | --debu | --deb | --de | --d | -d ) 19241 debug=: ;; 19242 --file | --fil | --fi | --f ) 19243 $ac_shift 19244 case $ac_optarg in 19245 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19246 '') as_fn_error $? "missing file argument" ;; 19247 esac 19248 as_fn_append CONFIG_FILES " '$ac_optarg'" 19249 ac_need_defaults=false;; 19250 --header | --heade | --head | --hea ) 19251 $ac_shift 19252 case $ac_optarg in 19253 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19254 esac 19255 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19256 ac_need_defaults=false;; 19257 --he | --h) 19258 # Conflict between --help and --header 19259 as_fn_error $? "ambiguous option: \`$1' 19260Try \`$0 --help' for more information.";; 19261 --help | --hel | -h ) 19262 $as_echo "$ac_cs_usage"; exit ;; 19263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19264 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19265 ac_cs_silent=: ;; 19266 19267 # This is an error. 19268 -*) as_fn_error $? "unrecognized option: \`$1' 19269Try \`$0 --help' for more information." ;; 19270 19271 *) as_fn_append ac_config_targets " $1" 19272 ac_need_defaults=false ;; 19273 19274 esac 19275 shift 19276done 19277 19278ac_configure_extra_args= 19279 19280if $ac_cs_silent; then 19281 exec 6>/dev/null 19282 ac_configure_extra_args="$ac_configure_extra_args --silent" 19283fi 19284 19285_ACEOF 19286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19287if \$ac_cs_recheck; then 19288 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19289 shift 19290 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19291 CONFIG_SHELL='$SHELL' 19292 export CONFIG_SHELL 19293 exec "\$@" 19294fi 19295 19296_ACEOF 19297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19298exec 5>>config.log 19299{ 19300 echo 19301 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19302## Running $as_me. ## 19303_ASBOX 19304 $as_echo "$ac_log" 19305} >&5 19306 19307_ACEOF 19308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19309# 19310# INIT-COMMANDS 19311# 19312AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 19313 19314 19315# The HP-UX ksh and POSIX shell print the target directory to stdout 19316# if CDPATH is set. 19317(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19318 19319sed_quote_subst='$sed_quote_subst' 19320double_quote_subst='$double_quote_subst' 19321delay_variable_subst='$delay_variable_subst' 19322enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19323macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19324macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19325enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19326pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19327enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19328shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19329SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19330ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19331PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19332host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19333host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19334host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19335build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19336build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19337build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19338SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19339Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19340GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19341EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19342FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19343LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19344NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19345LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19346max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19347ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19348exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19349lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19350lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19351lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19352lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19353lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19354reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19355reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19356OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19357deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19358file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19359file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19360want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19361DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19362sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19363AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19364AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19365archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19366STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19367RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19368old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19369old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19370old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19371lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19372CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19373CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19374compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19375GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19376lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19377lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19378lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19379lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19380lt_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"`' 19381lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19382nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19383lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19384lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19385objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19386MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19387lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19388lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19389lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19390lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19391lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19392need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19393MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19394DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19395NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19396LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19397OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19398OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19399libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19400shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19401extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19402archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19403enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19404export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19405whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19406compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19407old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19408old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19409archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19410archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19411module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19412module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19413with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19414allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19415no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19416hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19417hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19418hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19419hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19420hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19421hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19422hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19423inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19424link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19425always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19426export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19427exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19428include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19429prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19430postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19431file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19432variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19433need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19434need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19435version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19436runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19437shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19438shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19439libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19440library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19441soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19442install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19443postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19444postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19445finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19446finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19447hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19448sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19449configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19450configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19451hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19452enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19453enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19454enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19455old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19456striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19457 19458LTCC='$LTCC' 19459LTCFLAGS='$LTCFLAGS' 19460compiler='$compiler_DEFAULT' 19461 19462# A function that is used when there is no print builtin or printf. 19463func_fallback_echo () 19464{ 19465 eval 'cat <<_LTECHO_EOF 19466\$1 19467_LTECHO_EOF' 19468} 19469 19470# Quote evaled strings. 19471for var in SHELL \ 19472ECHO \ 19473PATH_SEPARATOR \ 19474SED \ 19475GREP \ 19476EGREP \ 19477FGREP \ 19478LD \ 19479NM \ 19480LN_S \ 19481lt_SP2NL \ 19482lt_NL2SP \ 19483reload_flag \ 19484OBJDUMP \ 19485deplibs_check_method \ 19486file_magic_cmd \ 19487file_magic_glob \ 19488want_nocaseglob \ 19489DLLTOOL \ 19490sharedlib_from_linklib_cmd \ 19491AR \ 19492AR_FLAGS \ 19493archiver_list_spec \ 19494STRIP \ 19495RANLIB \ 19496CC \ 19497CFLAGS \ 19498compiler \ 19499lt_cv_sys_global_symbol_pipe \ 19500lt_cv_sys_global_symbol_to_cdecl \ 19501lt_cv_sys_global_symbol_to_import \ 19502lt_cv_sys_global_symbol_to_c_name_address \ 19503lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19504lt_cv_nm_interface \ 19505nm_file_list_spec \ 19506lt_cv_truncate_bin \ 19507lt_prog_compiler_no_builtin_flag \ 19508lt_prog_compiler_pic \ 19509lt_prog_compiler_wl \ 19510lt_prog_compiler_static \ 19511lt_cv_prog_compiler_c_o \ 19512need_locks \ 19513MANIFEST_TOOL \ 19514DSYMUTIL \ 19515NMEDIT \ 19516LIPO \ 19517OTOOL \ 19518OTOOL64 \ 19519shrext_cmds \ 19520export_dynamic_flag_spec \ 19521whole_archive_flag_spec \ 19522compiler_needs_object \ 19523with_gnu_ld \ 19524allow_undefined_flag \ 19525no_undefined_flag \ 19526hardcode_libdir_flag_spec \ 19527hardcode_libdir_separator \ 19528exclude_expsyms \ 19529include_expsyms \ 19530file_list_spec \ 19531variables_saved_for_relink \ 19532libname_spec \ 19533library_names_spec \ 19534soname_spec \ 19535install_override_mode \ 19536finish_eval \ 19537old_striplib \ 19538striplib; do 19539 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19540 *[\\\\\\\`\\"\\\$]*) 19541 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19542 ;; 19543 *) 19544 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19545 ;; 19546 esac 19547done 19548 19549# Double-quote double-evaled strings. 19550for var in reload_cmds \ 19551old_postinstall_cmds \ 19552old_postuninstall_cmds \ 19553old_archive_cmds \ 19554extract_expsyms_cmds \ 19555old_archive_from_new_cmds \ 19556old_archive_from_expsyms_cmds \ 19557archive_cmds \ 19558archive_expsym_cmds \ 19559module_cmds \ 19560module_expsym_cmds \ 19561export_symbols_cmds \ 19562prelink_cmds \ 19563postlink_cmds \ 19564postinstall_cmds \ 19565postuninstall_cmds \ 19566finish_cmds \ 19567sys_lib_search_path_spec \ 19568configure_time_dlsearch_path \ 19569configure_time_lt_sys_library_path; do 19570 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19571 *[\\\\\\\`\\"\\\$]*) 19572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19573 ;; 19574 *) 19575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19576 ;; 19577 esac 19578done 19579 19580ac_aux_dir='$ac_aux_dir' 19581 19582# See if we are running on zsh, and set the options that allow our 19583# commands through without removal of \ escapes INIT. 19584if test -n "\${ZSH_VERSION+set}"; then 19585 setopt NO_GLOB_SUBST 19586fi 19587 19588 19589 PACKAGE='$PACKAGE' 19590 VERSION='$VERSION' 19591 RM='$RM' 19592 ofile='$ofile' 19593 19594 19595 19596 19597_ACEOF 19598 19599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19600 19601# Handling of arguments. 19602for ac_config_target in $ac_config_targets 19603do 19604 case $ac_config_target in 19605 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19606 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19607 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19608 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19609 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 19610 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19611 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19612 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 19613 "xorg-libinput.pc") CONFIG_FILES="$CONFIG_FILES xorg-libinput.pc" ;; 19614 19615 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19616 esac 19617done 19618 19619 19620# If the user did not use the arguments to specify the items to instantiate, 19621# then the envvar interface is used. Set only those that are not. 19622# We use the long form for the default assignment because of an extremely 19623# bizarre bug on SunOS 4.1.3. 19624if $ac_need_defaults; then 19625 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19626 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19627 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19628fi 19629 19630# Have a temporary directory for convenience. Make it in the build tree 19631# simply because there is no reason against having it here, and in addition, 19632# creating and moving files from /tmp can sometimes cause problems. 19633# Hook for its removal unless debugging. 19634# Note that there is a small window in which the directory will not be cleaned: 19635# after its creation but before its name has been assigned to `$tmp'. 19636$debug || 19637{ 19638 tmp= ac_tmp= 19639 trap 'exit_status=$? 19640 : "${ac_tmp:=$tmp}" 19641 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19642' 0 19643 trap 'as_fn_exit 1' 1 2 13 15 19644} 19645# Create a (secure) tmp directory for tmp files. 19646 19647{ 19648 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19649 test -d "$tmp" 19650} || 19651{ 19652 tmp=./conf$$-$RANDOM 19653 (umask 077 && mkdir "$tmp") 19654} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19655ac_tmp=$tmp 19656 19657# Set up the scripts for CONFIG_FILES section. 19658# No need to generate them if there are no CONFIG_FILES. 19659# This happens for instance with `./config.status config.h'. 19660if test -n "$CONFIG_FILES"; then 19661 19662 19663ac_cr=`echo X | tr X '\015'` 19664# On cygwin, bash can eat \r inside `` if the user requested igncr. 19665# But we know of no other shell where ac_cr would be empty at this 19666# point, so we can use a bashism as a fallback. 19667if test "x$ac_cr" = x; then 19668 eval ac_cr=\$\'\\r\' 19669fi 19670ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19671if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19672 ac_cs_awk_cr='\\r' 19673else 19674 ac_cs_awk_cr=$ac_cr 19675fi 19676 19677echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19678_ACEOF 19679 19680 19681{ 19682 echo "cat >conf$$subs.awk <<_ACEOF" && 19683 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19684 echo "_ACEOF" 19685} >conf$$subs.sh || 19686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19687ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19688ac_delim='%!_!# ' 19689for ac_last_try in false false false false false :; do 19690 . ./conf$$subs.sh || 19691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19692 19693 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19694 if test $ac_delim_n = $ac_delim_num; then 19695 break 19696 elif $ac_last_try; then 19697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19698 else 19699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19700 fi 19701done 19702rm -f conf$$subs.sh 19703 19704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19705cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19706_ACEOF 19707sed -n ' 19708h 19709s/^/S["/; s/!.*/"]=/ 19710p 19711g 19712s/^[^!]*!// 19713:repl 19714t repl 19715s/'"$ac_delim"'$// 19716t delim 19717:nl 19718h 19719s/\(.\{148\}\)..*/\1/ 19720t more1 19721s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19722p 19723n 19724b repl 19725:more1 19726s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19727p 19728g 19729s/.\{148\}// 19730t nl 19731:delim 19732h 19733s/\(.\{148\}\)..*/\1/ 19734t more2 19735s/["\\]/\\&/g; s/^/"/; s/$/"/ 19736p 19737b 19738:more2 19739s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19740p 19741g 19742s/.\{148\}// 19743t delim 19744' <conf$$subs.awk | sed ' 19745/^[^""]/{ 19746 N 19747 s/\n// 19748} 19749' >>$CONFIG_STATUS || ac_write_fail=1 19750rm -f conf$$subs.awk 19751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19752_ACAWK 19753cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19754 for (key in S) S_is_set[key] = 1 19755 FS = "" 19756 19757} 19758{ 19759 line = $ 0 19760 nfields = split(line, field, "@") 19761 substed = 0 19762 len = length(field[1]) 19763 for (i = 2; i < nfields; i++) { 19764 key = field[i] 19765 keylen = length(key) 19766 if (S_is_set[key]) { 19767 value = S[key] 19768 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19769 len += length(value) + length(field[++i]) 19770 substed = 1 19771 } else 19772 len += 1 + keylen 19773 } 19774 19775 print line 19776} 19777 19778_ACAWK 19779_ACEOF 19780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19781if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19782 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19783else 19784 cat 19785fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19786 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19787_ACEOF 19788 19789# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19790# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19791# trailing colons and then remove the whole line if VPATH becomes empty 19792# (actually we leave an empty line to preserve line numbers). 19793if test "x$srcdir" = x.; then 19794 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19795h 19796s/// 19797s/^/:/ 19798s/[ ]*$/:/ 19799s/:\$(srcdir):/:/g 19800s/:\${srcdir}:/:/g 19801s/:@srcdir@:/:/g 19802s/^:*// 19803s/:*$// 19804x 19805s/\(=[ ]*\).*/\1/ 19806G 19807s/\n// 19808s/^[^=]*=[ ]*$// 19809}' 19810fi 19811 19812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19813fi # test -n "$CONFIG_FILES" 19814 19815# Set up the scripts for CONFIG_HEADERS section. 19816# No need to generate them if there are no CONFIG_HEADERS. 19817# This happens for instance with `./config.status Makefile'. 19818if test -n "$CONFIG_HEADERS"; then 19819cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19820BEGIN { 19821_ACEOF 19822 19823# Transform confdefs.h into an awk script `defines.awk', embedded as 19824# here-document in config.status, that substitutes the proper values into 19825# config.h.in to produce config.h. 19826 19827# Create a delimiter string that does not exist in confdefs.h, to ease 19828# handling of long lines. 19829ac_delim='%!_!# ' 19830for ac_last_try in false false :; do 19831 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19832 if test -z "$ac_tt"; then 19833 break 19834 elif $ac_last_try; then 19835 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19836 else 19837 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19838 fi 19839done 19840 19841# For the awk script, D is an array of macro values keyed by name, 19842# likewise P contains macro parameters if any. Preserve backslash 19843# newline sequences. 19844 19845ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19846sed -n ' 19847s/.\{148\}/&'"$ac_delim"'/g 19848t rset 19849:rset 19850s/^[ ]*#[ ]*define[ ][ ]*/ / 19851t def 19852d 19853:def 19854s/\\$// 19855t bsnl 19856s/["\\]/\\&/g 19857s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19858D["\1"]=" \3"/p 19859s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19860d 19861:bsnl 19862s/["\\]/\\&/g 19863s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19864D["\1"]=" \3\\\\\\n"\\/p 19865t cont 19866s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19867t cont 19868d 19869:cont 19870n 19871s/.\{148\}/&'"$ac_delim"'/g 19872t clear 19873:clear 19874s/\\$// 19875t bsnlc 19876s/["\\]/\\&/g; s/^/"/; s/$/"/p 19877d 19878:bsnlc 19879s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19880b cont 19881' <confdefs.h | sed ' 19882s/'"$ac_delim"'/"\\\ 19883"/g' >>$CONFIG_STATUS || ac_write_fail=1 19884 19885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19886 for (key in D) D_is_set[key] = 1 19887 FS = "" 19888} 19889/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19890 line = \$ 0 19891 split(line, arg, " ") 19892 if (arg[1] == "#") { 19893 defundef = arg[2] 19894 mac1 = arg[3] 19895 } else { 19896 defundef = substr(arg[1], 2) 19897 mac1 = arg[2] 19898 } 19899 split(mac1, mac2, "(") #) 19900 macro = mac2[1] 19901 prefix = substr(line, 1, index(line, defundef) - 1) 19902 if (D_is_set[macro]) { 19903 # Preserve the white space surrounding the "#". 19904 print prefix "define", macro P[macro] D[macro] 19905 next 19906 } else { 19907 # Replace #undef with comments. This is necessary, for example, 19908 # in the case of _POSIX_SOURCE, which is predefined and required 19909 # on some systems where configure will not decide to define it. 19910 if (defundef == "undef") { 19911 print "/*", prefix defundef, macro, "*/" 19912 next 19913 } 19914 } 19915} 19916{ print } 19917_ACAWK 19918_ACEOF 19919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19920 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19921fi # test -n "$CONFIG_HEADERS" 19922 19923 19924eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19925shift 19926for ac_tag 19927do 19928 case $ac_tag in 19929 :[FHLC]) ac_mode=$ac_tag; continue;; 19930 esac 19931 case $ac_mode$ac_tag in 19932 :[FHL]*:*);; 19933 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19934 :[FH]-) ac_tag=-:-;; 19935 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19936 esac 19937 ac_save_IFS=$IFS 19938 IFS=: 19939 set x $ac_tag 19940 IFS=$ac_save_IFS 19941 shift 19942 ac_file=$1 19943 shift 19944 19945 case $ac_mode in 19946 :L) ac_source=$1;; 19947 :[FH]) 19948 ac_file_inputs= 19949 for ac_f 19950 do 19951 case $ac_f in 19952 -) ac_f="$ac_tmp/stdin";; 19953 *) # Look for the file first in the build tree, then in the source tree 19954 # (if the path is not absolute). The absolute path cannot be DOS-style, 19955 # because $ac_f cannot contain `:'. 19956 test -f "$ac_f" || 19957 case $ac_f in 19958 [\\/$]*) false;; 19959 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19960 esac || 19961 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19962 esac 19963 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19964 as_fn_append ac_file_inputs " '$ac_f'" 19965 done 19966 19967 # Let's still pretend it is `configure' which instantiates (i.e., don't 19968 # use $as_me), people would be surprised to read: 19969 # /* config.h. Generated by config.status. */ 19970 configure_input='Generated from '` 19971 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19972 `' by configure.' 19973 if test x"$ac_file" != x-; then 19974 configure_input="$ac_file. $configure_input" 19975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19976$as_echo "$as_me: creating $ac_file" >&6;} 19977 fi 19978 # Neutralize special characters interpreted by sed in replacement strings. 19979 case $configure_input in #( 19980 *\&* | *\|* | *\\* ) 19981 ac_sed_conf_input=`$as_echo "$configure_input" | 19982 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19983 *) ac_sed_conf_input=$configure_input;; 19984 esac 19985 19986 case $ac_tag in 19987 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19988 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19989 esac 19990 ;; 19991 esac 19992 19993 ac_dir=`$as_dirname -- "$ac_file" || 19994$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19995 X"$ac_file" : 'X\(//\)[^/]' \| \ 19996 X"$ac_file" : 'X\(//\)$' \| \ 19997 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19998$as_echo X"$ac_file" | 19999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20000 s//\1/ 20001 q 20002 } 20003 /^X\(\/\/\)[^/].*/{ 20004 s//\1/ 20005 q 20006 } 20007 /^X\(\/\/\)$/{ 20008 s//\1/ 20009 q 20010 } 20011 /^X\(\/\).*/{ 20012 s//\1/ 20013 q 20014 } 20015 s/.*/./; q'` 20016 as_dir="$ac_dir"; as_fn_mkdir_p 20017 ac_builddir=. 20018 20019case "$ac_dir" in 20020.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20021*) 20022 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20023 # A ".." for each directory in $ac_dir_suffix. 20024 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20025 case $ac_top_builddir_sub in 20026 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20027 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20028 esac ;; 20029esac 20030ac_abs_top_builddir=$ac_pwd 20031ac_abs_builddir=$ac_pwd$ac_dir_suffix 20032# for backward compatibility: 20033ac_top_builddir=$ac_top_build_prefix 20034 20035case $srcdir in 20036 .) # We are building in place. 20037 ac_srcdir=. 20038 ac_top_srcdir=$ac_top_builddir_sub 20039 ac_abs_top_srcdir=$ac_pwd ;; 20040 [\\/]* | ?:[\\/]* ) # Absolute name. 20041 ac_srcdir=$srcdir$ac_dir_suffix; 20042 ac_top_srcdir=$srcdir 20043 ac_abs_top_srcdir=$srcdir ;; 20044 *) # Relative name. 20045 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20046 ac_top_srcdir=$ac_top_build_prefix$srcdir 20047 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20048esac 20049ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20050 20051 20052 case $ac_mode in 20053 :F) 20054 # 20055 # CONFIG_FILE 20056 # 20057 20058 case $INSTALL in 20059 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20060 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20061 esac 20062 ac_MKDIR_P=$MKDIR_P 20063 case $MKDIR_P in 20064 [\\/$]* | ?:[\\/]* ) ;; 20065 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20066 esac 20067_ACEOF 20068 20069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20070# If the template does not know about datarootdir, expand it. 20071# FIXME: This hack should be removed a few years after 2.60. 20072ac_datarootdir_hack=; ac_datarootdir_seen= 20073ac_sed_dataroot=' 20074/datarootdir/ { 20075 p 20076 q 20077} 20078/@datadir@/p 20079/@docdir@/p 20080/@infodir@/p 20081/@localedir@/p 20082/@mandir@/p' 20083case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20084*datarootdir*) ac_datarootdir_seen=yes;; 20085*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20087$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20088_ACEOF 20089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20090 ac_datarootdir_hack=' 20091 s&@datadir@&$datadir&g 20092 s&@docdir@&$docdir&g 20093 s&@infodir@&$infodir&g 20094 s&@localedir@&$localedir&g 20095 s&@mandir@&$mandir&g 20096 s&\\\${datarootdir}&$datarootdir&g' ;; 20097esac 20098_ACEOF 20099 20100# Neutralize VPATH when `$srcdir' = `.'. 20101# Shell code in configure.ac might set extrasub. 20102# FIXME: do we really want to maintain this feature? 20103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20104ac_sed_extra="$ac_vpsub 20105$extrasub 20106_ACEOF 20107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20108:t 20109/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20110s|@configure_input@|$ac_sed_conf_input|;t t 20111s&@top_builddir@&$ac_top_builddir_sub&;t t 20112s&@top_build_prefix@&$ac_top_build_prefix&;t t 20113s&@srcdir@&$ac_srcdir&;t t 20114s&@abs_srcdir@&$ac_abs_srcdir&;t t 20115s&@top_srcdir@&$ac_top_srcdir&;t t 20116s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20117s&@builddir@&$ac_builddir&;t t 20118s&@abs_builddir@&$ac_abs_builddir&;t t 20119s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20120s&@INSTALL@&$ac_INSTALL&;t t 20121s&@MKDIR_P@&$ac_MKDIR_P&;t t 20122$ac_datarootdir_hack 20123" 20124eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20125 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20126 20127test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20128 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20129 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20130 "$ac_tmp/out"`; test -z "$ac_out"; } && 20131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20132which seems to be undefined. Please make sure it is defined" >&5 20133$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20134which seems to be undefined. Please make sure it is defined" >&2;} 20135 20136 rm -f "$ac_tmp/stdin" 20137 case $ac_file in 20138 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20139 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20140 esac \ 20141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20142 ;; 20143 :H) 20144 # 20145 # CONFIG_HEADER 20146 # 20147 if test x"$ac_file" != x-; then 20148 { 20149 $as_echo "/* $configure_input */" \ 20150 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20151 } >"$ac_tmp/config.h" \ 20152 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20153 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20154 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20155$as_echo "$as_me: $ac_file is unchanged" >&6;} 20156 else 20157 rm -f "$ac_file" 20158 mv "$ac_tmp/config.h" "$ac_file" \ 20159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20160 fi 20161 else 20162 $as_echo "/* $configure_input */" \ 20163 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20164 || as_fn_error $? "could not create -" "$LINENO" 5 20165 fi 20166# Compute "$ac_file"'s index in $config_headers. 20167_am_arg="$ac_file" 20168_am_stamp_count=1 20169for _am_header in $config_headers :; do 20170 case $_am_header in 20171 $_am_arg | $_am_arg:* ) 20172 break ;; 20173 * ) 20174 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20175 esac 20176done 20177echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20178$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20179 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20180 X"$_am_arg" : 'X\(//\)$' \| \ 20181 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20182$as_echo X"$_am_arg" | 20183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20184 s//\1/ 20185 q 20186 } 20187 /^X\(\/\/\)[^/].*/{ 20188 s//\1/ 20189 q 20190 } 20191 /^X\(\/\/\)$/{ 20192 s//\1/ 20193 q 20194 } 20195 /^X\(\/\).*/{ 20196 s//\1/ 20197 q 20198 } 20199 s/.*/./; q'`/stamp-h$_am_stamp_count 20200 ;; 20201 20202 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20203$as_echo "$as_me: executing $ac_file commands" >&6;} 20204 ;; 20205 esac 20206 20207 20208 case $ac_file$ac_mode in 20209 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20210 # Older Autoconf quotes --file arguments for eval, but not when files 20211 # are listed without --file. Let's play safe and only enable the eval 20212 # if we detect the quoting. 20213 # TODO: see whether this extra hack can be removed once we start 20214 # requiring Autoconf 2.70 or later. 20215 case $CONFIG_FILES in #( 20216 *\'*) : 20217 eval set x "$CONFIG_FILES" ;; #( 20218 *) : 20219 set x $CONFIG_FILES ;; #( 20220 *) : 20221 ;; 20222esac 20223 shift 20224 # Used to flag and report bootstrapping failures. 20225 am_rc=0 20226 for am_mf 20227 do 20228 # Strip MF so we end up with the name of the file. 20229 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 20230 # Check whether this is an Automake generated Makefile which includes 20231 # dependency-tracking related rules and includes. 20232 # Grep'ing the whole file directly is not great: AIX grep has a line 20233 # limit of 2048, but all sed's we know have understand at least 4000. 20234 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 20235 || continue 20236 am_dirpart=`$as_dirname -- "$am_mf" || 20237$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20238 X"$am_mf" : 'X\(//\)[^/]' \| \ 20239 X"$am_mf" : 'X\(//\)$' \| \ 20240 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20241$as_echo X"$am_mf" | 20242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20243 s//\1/ 20244 q 20245 } 20246 /^X\(\/\/\)[^/].*/{ 20247 s//\1/ 20248 q 20249 } 20250 /^X\(\/\/\)$/{ 20251 s//\1/ 20252 q 20253 } 20254 /^X\(\/\).*/{ 20255 s//\1/ 20256 q 20257 } 20258 s/.*/./; q'` 20259 am_filepart=`$as_basename -- "$am_mf" || 20260$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 20261 X"$am_mf" : 'X\(//\)$' \| \ 20262 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20263$as_echo X/"$am_mf" | 20264 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20265 s//\1/ 20266 q 20267 } 20268 /^X\/\(\/\/\)$/{ 20269 s//\1/ 20270 q 20271 } 20272 /^X\/\(\/\).*/{ 20273 s//\1/ 20274 q 20275 } 20276 s/.*/./; q'` 20277 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 20278 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20279 | $MAKE -f - am--depfiles" >&5 20280 (cd "$am_dirpart" \ 20281 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20282 | $MAKE -f - am--depfiles) >&5 2>&5 20283 ac_status=$? 20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20285 (exit $ac_status); } || am_rc=$? 20286 done 20287 if test $am_rc -ne 0; then 20288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20290as_fn_error $? "Something went wrong bootstrapping makefile fragments 20291 for automatic dependency tracking. Try re-running configure with the 20292 '--disable-dependency-tracking' option to at least be able to build 20293 the package (albeit without support for automatic dependency tracking). 20294See \`config.log' for more details" "$LINENO" 5; } 20295 fi 20296 { am_dirpart=; unset am_dirpart;} 20297 { am_filepart=; unset am_filepart;} 20298 { am_mf=; unset am_mf;} 20299 { am_rc=; unset am_rc;} 20300 rm -f conftest-deps.mk 20301} 20302 ;; 20303 "libtool":C) 20304 20305 # See if we are running on zsh, and set the options that allow our 20306 # commands through without removal of \ escapes. 20307 if test -n "${ZSH_VERSION+set}"; then 20308 setopt NO_GLOB_SUBST 20309 fi 20310 20311 cfgfile=${ofile}T 20312 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20313 $RM "$cfgfile" 20314 20315 cat <<_LT_EOF >> "$cfgfile" 20316#! $SHELL 20317# Generated automatically by $as_me ($PACKAGE) $VERSION 20318# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20319# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20320 20321# Provide generalized library-building support services. 20322# Written by Gordon Matzigkeit, 1996 20323 20324# Copyright (C) 2014 Free Software Foundation, Inc. 20325# This is free software; see the source for copying conditions. There is NO 20326# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20327 20328# GNU Libtool is free software; you can redistribute it and/or modify 20329# it under the terms of the GNU General Public License as published by 20330# the Free Software Foundation; either version 2 of of the License, or 20331# (at your option) any later version. 20332# 20333# As a special exception to the GNU General Public License, if you 20334# distribute this file as part of a program or library that is built 20335# using GNU Libtool, you may include this file under the same 20336# distribution terms that you use for the rest of that program. 20337# 20338# GNU Libtool is distributed in the hope that it will be useful, but 20339# WITHOUT ANY WARRANTY; without even the implied warranty of 20340# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20341# GNU General Public License for more details. 20342# 20343# You should have received a copy of the GNU General Public License 20344# along with this program. If not, see <http://www.gnu.org/licenses/>. 20345 20346 20347# The names of the tagged configurations supported by this script. 20348available_tags='' 20349 20350# Configured defaults for sys_lib_dlsearch_path munging. 20351: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20352 20353# ### BEGIN LIBTOOL CONFIG 20354 20355# Whether or not to build static libraries. 20356build_old_libs=$enable_static 20357 20358# Which release of libtool.m4 was used? 20359macro_version=$macro_version 20360macro_revision=$macro_revision 20361 20362# Whether or not to build shared libraries. 20363build_libtool_libs=$enable_shared 20364 20365# What type of objects to build. 20366pic_mode=$pic_mode 20367 20368# Whether or not to optimize for fast installation. 20369fast_install=$enable_fast_install 20370 20371# Shared archive member basename,for filename based shared library versioning on AIX. 20372shared_archive_member_spec=$shared_archive_member_spec 20373 20374# Shell to use when invoking shell scripts. 20375SHELL=$lt_SHELL 20376 20377# An echo program that protects backslashes. 20378ECHO=$lt_ECHO 20379 20380# The PATH separator for the build system. 20381PATH_SEPARATOR=$lt_PATH_SEPARATOR 20382 20383# The host system. 20384host_alias=$host_alias 20385host=$host 20386host_os=$host_os 20387 20388# The build system. 20389build_alias=$build_alias 20390build=$build 20391build_os=$build_os 20392 20393# A sed program that does not truncate output. 20394SED=$lt_SED 20395 20396# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20397Xsed="\$SED -e 1s/^X//" 20398 20399# A grep program that handles long lines. 20400GREP=$lt_GREP 20401 20402# An ERE matcher. 20403EGREP=$lt_EGREP 20404 20405# A literal string matcher. 20406FGREP=$lt_FGREP 20407 20408# A BSD- or MS-compatible name lister. 20409NM=$lt_NM 20410 20411# Whether we need soft or hard links. 20412LN_S=$lt_LN_S 20413 20414# What is the maximum length of a command? 20415max_cmd_len=$max_cmd_len 20416 20417# Object file suffix (normally "o"). 20418objext=$ac_objext 20419 20420# Executable file suffix (normally ""). 20421exeext=$exeext 20422 20423# whether the shell understands "unset". 20424lt_unset=$lt_unset 20425 20426# turn spaces into newlines. 20427SP2NL=$lt_lt_SP2NL 20428 20429# turn newlines into spaces. 20430NL2SP=$lt_lt_NL2SP 20431 20432# convert \$build file names to \$host format. 20433to_host_file_cmd=$lt_cv_to_host_file_cmd 20434 20435# convert \$build files to toolchain format. 20436to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20437 20438# An object symbol dumper. 20439OBJDUMP=$lt_OBJDUMP 20440 20441# Method to check whether dependent libraries are shared objects. 20442deplibs_check_method=$lt_deplibs_check_method 20443 20444# Command to use when deplibs_check_method = "file_magic". 20445file_magic_cmd=$lt_file_magic_cmd 20446 20447# How to find potential files when deplibs_check_method = "file_magic". 20448file_magic_glob=$lt_file_magic_glob 20449 20450# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20451want_nocaseglob=$lt_want_nocaseglob 20452 20453# DLL creation program. 20454DLLTOOL=$lt_DLLTOOL 20455 20456# Command to associate shared and link libraries. 20457sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20458 20459# The archiver. 20460AR=$lt_AR 20461 20462# Flags to create an archive. 20463AR_FLAGS=$lt_AR_FLAGS 20464 20465# How to feed a file listing to the archiver. 20466archiver_list_spec=$lt_archiver_list_spec 20467 20468# A symbol stripping program. 20469STRIP=$lt_STRIP 20470 20471# Commands used to install an old-style archive. 20472RANLIB=$lt_RANLIB 20473old_postinstall_cmds=$lt_old_postinstall_cmds 20474old_postuninstall_cmds=$lt_old_postuninstall_cmds 20475 20476# Whether to use a lock for old archive extraction. 20477lock_old_archive_extraction=$lock_old_archive_extraction 20478 20479# A C compiler. 20480LTCC=$lt_CC 20481 20482# LTCC compiler flags. 20483LTCFLAGS=$lt_CFLAGS 20484 20485# Take the output of nm and produce a listing of raw symbols and C names. 20486global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20487 20488# Transform the output of nm in a proper C declaration. 20489global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20490 20491# Transform the output of nm into a list of symbols to manually relocate. 20492global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20493 20494# Transform the output of nm in a C name address pair. 20495global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20496 20497# Transform the output of nm in a C name address pair when lib prefix is needed. 20498global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20499 20500# The name lister interface. 20501nm_interface=$lt_lt_cv_nm_interface 20502 20503# Specify filename containing input files for \$NM. 20504nm_file_list_spec=$lt_nm_file_list_spec 20505 20506# The root where to search for dependent libraries,and where our libraries should be installed. 20507lt_sysroot=$lt_sysroot 20508 20509# Command to truncate a binary pipe. 20510lt_truncate_bin=$lt_lt_cv_truncate_bin 20511 20512# The name of the directory that contains temporary libtool files. 20513objdir=$objdir 20514 20515# Used to examine libraries when file_magic_cmd begins with "file". 20516MAGIC_CMD=$MAGIC_CMD 20517 20518# Must we lock files when doing compilation? 20519need_locks=$lt_need_locks 20520 20521# Manifest tool. 20522MANIFEST_TOOL=$lt_MANIFEST_TOOL 20523 20524# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20525DSYMUTIL=$lt_DSYMUTIL 20526 20527# Tool to change global to local symbols on Mac OS X. 20528NMEDIT=$lt_NMEDIT 20529 20530# Tool to manipulate fat objects and archives on Mac OS X. 20531LIPO=$lt_LIPO 20532 20533# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20534OTOOL=$lt_OTOOL 20535 20536# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20537OTOOL64=$lt_OTOOL64 20538 20539# Old archive suffix (normally "a"). 20540libext=$libext 20541 20542# Shared library suffix (normally ".so"). 20543shrext_cmds=$lt_shrext_cmds 20544 20545# The commands to extract the exported symbol list from a shared archive. 20546extract_expsyms_cmds=$lt_extract_expsyms_cmds 20547 20548# Variables whose values should be saved in libtool wrapper scripts and 20549# restored at link time. 20550variables_saved_for_relink=$lt_variables_saved_for_relink 20551 20552# Do we need the "lib" prefix for modules? 20553need_lib_prefix=$need_lib_prefix 20554 20555# Do we need a version for libraries? 20556need_version=$need_version 20557 20558# Library versioning type. 20559version_type=$version_type 20560 20561# Shared library runtime path variable. 20562runpath_var=$runpath_var 20563 20564# Shared library path variable. 20565shlibpath_var=$shlibpath_var 20566 20567# Is shlibpath searched before the hard-coded library search path? 20568shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20569 20570# Format of library name prefix. 20571libname_spec=$lt_libname_spec 20572 20573# List of archive names. First name is the real one, the rest are links. 20574# The last name is the one that the linker finds with -lNAME 20575library_names_spec=$lt_library_names_spec 20576 20577# The coded name of the library, if different from the real name. 20578soname_spec=$lt_soname_spec 20579 20580# Permission mode override for installation of shared libraries. 20581install_override_mode=$lt_install_override_mode 20582 20583# Command to use after installation of a shared archive. 20584postinstall_cmds=$lt_postinstall_cmds 20585 20586# Command to use after uninstallation of a shared archive. 20587postuninstall_cmds=$lt_postuninstall_cmds 20588 20589# Commands used to finish a libtool library installation in a directory. 20590finish_cmds=$lt_finish_cmds 20591 20592# As "finish_cmds", except a single script fragment to be evaled but 20593# not shown. 20594finish_eval=$lt_finish_eval 20595 20596# Whether we should hardcode library paths into libraries. 20597hardcode_into_libs=$hardcode_into_libs 20598 20599# Compile-time system search path for libraries. 20600sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20601 20602# Detected run-time system search path for libraries. 20603sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20604 20605# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20606configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20607 20608# Whether dlopen is supported. 20609dlopen_support=$enable_dlopen 20610 20611# Whether dlopen of programs is supported. 20612dlopen_self=$enable_dlopen_self 20613 20614# Whether dlopen of statically linked programs is supported. 20615dlopen_self_static=$enable_dlopen_self_static 20616 20617# Commands to strip libraries. 20618old_striplib=$lt_old_striplib 20619striplib=$lt_striplib 20620 20621 20622# The linker used to build libraries. 20623LD=$lt_LD 20624 20625# How to create reloadable object files. 20626reload_flag=$lt_reload_flag 20627reload_cmds=$lt_reload_cmds 20628 20629# Commands used to build an old-style archive. 20630old_archive_cmds=$lt_old_archive_cmds 20631 20632# A language specific compiler. 20633CC=$lt_compiler 20634 20635# Is the compiler the GNU compiler? 20636with_gcc=$GCC 20637 20638# Compiler flag to turn off builtin functions. 20639no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20640 20641# Additional compiler flags for building library objects. 20642pic_flag=$lt_lt_prog_compiler_pic 20643 20644# How to pass a linker flag through the compiler. 20645wl=$lt_lt_prog_compiler_wl 20646 20647# Compiler flag to prevent dynamic linking. 20648link_static_flag=$lt_lt_prog_compiler_static 20649 20650# Does compiler simultaneously support -c and -o options? 20651compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20652 20653# Whether or not to add -lc for building shared libraries. 20654build_libtool_need_lc=$archive_cmds_need_lc 20655 20656# Whether or not to disallow shared libs when runtime libs are static. 20657allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20658 20659# Compiler flag to allow reflexive dlopens. 20660export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20661 20662# Compiler flag to generate shared objects directly from archives. 20663whole_archive_flag_spec=$lt_whole_archive_flag_spec 20664 20665# Whether the compiler copes with passing no objects directly. 20666compiler_needs_object=$lt_compiler_needs_object 20667 20668# Create an old-style archive from a shared archive. 20669old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20670 20671# Create a temporary old-style archive to link instead of a shared archive. 20672old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20673 20674# Commands used to build a shared archive. 20675archive_cmds=$lt_archive_cmds 20676archive_expsym_cmds=$lt_archive_expsym_cmds 20677 20678# Commands used to build a loadable module if different from building 20679# a shared archive. 20680module_cmds=$lt_module_cmds 20681module_expsym_cmds=$lt_module_expsym_cmds 20682 20683# Whether we are building with GNU ld or not. 20684with_gnu_ld=$lt_with_gnu_ld 20685 20686# Flag that allows shared libraries with undefined symbols to be built. 20687allow_undefined_flag=$lt_allow_undefined_flag 20688 20689# Flag that enforces no undefined symbols. 20690no_undefined_flag=$lt_no_undefined_flag 20691 20692# Flag to hardcode \$libdir into a binary during linking. 20693# This must work even if \$libdir does not exist 20694hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20695 20696# Whether we need a single "-rpath" flag with a separated argument. 20697hardcode_libdir_separator=$lt_hardcode_libdir_separator 20698 20699# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20700# DIR into the resulting binary. 20701hardcode_direct=$hardcode_direct 20702 20703# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20704# DIR into the resulting binary and the resulting library dependency is 20705# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20706# library is relocated. 20707hardcode_direct_absolute=$hardcode_direct_absolute 20708 20709# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20710# into the resulting binary. 20711hardcode_minus_L=$hardcode_minus_L 20712 20713# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20714# into the resulting binary. 20715hardcode_shlibpath_var=$hardcode_shlibpath_var 20716 20717# Set to "yes" if building a shared library automatically hardcodes DIR 20718# into the library and all subsequent libraries and executables linked 20719# against it. 20720hardcode_automatic=$hardcode_automatic 20721 20722# Set to yes if linker adds runtime paths of dependent libraries 20723# to runtime path list. 20724inherit_rpath=$inherit_rpath 20725 20726# Whether libtool must link a program against all its dependency libraries. 20727link_all_deplibs=$link_all_deplibs 20728 20729# Set to "yes" if exported symbols are required. 20730always_export_symbols=$always_export_symbols 20731 20732# The commands to list exported symbols. 20733export_symbols_cmds=$lt_export_symbols_cmds 20734 20735# Symbols that should not be listed in the preloaded symbols. 20736exclude_expsyms=$lt_exclude_expsyms 20737 20738# Symbols that must always be exported. 20739include_expsyms=$lt_include_expsyms 20740 20741# Commands necessary for linking programs (against libraries) with templates. 20742prelink_cmds=$lt_prelink_cmds 20743 20744# Commands necessary for finishing linking programs. 20745postlink_cmds=$lt_postlink_cmds 20746 20747# Specify filename containing input files. 20748file_list_spec=$lt_file_list_spec 20749 20750# How to hardcode a shared library path into an executable. 20751hardcode_action=$hardcode_action 20752 20753# ### END LIBTOOL CONFIG 20754 20755_LT_EOF 20756 20757 cat <<'_LT_EOF' >> "$cfgfile" 20758 20759# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20760 20761# func_munge_path_list VARIABLE PATH 20762# ----------------------------------- 20763# VARIABLE is name of variable containing _space_ separated list of 20764# directories to be munged by the contents of PATH, which is string 20765# having a format: 20766# "DIR[:DIR]:" 20767# string "DIR[ DIR]" will be prepended to VARIABLE 20768# ":DIR[:DIR]" 20769# string "DIR[ DIR]" will be appended to VARIABLE 20770# "DIRP[:DIRP]::[DIRA:]DIRA" 20771# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20772# "DIRA[ DIRA]" will be appended to VARIABLE 20773# "DIR[:DIR]" 20774# VARIABLE will be replaced by "DIR[ DIR]" 20775func_munge_path_list () 20776{ 20777 case x$2 in 20778 x) 20779 ;; 20780 *:) 20781 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20782 ;; 20783 x:*) 20784 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20785 ;; 20786 *::*) 20787 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20788 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20789 ;; 20790 *) 20791 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20792 ;; 20793 esac 20794} 20795 20796 20797# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20798func_cc_basename () 20799{ 20800 for cc_temp in $*""; do 20801 case $cc_temp in 20802 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20803 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20804 \-*) ;; 20805 *) break;; 20806 esac 20807 done 20808 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20809} 20810 20811 20812# ### END FUNCTIONS SHARED WITH CONFIGURE 20813 20814_LT_EOF 20815 20816 case $host_os in 20817 aix3*) 20818 cat <<\_LT_EOF >> "$cfgfile" 20819# AIX sometimes has problems with the GCC collect2 program. For some 20820# reason, if we set the COLLECT_NAMES environment variable, the problems 20821# vanish in a puff of smoke. 20822if test set != "${COLLECT_NAMES+set}"; then 20823 COLLECT_NAMES= 20824 export COLLECT_NAMES 20825fi 20826_LT_EOF 20827 ;; 20828 esac 20829 20830 20831ltmain=$ac_aux_dir/ltmain.sh 20832 20833 20834 # We use sed instead of cat because bash on DJGPP gets confused if 20835 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20836 # text mode, it properly converts lines to CR/LF. This bash problem 20837 # is reportedly fixed, but why not run on old versions too? 20838 sed '$q' "$ltmain" >> "$cfgfile" \ 20839 || (rm -f "$cfgfile"; exit 1) 20840 20841 mv -f "$cfgfile" "$ofile" || 20842 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20843 chmod +x "$ofile" 20844 20845 ;; 20846 20847 esac 20848done # for ac_tag 20849 20850 20851as_fn_exit 0 20852_ACEOF 20853ac_clean_files=$ac_clean_files_save 20854 20855test $ac_write_fail = 0 || 20856 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20857 20858 20859# configure is writing to config.log, and then calls config.status. 20860# config.status does its own redirection, appending to config.log. 20861# Unfortunately, on DOS this fails, as config.log is still kept open 20862# by configure, so config.status won't be able to write to it; its 20863# output is simply discarded. So we exec the FD to /dev/null, 20864# effectively closing config.log, so it can be properly (re)opened and 20865# appended to by config.status. When coming back to configure, we 20866# need to make the FD available again. 20867if test "$no_create" != yes; then 20868 ac_cs_success=: 20869 ac_config_status_args= 20870 test "$silent" = yes && 20871 ac_config_status_args="$ac_config_status_args --quiet" 20872 exec 5>/dev/null 20873 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20874 exec 5>>config.log 20875 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20876 # would make configure fail if this is the last instruction. 20877 $ac_cs_success || as_fn_exit 1 20878fi 20879if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20881$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20882fi 20883 20884