1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-input-mouse 1.9.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 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-mouse' 593PACKAGE_TARNAME='xf86-input-mouse' 594PACKAGE_VERSION='1.9.3' 595PACKAGE_STRING='xf86-input-mouse 1.9.3' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 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 641OS_MOUSE_NAME 642sdkdir 643inputdir 644XORG_LIBS 645XORG_CFLAGS 646LINT_FALSE 647LINT_TRUE 648LINT_FLAGS 649LINT 650MAN_SUBSTS 651XORG_MAN_PAGE 652ADMIN_MAN_DIR 653DRIVER_MAN_DIR 654MISC_MAN_DIR 655FILE_MAN_DIR 656LIB_MAN_DIR 657APP_MAN_DIR 658ADMIN_MAN_SUFFIX 659DRIVER_MAN_SUFFIX 660MISC_MAN_SUFFIX 661FILE_MAN_SUFFIX 662LIB_MAN_SUFFIX 663APP_MAN_SUFFIX 664INSTALL_CMD 665PKG_CONFIG_LIBDIR 666PKG_CONFIG_PATH 667PKG_CONFIG 668CHANGELOG_CMD 669STRICT_CFLAGS 670CWARNFLAGS 671BASE_CFLAGS 672LT_SYS_LIBRARY_PATH 673OTOOL64 674OTOOL 675LIPO 676NMEDIT 677DSYMUTIL 678MANIFEST_TOOL 679RANLIB 680ac_ct_AR 681AR 682DLLTOOL 683OBJDUMP 684LN_S 685NM 686ac_ct_DUMPBIN 687DUMPBIN 688LD 689FGREP 690SED 691host_os 692host_vendor 693host_cpu 694host 695build_os 696build_vendor 697build_cpu 698build 699LIBTOOL 700AM_BACKSLASH 701AM_DEFAULT_VERBOSITY 702AM_DEFAULT_V 703AM_V 704am__fastdepCC_FALSE 705am__fastdepCC_TRUE 706CCDEPMODE 707am__nodep 708AMDEPBACKSLASH 709AMDEP_FALSE 710AMDEP_TRUE 711am__quote 712am__include 713DEPDIR 714am__untar 715am__tar 716AMTAR 717am__leading_dot 718SET_MAKE 719AWK 720mkdir_p 721MKDIR_P 722INSTALL_STRIP_PROGRAM 723STRIP 724install_sh 725MAKEINFO 726AUTOHEADER 727AUTOMAKE 728AUTOCONF 729ACLOCAL 730VERSION 731PACKAGE 732CYGPATH_W 733am__isrc 734INSTALL_DATA 735INSTALL_SCRIPT 736INSTALL_PROGRAM 737EGREP 738GREP 739CPP 740OBJEXT 741EXEEXT 742ac_ct_CC 743CPPFLAGS 744LDFLAGS 745CFLAGS 746CC 747target_alias 748host_alias 749build_alias 750LIBS 751ECHO_T 752ECHO_N 753ECHO_C 754DEFS 755mandir 756localedir 757libdir 758psdir 759pdfdir 760dvidir 761htmldir 762infodir 763docdir 764oldincludedir 765includedir 766localstatedir 767sharedstatedir 768sysconfdir 769datadir 770datarootdir 771libexecdir 772sbindir 773bindir 774program_transform_name 775prefix 776exec_prefix 777PACKAGE_URL 778PACKAGE_BUGREPORT 779PACKAGE_STRING 780PACKAGE_VERSION 781PACKAGE_TARNAME 782PACKAGE_NAME 783PATH_SEPARATOR 784SHELL' 785ac_subst_files='' 786ac_user_opts=' 787enable_option_checking 788enable_dependency_tracking 789enable_silent_rules 790enable_static 791enable_shared 792with_pic 793enable_fast_install 794with_aix_soname 795with_gnu_ld 796with_sysroot 797enable_libtool_lock 798enable_selective_werror 799enable_strict_compilation 800with_lint 801with_xorg_module_dir 802with_sdkdir 803' 804 ac_precious_vars='build_alias 805host_alias 806target_alias 807CC 808CFLAGS 809LDFLAGS 810LIBS 811CPPFLAGS 812CPP 813LT_SYS_LIBRARY_PATH 814PKG_CONFIG 815PKG_CONFIG_PATH 816PKG_CONFIG_LIBDIR 817LINT 818LINT_FLAGS 819XORG_CFLAGS 820XORG_LIBS' 821 822 823# Initialize some variables set by options. 824ac_init_help= 825ac_init_version=false 826ac_unrecognized_opts= 827ac_unrecognized_sep= 828# The variables have the same names as the options, with 829# dashes changed to underlines. 830cache_file=/dev/null 831exec_prefix=NONE 832no_create= 833no_recursion= 834prefix=NONE 835program_prefix=NONE 836program_suffix=NONE 837program_transform_name=s,x,x, 838silent= 839site= 840srcdir= 841verbose= 842x_includes=NONE 843x_libraries=NONE 844 845# Installation directory options. 846# These are left unexpanded so users can "make install exec_prefix=/foo" 847# and all the variables that are supposed to be based on exec_prefix 848# by default will actually change. 849# Use braces instead of parens because sh, perl, etc. also accept them. 850# (The list follows the same order as the GNU Coding Standards.) 851bindir='${exec_prefix}/bin' 852sbindir='${exec_prefix}/sbin' 853libexecdir='${exec_prefix}/libexec' 854datarootdir='${prefix}/share' 855datadir='${datarootdir}' 856sysconfdir='${prefix}/etc' 857sharedstatedir='${prefix}/com' 858localstatedir='${prefix}/var' 859includedir='${prefix}/include' 860oldincludedir='/usr/include' 861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 862infodir='${datarootdir}/info' 863htmldir='${docdir}' 864dvidir='${docdir}' 865pdfdir='${docdir}' 866psdir='${docdir}' 867libdir='${exec_prefix}/lib' 868localedir='${datarootdir}/locale' 869mandir='${datarootdir}/man' 870 871ac_prev= 872ac_dashdash= 873for ac_option 874do 875 # If the previous option needs an argument, assign it. 876 if test -n "$ac_prev"; then 877 eval $ac_prev=\$ac_option 878 ac_prev= 879 continue 880 fi 881 882 case $ac_option in 883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 884 *=) ac_optarg= ;; 885 *) ac_optarg=yes ;; 886 esac 887 888 # Accept the important Cygnus configure options, so we can diagnose typos. 889 890 case $ac_dashdash$ac_option in 891 --) 892 ac_dashdash=yes ;; 893 894 -bindir | --bindir | --bindi | --bind | --bin | --bi) 895 ac_prev=bindir ;; 896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 897 bindir=$ac_optarg ;; 898 899 -build | --build | --buil | --bui | --bu) 900 ac_prev=build_alias ;; 901 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 902 build_alias=$ac_optarg ;; 903 904 -cache-file | --cache-file | --cache-fil | --cache-fi \ 905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 906 ac_prev=cache_file ;; 907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 909 cache_file=$ac_optarg ;; 910 911 --config-cache | -C) 912 cache_file=config.cache ;; 913 914 -datadir | --datadir | --datadi | --datad) 915 ac_prev=datadir ;; 916 -datadir=* | --datadir=* | --datadi=* | --datad=*) 917 datadir=$ac_optarg ;; 918 919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 920 | --dataroo | --dataro | --datar) 921 ac_prev=datarootdir ;; 922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 924 datarootdir=$ac_optarg ;; 925 926 -disable-* | --disable-*) 927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 928 # Reject names that are not valid shell variable names. 929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 930 as_fn_error $? "invalid feature name: $ac_useropt" 931 ac_useropt_orig=$ac_useropt 932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 933 case $ac_user_opts in 934 *" 935"enable_$ac_useropt" 936"*) ;; 937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 938 ac_unrecognized_sep=', ';; 939 esac 940 eval enable_$ac_useropt=no ;; 941 942 -docdir | --docdir | --docdi | --doc | --do) 943 ac_prev=docdir ;; 944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 945 docdir=$ac_optarg ;; 946 947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 948 ac_prev=dvidir ;; 949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 950 dvidir=$ac_optarg ;; 951 952 -enable-* | --enable-*) 953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 954 # Reject names that are not valid shell variable names. 955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 956 as_fn_error $? "invalid feature name: $ac_useropt" 957 ac_useropt_orig=$ac_useropt 958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 959 case $ac_user_opts in 960 *" 961"enable_$ac_useropt" 962"*) ;; 963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 964 ac_unrecognized_sep=', ';; 965 esac 966 eval enable_$ac_useropt=\$ac_optarg ;; 967 968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 970 | --exec | --exe | --ex) 971 ac_prev=exec_prefix ;; 972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 974 | --exec=* | --exe=* | --ex=*) 975 exec_prefix=$ac_optarg ;; 976 977 -gas | --gas | --ga | --g) 978 # Obsolete; use --with-gas. 979 with_gas=yes ;; 980 981 -help | --help | --hel | --he | -h) 982 ac_init_help=long ;; 983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 984 ac_init_help=recursive ;; 985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 986 ac_init_help=short ;; 987 988 -host | --host | --hos | --ho) 989 ac_prev=host_alias ;; 990 -host=* | --host=* | --hos=* | --ho=*) 991 host_alias=$ac_optarg ;; 992 993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 994 ac_prev=htmldir ;; 995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 996 | --ht=*) 997 htmldir=$ac_optarg ;; 998 999 -includedir | --includedir | --includedi | --included | --include \ 1000 | --includ | --inclu | --incl | --inc) 1001 ac_prev=includedir ;; 1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1003 | --includ=* | --inclu=* | --incl=* | --inc=*) 1004 includedir=$ac_optarg ;; 1005 1006 -infodir | --infodir | --infodi | --infod | --info | --inf) 1007 ac_prev=infodir ;; 1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1009 infodir=$ac_optarg ;; 1010 1011 -libdir | --libdir | --libdi | --libd) 1012 ac_prev=libdir ;; 1013 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1014 libdir=$ac_optarg ;; 1015 1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1017 | --libexe | --libex | --libe) 1018 ac_prev=libexecdir ;; 1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1020 | --libexe=* | --libex=* | --libe=*) 1021 libexecdir=$ac_optarg ;; 1022 1023 -localedir | --localedir | --localedi | --localed | --locale) 1024 ac_prev=localedir ;; 1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1026 localedir=$ac_optarg ;; 1027 1028 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1029 | --localstate | --localstat | --localsta | --localst | --locals) 1030 ac_prev=localstatedir ;; 1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1033 localstatedir=$ac_optarg ;; 1034 1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1036 ac_prev=mandir ;; 1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1038 mandir=$ac_optarg ;; 1039 1040 -nfp | --nfp | --nf) 1041 # Obsolete; use --without-fp. 1042 with_fp=no ;; 1043 1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1045 | --no-cr | --no-c | -n) 1046 no_create=yes ;; 1047 1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1050 no_recursion=yes ;; 1051 1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1054 | --oldin | --oldi | --old | --ol | --o) 1055 ac_prev=oldincludedir ;; 1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1059 oldincludedir=$ac_optarg ;; 1060 1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1062 ac_prev=prefix ;; 1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1064 prefix=$ac_optarg ;; 1065 1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1067 | --program-pre | --program-pr | --program-p) 1068 ac_prev=program_prefix ;; 1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1071 program_prefix=$ac_optarg ;; 1072 1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1074 | --program-suf | --program-su | --program-s) 1075 ac_prev=program_suffix ;; 1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1078 program_suffix=$ac_optarg ;; 1079 1080 -program-transform-name | --program-transform-name \ 1081 | --program-transform-nam | --program-transform-na \ 1082 | --program-transform-n | --program-transform- \ 1083 | --program-transform | --program-transfor \ 1084 | --program-transfo | --program-transf \ 1085 | --program-trans | --program-tran \ 1086 | --progr-tra | --program-tr | --program-t) 1087 ac_prev=program_transform_name ;; 1088 -program-transform-name=* | --program-transform-name=* \ 1089 | --program-transform-nam=* | --program-transform-na=* \ 1090 | --program-transform-n=* | --program-transform-=* \ 1091 | --program-transform=* | --program-transfor=* \ 1092 | --program-transfo=* | --program-transf=* \ 1093 | --program-trans=* | --program-tran=* \ 1094 | --progr-tra=* | --program-tr=* | --program-t=*) 1095 program_transform_name=$ac_optarg ;; 1096 1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1098 ac_prev=pdfdir ;; 1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1100 pdfdir=$ac_optarg ;; 1101 1102 -psdir | --psdir | --psdi | --psd | --ps) 1103 ac_prev=psdir ;; 1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1105 psdir=$ac_optarg ;; 1106 1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1108 | -silent | --silent | --silen | --sile | --sil) 1109 silent=yes ;; 1110 1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1112 ac_prev=sbindir ;; 1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1114 | --sbi=* | --sb=*) 1115 sbindir=$ac_optarg ;; 1116 1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1119 | --sharedst | --shareds | --shared | --share | --shar \ 1120 | --sha | --sh) 1121 ac_prev=sharedstatedir ;; 1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1125 | --sha=* | --sh=*) 1126 sharedstatedir=$ac_optarg ;; 1127 1128 -site | --site | --sit) 1129 ac_prev=site ;; 1130 -site=* | --site=* | --sit=*) 1131 site=$ac_optarg ;; 1132 1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1134 ac_prev=srcdir ;; 1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1136 srcdir=$ac_optarg ;; 1137 1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1139 | --syscon | --sysco | --sysc | --sys | --sy) 1140 ac_prev=sysconfdir ;; 1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1143 sysconfdir=$ac_optarg ;; 1144 1145 -target | --target | --targe | --targ | --tar | --ta | --t) 1146 ac_prev=target_alias ;; 1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1148 target_alias=$ac_optarg ;; 1149 1150 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1151 verbose=yes ;; 1152 1153 -version | --version | --versio | --versi | --vers | -V) 1154 ac_init_version=: ;; 1155 1156 -with-* | --with-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: $ac_useropt" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165"with_$ac_useropt" 1166"*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=\$ac_optarg ;; 1171 1172 -without-* | --without-*) 1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1176 as_fn_error $? "invalid package name: $ac_useropt" 1177 ac_useropt_orig=$ac_useropt 1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1179 case $ac_user_opts in 1180 *" 1181"with_$ac_useropt" 1182"*) ;; 1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1184 ac_unrecognized_sep=', ';; 1185 esac 1186 eval with_$ac_useropt=no ;; 1187 1188 --x) 1189 # Obsolete; use --with-x. 1190 with_x=yes ;; 1191 1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1193 | --x-incl | --x-inc | --x-in | --x-i) 1194 ac_prev=x_includes ;; 1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1197 x_includes=$ac_optarg ;; 1198 1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1201 ac_prev=x_libraries ;; 1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1204 x_libraries=$ac_optarg ;; 1205 1206 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1207Try \`$0 --help' for more information" 1208 ;; 1209 1210 *=*) 1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1212 # Reject names that are not valid shell variable names. 1213 case $ac_envvar in #( 1214 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1216 esac 1217 eval $ac_envvar=\$ac_optarg 1218 export $ac_envvar ;; 1219 1220 *) 1221 # FIXME: should be removed in autoconf 3.0. 1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1226 ;; 1227 1228 esac 1229done 1230 1231if test -n "$ac_prev"; then 1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1233 as_fn_error $? "missing argument to $ac_option" 1234fi 1235 1236if test -n "$ac_unrecognized_opts"; then 1237 case $enable_option_checking in 1238 no) ;; 1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1241 esac 1242fi 1243 1244# Check all directory arguments for consistency. 1245for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1246 datadir sysconfdir sharedstatedir localstatedir includedir \ 1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1248 libdir localedir mandir 1249do 1250 eval ac_val=\$$ac_var 1251 # Remove trailing slashes. 1252 case $ac_val in 1253 */ ) 1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1255 eval $ac_var=\$ac_val;; 1256 esac 1257 # Be sure to have absolute directory names. 1258 case $ac_val in 1259 [\\/$]* | ?:[\\/]* ) continue;; 1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1261 esac 1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1263done 1264 1265# There might be people who depend on the old broken behavior: `$host' 1266# used to hold the argument of --host etc. 1267# FIXME: To remove some day. 1268build=$build_alias 1269host=$host_alias 1270target=$target_alias 1271 1272# FIXME: To remove some day. 1273if test "x$host_alias" != x; then 1274 if test "x$build_alias" = x; then 1275 cross_compiling=maybe 1276 elif test "x$build_alias" != "x$host_alias"; then 1277 cross_compiling=yes 1278 fi 1279fi 1280 1281ac_tool_prefix= 1282test -n "$host_alias" && ac_tool_prefix=$host_alias- 1283 1284test "$silent" = yes && exec 6>/dev/null 1285 1286 1287ac_pwd=`pwd` && test -n "$ac_pwd" && 1288ac_ls_di=`ls -di .` && 1289ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1290 as_fn_error $? "working directory cannot be determined" 1291test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1292 as_fn_error $? "pwd does not report name of working directory" 1293 1294 1295# Find the source files, if location was not specified. 1296if test -z "$srcdir"; then 1297 ac_srcdir_defaulted=yes 1298 # Try the directory containing this script, then the parent directory. 1299 ac_confdir=`$as_dirname -- "$as_myself" || 1300$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1301 X"$as_myself" : 'X\(//\)[^/]' \| \ 1302 X"$as_myself" : 'X\(//\)$' \| \ 1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1304$as_echo X"$as_myself" | 1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\/\)[^/].*/{ 1310 s//\1/ 1311 q 1312 } 1313 /^X\(\/\/\)$/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\).*/{ 1318 s//\1/ 1319 q 1320 } 1321 s/.*/./; q'` 1322 srcdir=$ac_confdir 1323 if test ! -r "$srcdir/$ac_unique_file"; then 1324 srcdir=.. 1325 fi 1326else 1327 ac_srcdir_defaulted=no 1328fi 1329if test ! -r "$srcdir/$ac_unique_file"; then 1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1332fi 1333ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1334ac_abs_confdir=`( 1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1336 pwd)` 1337# When building in place, set srcdir=. 1338if test "$ac_abs_confdir" = "$ac_pwd"; then 1339 srcdir=. 1340fi 1341# Remove unnecessary trailing slashes from srcdir. 1342# Double slashes in file names in object file debugging info 1343# mess up M-x gdb in Emacs. 1344case $srcdir in 1345*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1346esac 1347for ac_var in $ac_precious_vars; do 1348 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1349 eval ac_env_${ac_var}_value=\$${ac_var} 1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1351 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1352done 1353 1354# 1355# Report the --help message. 1356# 1357if test "$ac_init_help" = "long"; then 1358 # Omit some internal or obsolete options to make the list less imposing. 1359 # This message is too long to be a string in the A/UX 3.1 sh. 1360 cat <<_ACEOF 1361\`configure' configures xf86-input-mouse 1.9.3 to adapt to many kinds of systems. 1362 1363Usage: $0 [OPTION]... [VAR=VALUE]... 1364 1365To assign environment variables (e.g., CC, CFLAGS...), specify them as 1366VAR=VALUE. See below for descriptions of some of the useful variables. 1367 1368Defaults for the options are specified in brackets. 1369 1370Configuration: 1371 -h, --help display this help and exit 1372 --help=short display options specific to this package 1373 --help=recursive display the short help of all the included packages 1374 -V, --version display version information and exit 1375 -q, --quiet, --silent do not print \`checking ...' messages 1376 --cache-file=FILE cache test results in FILE [disabled] 1377 -C, --config-cache alias for \`--cache-file=config.cache' 1378 -n, --no-create do not create output files 1379 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1380 1381Installation directories: 1382 --prefix=PREFIX install architecture-independent files in PREFIX 1383 [$ac_default_prefix] 1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1385 [PREFIX] 1386 1387By default, \`make install' will install all the files in 1388\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1389an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1390for instance \`--prefix=\$HOME'. 1391 1392For better control, use the options below. 1393 1394Fine tuning of the installation directories: 1395 --bindir=DIR user executables [EPREFIX/bin] 1396 --sbindir=DIR system admin executables [EPREFIX/sbin] 1397 --libexecdir=DIR program executables [EPREFIX/libexec] 1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1401 --libdir=DIR object code libraries [EPREFIX/lib] 1402 --includedir=DIR C header files [PREFIX/include] 1403 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1406 --infodir=DIR info documentation [DATAROOTDIR/info] 1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1408 --mandir=DIR man documentation [DATAROOTDIR/man] 1409 --docdir=DIR documentation root 1410 [DATAROOTDIR/doc/xf86-input-mouse] 1411 --htmldir=DIR html documentation [DOCDIR] 1412 --dvidir=DIR dvi documentation [DOCDIR] 1413 --pdfdir=DIR pdf documentation [DOCDIR] 1414 --psdir=DIR ps documentation [DOCDIR] 1415_ACEOF 1416 1417 cat <<\_ACEOF 1418 1419Program names: 1420 --program-prefix=PREFIX prepend PREFIX to installed program names 1421 --program-suffix=SUFFIX append SUFFIX to installed program names 1422 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1423 1424System types: 1425 --build=BUILD configure for building on BUILD [guessed] 1426 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1427_ACEOF 1428fi 1429 1430if test -n "$ac_init_help"; then 1431 case $ac_init_help in 1432 short | recursive ) echo "Configuration of xf86-input-mouse 1.9.3:";; 1433 esac 1434 cat <<\_ACEOF 1435 1436Optional Features: 1437 --disable-option-checking ignore unrecognized --enable/--with options 1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1440 --enable-dependency-tracking 1441 do not reject slow dependency extractors 1442 --disable-dependency-tracking 1443 speeds up one-time build 1444 --enable-silent-rules less verbose build output (undo: "make V=1") 1445 --disable-silent-rules verbose build output (undo: "make V=0") 1446 --enable-static[=PKGS] build static libraries [default=no] 1447 --enable-shared[=PKGS] build shared libraries [default=yes] 1448 --enable-fast-install[=PKGS] 1449 optimize for fast installation [default=yes] 1450 --disable-libtool-lock avoid locking (might break parallel builds) 1451 --disable-selective-werror 1452 Turn off selective compiler errors. (default: 1453 enabled) 1454 --enable-strict-compilation 1455 Enable all warnings from compiler and make them 1456 errors (default: disabled) 1457 1458Optional Packages: 1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1461 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1462 both] 1463 --with-aix-soname=aix|svr4|both 1464 shared library versioning (aka "SONAME") variant to 1465 provide on AIX, [default=aix]. 1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1467 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1468 compiler's sysroot if not specified). 1469 --with-lint Use a lint-style source code checker (default: 1470 disabled) 1471 --with-xorg-module-dir=DIR 1472 Default xorg module directory 1473 [[default=$libdir/xorg/modules]] 1474 1475 1476Some influential environment variables: 1477 CC C compiler command 1478 CFLAGS C compiler flags 1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1480 nonstandard directory <lib dir> 1481 LIBS libraries to pass to the linker, e.g. -l<library> 1482 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1483 you have headers in a nonstandard directory <include dir> 1484 CPP C preprocessor 1485 LT_SYS_LIBRARY_PATH 1486 User-defined run-time library search path. 1487 PKG_CONFIG path to pkg-config utility 1488 PKG_CONFIG_PATH 1489 directories to add to pkg-config's search path 1490 PKG_CONFIG_LIBDIR 1491 path overriding pkg-config's built-in search path 1492 LINT Path to a lint-style command 1493 LINT_FLAGS Flags for the lint-style command 1494 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1495 XORG_LIBS linker flags for XORG, overriding pkg-config 1496 1497Use these variables to override the choices made by `configure' or to help 1498it to find libraries and programs with nonstandard names/locations. 1499 1500Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1501_ACEOF 1502ac_status=$? 1503fi 1504 1505if test "$ac_init_help" = "recursive"; then 1506 # If there are subdirs, report their specific --help. 1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1508 test -d "$ac_dir" || 1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1510 continue 1511 ac_builddir=. 1512 1513case "$ac_dir" in 1514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1515*) 1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1517 # A ".." for each directory in $ac_dir_suffix. 1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1519 case $ac_top_builddir_sub in 1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1522 esac ;; 1523esac 1524ac_abs_top_builddir=$ac_pwd 1525ac_abs_builddir=$ac_pwd$ac_dir_suffix 1526# for backward compatibility: 1527ac_top_builddir=$ac_top_build_prefix 1528 1529case $srcdir in 1530 .) # We are building in place. 1531 ac_srcdir=. 1532 ac_top_srcdir=$ac_top_builddir_sub 1533 ac_abs_top_srcdir=$ac_pwd ;; 1534 [\\/]* | ?:[\\/]* ) # Absolute name. 1535 ac_srcdir=$srcdir$ac_dir_suffix; 1536 ac_top_srcdir=$srcdir 1537 ac_abs_top_srcdir=$srcdir ;; 1538 *) # Relative name. 1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1540 ac_top_srcdir=$ac_top_build_prefix$srcdir 1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1542esac 1543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1544 1545 cd "$ac_dir" || { ac_status=$?; continue; } 1546 # Check for guested configure. 1547 if test -f "$ac_srcdir/configure.gnu"; then 1548 echo && 1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1550 elif test -f "$ac_srcdir/configure"; then 1551 echo && 1552 $SHELL "$ac_srcdir/configure" --help=recursive 1553 else 1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1555 fi || ac_status=$? 1556 cd "$ac_pwd" || { ac_status=$?; break; } 1557 done 1558fi 1559 1560test -n "$ac_init_help" && exit $ac_status 1561if $ac_init_version; then 1562 cat <<\_ACEOF 1563xf86-input-mouse configure 1.9.3 1564generated by GNU Autoconf 2.69 1565 1566Copyright (C) 2012 Free Software Foundation, Inc. 1567This configure script is free software; the Free Software Foundation 1568gives unlimited permission to copy, distribute and modify it. 1569_ACEOF 1570 exit 1571fi 1572 1573## ------------------------ ## 1574## Autoconf initialization. ## 1575## ------------------------ ## 1576 1577# ac_fn_c_try_compile LINENO 1578# -------------------------- 1579# Try to compile conftest.$ac_ext, and return whether this succeeded. 1580ac_fn_c_try_compile () 1581{ 1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1583 rm -f conftest.$ac_objext 1584 if { { ac_try="$ac_compile" 1585case "(($ac_try" in 1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1587 *) ac_try_echo=$ac_try;; 1588esac 1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1590$as_echo "$ac_try_echo"; } >&5 1591 (eval "$ac_compile") 2>conftest.err 1592 ac_status=$? 1593 if test -s conftest.err; then 1594 grep -v '^ *+' conftest.err >conftest.er1 1595 cat conftest.er1 >&5 1596 mv -f conftest.er1 conftest.err 1597 fi 1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1599 test $ac_status = 0; } && { 1600 test -z "$ac_c_werror_flag" || 1601 test ! -s conftest.err 1602 } && test -s conftest.$ac_objext; then : 1603 ac_retval=0 1604else 1605 $as_echo "$as_me: failed program was:" >&5 1606sed 's/^/| /' conftest.$ac_ext >&5 1607 1608 ac_retval=1 1609fi 1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1611 as_fn_set_status $ac_retval 1612 1613} # ac_fn_c_try_compile 1614 1615# ac_fn_c_try_cpp LINENO 1616# ---------------------- 1617# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1618ac_fn_c_try_cpp () 1619{ 1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1621 if { { ac_try="$ac_cpp conftest.$ac_ext" 1622case "(($ac_try" in 1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1624 *) ac_try_echo=$ac_try;; 1625esac 1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1627$as_echo "$ac_try_echo"; } >&5 1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1629 ac_status=$? 1630 if test -s conftest.err; then 1631 grep -v '^ *+' conftest.err >conftest.er1 1632 cat conftest.er1 >&5 1633 mv -f conftest.er1 conftest.err 1634 fi 1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1636 test $ac_status = 0; } > conftest.i && { 1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1638 test ! -s conftest.err 1639 }; then : 1640 ac_retval=0 1641else 1642 $as_echo "$as_me: failed program was:" >&5 1643sed 's/^/| /' conftest.$ac_ext >&5 1644 1645 ac_retval=1 1646fi 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 as_fn_set_status $ac_retval 1649 1650} # ac_fn_c_try_cpp 1651 1652# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1653# ------------------------------------------------------- 1654# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1655# the include files in INCLUDES and setting the cache variable VAR 1656# accordingly. 1657ac_fn_c_check_header_mongrel () 1658{ 1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1660 if eval \${$3+:} false; then : 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1662$as_echo_n "checking for $2... " >&6; } 1663if eval \${$3+:} false; then : 1664 $as_echo_n "(cached) " >&6 1665fi 1666eval ac_res=\$$3 1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1668$as_echo "$ac_res" >&6; } 1669else 1670 # Is the header compilable? 1671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1672$as_echo_n "checking $2 usability... " >&6; } 1673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1674/* end confdefs.h. */ 1675$4 1676#include <$2> 1677_ACEOF 1678if ac_fn_c_try_compile "$LINENO"; then : 1679 ac_header_compiler=yes 1680else 1681 ac_header_compiler=no 1682fi 1683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1685$as_echo "$ac_header_compiler" >&6; } 1686 1687# Is the header present? 1688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1689$as_echo_n "checking $2 presence... " >&6; } 1690cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1691/* end confdefs.h. */ 1692#include <$2> 1693_ACEOF 1694if ac_fn_c_try_cpp "$LINENO"; then : 1695 ac_header_preproc=yes 1696else 1697 ac_header_preproc=no 1698fi 1699rm -f conftest.err conftest.i conftest.$ac_ext 1700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1701$as_echo "$ac_header_preproc" >&6; } 1702 1703# So? What about this header? 1704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1705 yes:no: ) 1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1707$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1709$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1710 ;; 1711 no:yes:* ) 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1713$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1715$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1717$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1719$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1721$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1722( $as_echo "## ---------------------------------------------------------------------- ## 1723## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1724## ---------------------------------------------------------------------- ##" 1725 ) | sed "s/^/$as_me: WARNING: /" >&2 1726 ;; 1727esac 1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1729$as_echo_n "checking for $2... " >&6; } 1730if eval \${$3+:} false; then : 1731 $as_echo_n "(cached) " >&6 1732else 1733 eval "$3=\$ac_header_compiler" 1734fi 1735eval ac_res=\$$3 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1737$as_echo "$ac_res" >&6; } 1738fi 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1740 1741} # ac_fn_c_check_header_mongrel 1742 1743# ac_fn_c_try_run LINENO 1744# ---------------------- 1745# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1746# that executables *can* be run. 1747ac_fn_c_try_run () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 if { { ac_try="$ac_link" 1751case "(($ac_try" in 1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1753 *) ac_try_echo=$ac_try;; 1754esac 1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1756$as_echo "$ac_try_echo"; } >&5 1757 (eval "$ac_link") 2>&5 1758 ac_status=$? 1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1761 { { case "(($ac_try" in 1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1763 *) ac_try_echo=$ac_try;; 1764esac 1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1766$as_echo "$ac_try_echo"; } >&5 1767 (eval "$ac_try") 2>&5 1768 ac_status=$? 1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1770 test $ac_status = 0; }; }; then : 1771 ac_retval=0 1772else 1773 $as_echo "$as_me: program exited with status $ac_status" >&5 1774 $as_echo "$as_me: failed program was:" >&5 1775sed 's/^/| /' conftest.$ac_ext >&5 1776 1777 ac_retval=$ac_status 1778fi 1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1781 as_fn_set_status $ac_retval 1782 1783} # ac_fn_c_try_run 1784 1785# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1786# ------------------------------------------------------- 1787# Tests whether HEADER exists and can be compiled using the include files in 1788# INCLUDES, setting the cache variable VAR accordingly. 1789ac_fn_c_check_header_compile () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1793$as_echo_n "checking for $2... " >&6; } 1794if eval \${$3+:} false; then : 1795 $as_echo_n "(cached) " >&6 1796else 1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1798/* end confdefs.h. */ 1799$4 1800#include <$2> 1801_ACEOF 1802if ac_fn_c_try_compile "$LINENO"; then : 1803 eval "$3=yes" 1804else 1805 eval "$3=no" 1806fi 1807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1808fi 1809eval ac_res=\$$3 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1811$as_echo "$ac_res" >&6; } 1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1813 1814} # ac_fn_c_check_header_compile 1815 1816# ac_fn_c_try_link LINENO 1817# ----------------------- 1818# Try to link conftest.$ac_ext, and return whether this succeeded. 1819ac_fn_c_try_link () 1820{ 1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1822 rm -f conftest.$ac_objext conftest$ac_exeext 1823 if { { ac_try="$ac_link" 1824case "(($ac_try" in 1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1826 *) ac_try_echo=$ac_try;; 1827esac 1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1829$as_echo "$ac_try_echo"; } >&5 1830 (eval "$ac_link") 2>conftest.err 1831 ac_status=$? 1832 if test -s conftest.err; then 1833 grep -v '^ *+' conftest.err >conftest.er1 1834 cat conftest.er1 >&5 1835 mv -f conftest.er1 conftest.err 1836 fi 1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1838 test $ac_status = 0; } && { 1839 test -z "$ac_c_werror_flag" || 1840 test ! -s conftest.err 1841 } && test -s conftest$ac_exeext && { 1842 test "$cross_compiling" = yes || 1843 test -x conftest$ac_exeext 1844 }; then : 1845 ac_retval=0 1846else 1847 $as_echo "$as_me: failed program was:" >&5 1848sed 's/^/| /' conftest.$ac_ext >&5 1849 1850 ac_retval=1 1851fi 1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1854 # interfere with the next link command; also delete a directory that is 1855 # left behind by Apple's compiler. We do this before executing the actions. 1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1858 as_fn_set_status $ac_retval 1859 1860} # ac_fn_c_try_link 1861 1862# ac_fn_c_check_func LINENO FUNC VAR 1863# ---------------------------------- 1864# Tests whether FUNC exists, setting the cache variable VAR accordingly 1865ac_fn_c_check_func () 1866{ 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1869$as_echo_n "checking for $2... " >&6; } 1870if eval \${$3+:} false; then : 1871 $as_echo_n "(cached) " >&6 1872else 1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1874/* end confdefs.h. */ 1875/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1877#define $2 innocuous_$2 1878 1879/* System header to define __stub macros and hopefully few prototypes, 1880 which can conflict with char $2 (); below. 1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1882 <limits.h> exists even on freestanding compilers. */ 1883 1884#ifdef __STDC__ 1885# include <limits.h> 1886#else 1887# include <assert.h> 1888#endif 1889 1890#undef $2 1891 1892/* Override any GCC internal prototype to avoid an error. 1893 Use char because int might match the return type of a GCC 1894 builtin and then its argument prototype would still apply. */ 1895#ifdef __cplusplus 1896extern "C" 1897#endif 1898char $2 (); 1899/* The GNU C library defines this for functions which it implements 1900 to always fail with ENOSYS. Some functions are actually named 1901 something starting with __ and the normal name is an alias. */ 1902#if defined __stub_$2 || defined __stub___$2 1903choke me 1904#endif 1905 1906int 1907main () 1908{ 1909return $2 (); 1910 ; 1911 return 0; 1912} 1913_ACEOF 1914if ac_fn_c_try_link "$LINENO"; then : 1915 eval "$3=yes" 1916else 1917 eval "$3=no" 1918fi 1919rm -f core conftest.err conftest.$ac_objext \ 1920 conftest$ac_exeext conftest.$ac_ext 1921fi 1922eval ac_res=\$$3 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1924$as_echo "$ac_res" >&6; } 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1926 1927} # ac_fn_c_check_func 1928 1929# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1930# --------------------------------------------- 1931# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1932# accordingly. 1933ac_fn_c_check_decl () 1934{ 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1936 as_decl_name=`echo $2|sed 's/ *(.*//'` 1937 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1939$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1940if eval \${$3+:} false; then : 1941 $as_echo_n "(cached) " >&6 1942else 1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1944/* end confdefs.h. */ 1945$4 1946int 1947main () 1948{ 1949#ifndef $as_decl_name 1950#ifdef __cplusplus 1951 (void) $as_decl_use; 1952#else 1953 (void) $as_decl_name; 1954#endif 1955#endif 1956 1957 ; 1958 return 0; 1959} 1960_ACEOF 1961if ac_fn_c_try_compile "$LINENO"; then : 1962 eval "$3=yes" 1963else 1964 eval "$3=no" 1965fi 1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1967fi 1968eval ac_res=\$$3 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1970$as_echo "$ac_res" >&6; } 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1972 1973} # ac_fn_c_check_decl 1974cat >config.log <<_ACEOF 1975This file contains any messages produced by compilers while 1976running configure, to aid debugging if configure makes a mistake. 1977 1978It was created by xf86-input-mouse $as_me 1.9.3, which was 1979generated by GNU Autoconf 2.69. Invocation command line was 1980 1981 $ $0 $@ 1982 1983_ACEOF 1984exec 5>>config.log 1985{ 1986cat <<_ASUNAME 1987## --------- ## 1988## Platform. ## 1989## --------- ## 1990 1991hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1992uname -m = `(uname -m) 2>/dev/null || echo unknown` 1993uname -r = `(uname -r) 2>/dev/null || echo unknown` 1994uname -s = `(uname -s) 2>/dev/null || echo unknown` 1995uname -v = `(uname -v) 2>/dev/null || echo unknown` 1996 1997/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1998/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1999 2000/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2001/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2002/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2003/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2004/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2005/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2006/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2007 2008_ASUNAME 2009 2010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2011for as_dir in $PATH 2012do 2013 IFS=$as_save_IFS 2014 test -z "$as_dir" && as_dir=. 2015 $as_echo "PATH: $as_dir" 2016 done 2017IFS=$as_save_IFS 2018 2019} >&5 2020 2021cat >&5 <<_ACEOF 2022 2023 2024## ----------- ## 2025## Core tests. ## 2026## ----------- ## 2027 2028_ACEOF 2029 2030 2031# Keep a trace of the command line. 2032# Strip out --no-create and --no-recursion so they do not pile up. 2033# Strip out --silent because we don't want to record it for future runs. 2034# Also quote any args containing shell meta-characters. 2035# Make two passes to allow for proper duplicate-argument suppression. 2036ac_configure_args= 2037ac_configure_args0= 2038ac_configure_args1= 2039ac_must_keep_next=false 2040for ac_pass in 1 2 2041do 2042 for ac_arg 2043 do 2044 case $ac_arg in 2045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2047 | -silent | --silent | --silen | --sile | --sil) 2048 continue ;; 2049 *\'*) 2050 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2051 esac 2052 case $ac_pass in 2053 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2054 2) 2055 as_fn_append ac_configure_args1 " '$ac_arg'" 2056 if test $ac_must_keep_next = true; then 2057 ac_must_keep_next=false # Got value, back to normal. 2058 else 2059 case $ac_arg in 2060 *=* | --config-cache | -C | -disable-* | --disable-* \ 2061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2063 | -with-* | --with-* | -without-* | --without-* | --x) 2064 case "$ac_configure_args0 " in 2065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2066 esac 2067 ;; 2068 -* ) ac_must_keep_next=true ;; 2069 esac 2070 fi 2071 as_fn_append ac_configure_args " '$ac_arg'" 2072 ;; 2073 esac 2074 done 2075done 2076{ ac_configure_args0=; unset ac_configure_args0;} 2077{ ac_configure_args1=; unset ac_configure_args1;} 2078 2079# When interrupted or exit'd, cleanup temporary files, and complete 2080# config.log. We remove comments because anyway the quotes in there 2081# would cause problems or look ugly. 2082# WARNING: Use '\'' to represent an apostrophe within the trap. 2083# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2084trap 'exit_status=$? 2085 # Save into config.log some information that might help in debugging. 2086 { 2087 echo 2088 2089 $as_echo "## ---------------- ## 2090## Cache variables. ## 2091## ---------------- ##" 2092 echo 2093 # The following way of writing the cache mishandles newlines in values, 2094( 2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2096 eval ac_val=\$$ac_var 2097 case $ac_val in #( 2098 *${as_nl}*) 2099 case $ac_var in #( 2100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2101$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2102 esac 2103 case $ac_var in #( 2104 _ | IFS | as_nl) ;; #( 2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2106 *) { eval $ac_var=; unset $ac_var;} ;; 2107 esac ;; 2108 esac 2109 done 2110 (set) 2>&1 | 2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2112 *${as_nl}ac_space=\ *) 2113 sed -n \ 2114 "s/'\''/'\''\\\\'\'''\''/g; 2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2116 ;; #( 2117 *) 2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2119 ;; 2120 esac | 2121 sort 2122) 2123 echo 2124 2125 $as_echo "## ----------------- ## 2126## Output variables. ## 2127## ----------------- ##" 2128 echo 2129 for ac_var in $ac_subst_vars 2130 do 2131 eval ac_val=\$$ac_var 2132 case $ac_val in 2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2134 esac 2135 $as_echo "$ac_var='\''$ac_val'\''" 2136 done | sort 2137 echo 2138 2139 if test -n "$ac_subst_files"; then 2140 $as_echo "## ------------------- ## 2141## File substitutions. ## 2142## ------------------- ##" 2143 echo 2144 for ac_var in $ac_subst_files 2145 do 2146 eval ac_val=\$$ac_var 2147 case $ac_val in 2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2149 esac 2150 $as_echo "$ac_var='\''$ac_val'\''" 2151 done | sort 2152 echo 2153 fi 2154 2155 if test -s confdefs.h; then 2156 $as_echo "## ----------- ## 2157## confdefs.h. ## 2158## ----------- ##" 2159 echo 2160 cat confdefs.h 2161 echo 2162 fi 2163 test "$ac_signal" != 0 && 2164 $as_echo "$as_me: caught signal $ac_signal" 2165 $as_echo "$as_me: exit $exit_status" 2166 } >&5 2167 rm -f core *.core core.conftest.* && 2168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2169 exit $exit_status 2170' 0 2171for ac_signal in 1 2 13 15; do 2172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2173done 2174ac_signal=0 2175 2176# confdefs.h avoids OS command line length limits that DEFS can exceed. 2177rm -f -r conftest* confdefs.h 2178 2179$as_echo "/* confdefs.h */" > confdefs.h 2180 2181# Predefined preprocessor variables. 2182 2183cat >>confdefs.h <<_ACEOF 2184#define PACKAGE_NAME "$PACKAGE_NAME" 2185_ACEOF 2186 2187cat >>confdefs.h <<_ACEOF 2188#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2189_ACEOF 2190 2191cat >>confdefs.h <<_ACEOF 2192#define PACKAGE_VERSION "$PACKAGE_VERSION" 2193_ACEOF 2194 2195cat >>confdefs.h <<_ACEOF 2196#define PACKAGE_STRING "$PACKAGE_STRING" 2197_ACEOF 2198 2199cat >>confdefs.h <<_ACEOF 2200#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2201_ACEOF 2202 2203cat >>confdefs.h <<_ACEOF 2204#define PACKAGE_URL "$PACKAGE_URL" 2205_ACEOF 2206 2207 2208# Let the site file select an alternate cache file if it wants to. 2209# Prefer an explicitly selected file to automatically selected ones. 2210ac_site_file1=NONE 2211ac_site_file2=NONE 2212if test -n "$CONFIG_SITE"; then 2213 # We do not want a PATH search for config.site. 2214 case $CONFIG_SITE in #(( 2215 -*) ac_site_file1=./$CONFIG_SITE;; 2216 */*) ac_site_file1=$CONFIG_SITE;; 2217 *) ac_site_file1=./$CONFIG_SITE;; 2218 esac 2219elif test "x$prefix" != xNONE; then 2220 ac_site_file1=$prefix/share/config.site 2221 ac_site_file2=$prefix/etc/config.site 2222else 2223 ac_site_file1=$ac_default_prefix/share/config.site 2224 ac_site_file2=$ac_default_prefix/etc/config.site 2225fi 2226for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2227do 2228 test "x$ac_site_file" = xNONE && continue 2229 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2231$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2232 sed 's/^/| /' "$ac_site_file" >&5 2233 . "$ac_site_file" \ 2234 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2236as_fn_error $? "failed to load site script $ac_site_file 2237See \`config.log' for more details" "$LINENO" 5; } 2238 fi 2239done 2240 2241if test -r "$cache_file"; then 2242 # Some versions of bash will fail to source /dev/null (special files 2243 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2244 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2246$as_echo "$as_me: loading cache $cache_file" >&6;} 2247 case $cache_file in 2248 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2249 *) . "./$cache_file";; 2250 esac 2251 fi 2252else 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2254$as_echo "$as_me: creating cache $cache_file" >&6;} 2255 >$cache_file 2256fi 2257 2258# Check that the precious variables saved in the cache have kept the same 2259# value. 2260ac_cache_corrupted=false 2261for ac_var in $ac_precious_vars; do 2262 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2263 eval ac_new_set=\$ac_env_${ac_var}_set 2264 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2265 eval ac_new_val=\$ac_env_${ac_var}_value 2266 case $ac_old_set,$ac_new_set in 2267 set,) 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2269$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2270 ac_cache_corrupted=: ;; 2271 ,set) 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2273$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2274 ac_cache_corrupted=: ;; 2275 ,);; 2276 *) 2277 if test "x$ac_old_val" != "x$ac_new_val"; then 2278 # differences in whitespace do not lead to failure. 2279 ac_old_val_w=`echo x $ac_old_val` 2280 ac_new_val_w=`echo x $ac_new_val` 2281 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2283$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2284 ac_cache_corrupted=: 2285 else 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2287$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2288 eval $ac_var=\$ac_old_val 2289 fi 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2291$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2293$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2294 fi;; 2295 esac 2296 # Pass precious variables to config.status. 2297 if test "$ac_new_set" = set; then 2298 case $ac_new_val in 2299 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2300 *) ac_arg=$ac_var=$ac_new_val ;; 2301 esac 2302 case " $ac_configure_args " in 2303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2304 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2305 esac 2306 fi 2307done 2308if $ac_cache_corrupted; then 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2312$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2313 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2314fi 2315## -------------------- ## 2316## Main body of script. ## 2317## -------------------- ## 2318 2319ac_ext=c 2320ac_cpp='$CPP $CPPFLAGS' 2321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2323ac_compiler_gnu=$ac_cv_c_compiler_gnu 2324 2325 2326 2327ac_config_headers="$ac_config_headers config.h" 2328 2329ac_aux_dir= 2330for ac_dir in . "$srcdir"/.; do 2331 if test -f "$ac_dir/install-sh"; then 2332 ac_aux_dir=$ac_dir 2333 ac_install_sh="$ac_aux_dir/install-sh -c" 2334 break 2335 elif test -f "$ac_dir/install.sh"; then 2336 ac_aux_dir=$ac_dir 2337 ac_install_sh="$ac_aux_dir/install.sh -c" 2338 break 2339 elif test -f "$ac_dir/shtool"; then 2340 ac_aux_dir=$ac_dir 2341 ac_install_sh="$ac_aux_dir/shtool install -c" 2342 break 2343 fi 2344done 2345if test -z "$ac_aux_dir"; then 2346 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2347fi 2348 2349# These three variables are undocumented and unsupported, 2350# and are intended to be withdrawn in a future Autoconf release. 2351# They can cause serious problems if a builder's source tree is in a directory 2352# whose full name contains unusual characters. 2353ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2354ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2355ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2356 2357 2358# Expand $ac_aux_dir to an absolute path. 2359am_aux_dir=`cd "$ac_aux_dir" && pwd` 2360 2361ac_ext=c 2362ac_cpp='$CPP $CPPFLAGS' 2363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2365ac_compiler_gnu=$ac_cv_c_compiler_gnu 2366if test -n "$ac_tool_prefix"; then 2367 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2368set dummy ${ac_tool_prefix}gcc; ac_word=$2 2369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2370$as_echo_n "checking for $ac_word... " >&6; } 2371if ${ac_cv_prog_CC+:} false; then : 2372 $as_echo_n "(cached) " >&6 2373else 2374 if test -n "$CC"; then 2375 ac_cv_prog_CC="$CC" # Let the user override the test. 2376else 2377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2378for as_dir in $PATH 2379do 2380 IFS=$as_save_IFS 2381 test -z "$as_dir" && as_dir=. 2382 for ac_exec_ext in '' $ac_executable_extensions; do 2383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2384 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2386 break 2 2387 fi 2388done 2389 done 2390IFS=$as_save_IFS 2391 2392fi 2393fi 2394CC=$ac_cv_prog_CC 2395if test -n "$CC"; then 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2397$as_echo "$CC" >&6; } 2398else 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2400$as_echo "no" >&6; } 2401fi 2402 2403 2404fi 2405if test -z "$ac_cv_prog_CC"; then 2406 ac_ct_CC=$CC 2407 # Extract the first word of "gcc", so it can be a program name with args. 2408set dummy gcc; ac_word=$2 2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2410$as_echo_n "checking for $ac_word... " >&6; } 2411if ${ac_cv_prog_ac_ct_CC+:} false; then : 2412 $as_echo_n "(cached) " >&6 2413else 2414 if test -n "$ac_ct_CC"; then 2415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2416else 2417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2418for as_dir in $PATH 2419do 2420 IFS=$as_save_IFS 2421 test -z "$as_dir" && as_dir=. 2422 for ac_exec_ext in '' $ac_executable_extensions; do 2423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2424 ac_cv_prog_ac_ct_CC="gcc" 2425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2426 break 2 2427 fi 2428done 2429 done 2430IFS=$as_save_IFS 2431 2432fi 2433fi 2434ac_ct_CC=$ac_cv_prog_ac_ct_CC 2435if test -n "$ac_ct_CC"; then 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2437$as_echo "$ac_ct_CC" >&6; } 2438else 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2440$as_echo "no" >&6; } 2441fi 2442 2443 if test "x$ac_ct_CC" = x; then 2444 CC="" 2445 else 2446 case $cross_compiling:$ac_tool_warned in 2447yes:) 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2450ac_tool_warned=yes ;; 2451esac 2452 CC=$ac_ct_CC 2453 fi 2454else 2455 CC="$ac_cv_prog_CC" 2456fi 2457 2458if test -z "$CC"; then 2459 if test -n "$ac_tool_prefix"; then 2460 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2461set dummy ${ac_tool_prefix}cc; ac_word=$2 2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2463$as_echo_n "checking for $ac_word... " >&6; } 2464if ${ac_cv_prog_CC+:} false; then : 2465 $as_echo_n "(cached) " >&6 2466else 2467 if test -n "$CC"; then 2468 ac_cv_prog_CC="$CC" # Let the user override the test. 2469else 2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2471for as_dir in $PATH 2472do 2473 IFS=$as_save_IFS 2474 test -z "$as_dir" && as_dir=. 2475 for ac_exec_ext in '' $ac_executable_extensions; do 2476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2477 ac_cv_prog_CC="${ac_tool_prefix}cc" 2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2479 break 2 2480 fi 2481done 2482 done 2483IFS=$as_save_IFS 2484 2485fi 2486fi 2487CC=$ac_cv_prog_CC 2488if test -n "$CC"; then 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2490$as_echo "$CC" >&6; } 2491else 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2493$as_echo "no" >&6; } 2494fi 2495 2496 2497 fi 2498fi 2499if test -z "$CC"; then 2500 # Extract the first word of "cc", so it can be a program name with args. 2501set dummy cc; ac_word=$2 2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2503$as_echo_n "checking for $ac_word... " >&6; } 2504if ${ac_cv_prog_CC+:} false; then : 2505 $as_echo_n "(cached) " >&6 2506else 2507 if test -n "$CC"; then 2508 ac_cv_prog_CC="$CC" # Let the user override the test. 2509else 2510 ac_prog_rejected=no 2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2512for as_dir in $PATH 2513do 2514 IFS=$as_save_IFS 2515 test -z "$as_dir" && as_dir=. 2516 for ac_exec_ext in '' $ac_executable_extensions; do 2517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2518 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2519 ac_prog_rejected=yes 2520 continue 2521 fi 2522 ac_cv_prog_CC="cc" 2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2524 break 2 2525 fi 2526done 2527 done 2528IFS=$as_save_IFS 2529 2530if test $ac_prog_rejected = yes; then 2531 # We found a bogon in the path, so make sure we never use it. 2532 set dummy $ac_cv_prog_CC 2533 shift 2534 if test $# != 0; then 2535 # We chose a different compiler from the bogus one. 2536 # However, it has the same basename, so the bogon will be chosen 2537 # first if we set CC to just the basename; use the full file name. 2538 shift 2539 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2540 fi 2541fi 2542fi 2543fi 2544CC=$ac_cv_prog_CC 2545if test -n "$CC"; then 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2547$as_echo "$CC" >&6; } 2548else 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2550$as_echo "no" >&6; } 2551fi 2552 2553 2554fi 2555if test -z "$CC"; then 2556 if test -n "$ac_tool_prefix"; then 2557 for ac_prog in cl.exe 2558 do 2559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2560set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2562$as_echo_n "checking for $ac_word... " >&6; } 2563if ${ac_cv_prog_CC+:} false; then : 2564 $as_echo_n "(cached) " >&6 2565else 2566 if test -n "$CC"; then 2567 ac_cv_prog_CC="$CC" # Let the user override the test. 2568else 2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2570for as_dir in $PATH 2571do 2572 IFS=$as_save_IFS 2573 test -z "$as_dir" && as_dir=. 2574 for ac_exec_ext in '' $ac_executable_extensions; do 2575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2576 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2578 break 2 2579 fi 2580done 2581 done 2582IFS=$as_save_IFS 2583 2584fi 2585fi 2586CC=$ac_cv_prog_CC 2587if test -n "$CC"; then 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2589$as_echo "$CC" >&6; } 2590else 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2592$as_echo "no" >&6; } 2593fi 2594 2595 2596 test -n "$CC" && break 2597 done 2598fi 2599if test -z "$CC"; then 2600 ac_ct_CC=$CC 2601 for ac_prog in cl.exe 2602do 2603 # Extract the first word of "$ac_prog", so it can be a program name with args. 2604set dummy $ac_prog; ac_word=$2 2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2606$as_echo_n "checking for $ac_word... " >&6; } 2607if ${ac_cv_prog_ac_ct_CC+:} false; then : 2608 $as_echo_n "(cached) " >&6 2609else 2610 if test -n "$ac_ct_CC"; then 2611 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2612else 2613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2614for as_dir in $PATH 2615do 2616 IFS=$as_save_IFS 2617 test -z "$as_dir" && as_dir=. 2618 for ac_exec_ext in '' $ac_executable_extensions; do 2619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2620 ac_cv_prog_ac_ct_CC="$ac_prog" 2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2622 break 2 2623 fi 2624done 2625 done 2626IFS=$as_save_IFS 2627 2628fi 2629fi 2630ac_ct_CC=$ac_cv_prog_ac_ct_CC 2631if test -n "$ac_ct_CC"; then 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2633$as_echo "$ac_ct_CC" >&6; } 2634else 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2636$as_echo "no" >&6; } 2637fi 2638 2639 2640 test -n "$ac_ct_CC" && break 2641done 2642 2643 if test "x$ac_ct_CC" = x; then 2644 CC="" 2645 else 2646 case $cross_compiling:$ac_tool_warned in 2647yes:) 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2650ac_tool_warned=yes ;; 2651esac 2652 CC=$ac_ct_CC 2653 fi 2654fi 2655 2656fi 2657 2658 2659test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2661as_fn_error $? "no acceptable C compiler found in \$PATH 2662See \`config.log' for more details" "$LINENO" 5; } 2663 2664# Provide some information about the compiler. 2665$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2666set X $ac_compile 2667ac_compiler=$2 2668for ac_option in --version -v -V -qversion; do 2669 { { ac_try="$ac_compiler $ac_option >&5" 2670case "(($ac_try" in 2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2672 *) ac_try_echo=$ac_try;; 2673esac 2674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2675$as_echo "$ac_try_echo"; } >&5 2676 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2677 ac_status=$? 2678 if test -s conftest.err; then 2679 sed '10a\ 2680... rest of stderr output deleted ... 2681 10q' conftest.err >conftest.er1 2682 cat conftest.er1 >&5 2683 fi 2684 rm -f conftest.er1 conftest.err 2685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2686 test $ac_status = 0; } 2687done 2688 2689cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2690/* end confdefs.h. */ 2691 2692int 2693main () 2694{ 2695 2696 ; 2697 return 0; 2698} 2699_ACEOF 2700ac_clean_files_save=$ac_clean_files 2701ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2702# Try to create an executable without -o first, disregard a.out. 2703# It will help us diagnose broken compilers, and finding out an intuition 2704# of exeext. 2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2706$as_echo_n "checking whether the C compiler works... " >&6; } 2707ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2708 2709# The possible output files: 2710ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2711 2712ac_rmfiles= 2713for ac_file in $ac_files 2714do 2715 case $ac_file in 2716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2717 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2718 esac 2719done 2720rm -f $ac_rmfiles 2721 2722if { { ac_try="$ac_link_default" 2723case "(($ac_try" in 2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2725 *) ac_try_echo=$ac_try;; 2726esac 2727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2728$as_echo "$ac_try_echo"; } >&5 2729 (eval "$ac_link_default") 2>&5 2730 ac_status=$? 2731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2732 test $ac_status = 0; }; then : 2733 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2734# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2735# in a Makefile. We should not override ac_cv_exeext if it was cached, 2736# so that the user can short-circuit this test for compilers unknown to 2737# Autoconf. 2738for ac_file in $ac_files '' 2739do 2740 test -f "$ac_file" || continue 2741 case $ac_file in 2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2743 ;; 2744 [ab].out ) 2745 # We found the default executable, but exeext='' is most 2746 # certainly right. 2747 break;; 2748 *.* ) 2749 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2750 then :; else 2751 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2752 fi 2753 # We set ac_cv_exeext here because the later test for it is not 2754 # safe: cross compilers may not add the suffix if given an `-o' 2755 # argument, so we may need to know it at that point already. 2756 # Even if this section looks crufty: it has the advantage of 2757 # actually working. 2758 break;; 2759 * ) 2760 break;; 2761 esac 2762done 2763test "$ac_cv_exeext" = no && ac_cv_exeext= 2764 2765else 2766 ac_file='' 2767fi 2768if test -z "$ac_file"; then : 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2770$as_echo "no" >&6; } 2771$as_echo "$as_me: failed program was:" >&5 2772sed 's/^/| /' conftest.$ac_ext >&5 2773 2774{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2776as_fn_error 77 "C compiler cannot create executables 2777See \`config.log' for more details" "$LINENO" 5; } 2778else 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2780$as_echo "yes" >&6; } 2781fi 2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2783$as_echo_n "checking for C compiler default output file name... " >&6; } 2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2785$as_echo "$ac_file" >&6; } 2786ac_exeext=$ac_cv_exeext 2787 2788rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2789ac_clean_files=$ac_clean_files_save 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2791$as_echo_n "checking for suffix of executables... " >&6; } 2792if { { ac_try="$ac_link" 2793case "(($ac_try" in 2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2795 *) ac_try_echo=$ac_try;; 2796esac 2797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2798$as_echo "$ac_try_echo"; } >&5 2799 (eval "$ac_link") 2>&5 2800 ac_status=$? 2801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2802 test $ac_status = 0; }; then : 2803 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2804# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2805# work properly (i.e., refer to `conftest.exe'), while it won't with 2806# `rm'. 2807for ac_file in conftest.exe conftest conftest.*; do 2808 test -f "$ac_file" || continue 2809 case $ac_file in 2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2811 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2812 break;; 2813 * ) break;; 2814 esac 2815done 2816else 2817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2819as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2820See \`config.log' for more details" "$LINENO" 5; } 2821fi 2822rm -f conftest conftest$ac_cv_exeext 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2824$as_echo "$ac_cv_exeext" >&6; } 2825 2826rm -f conftest.$ac_ext 2827EXEEXT=$ac_cv_exeext 2828ac_exeext=$EXEEXT 2829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2830/* end confdefs.h. */ 2831#include <stdio.h> 2832int 2833main () 2834{ 2835FILE *f = fopen ("conftest.out", "w"); 2836 return ferror (f) || fclose (f) != 0; 2837 2838 ; 2839 return 0; 2840} 2841_ACEOF 2842ac_clean_files="$ac_clean_files conftest.out" 2843# Check that the compiler produces executables we can run. If not, either 2844# the compiler is broken, or we cross compile. 2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2846$as_echo_n "checking whether we are cross compiling... " >&6; } 2847if test "$cross_compiling" != yes; then 2848 { { ac_try="$ac_link" 2849case "(($ac_try" in 2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2851 *) ac_try_echo=$ac_try;; 2852esac 2853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2854$as_echo "$ac_try_echo"; } >&5 2855 (eval "$ac_link") 2>&5 2856 ac_status=$? 2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2858 test $ac_status = 0; } 2859 if { ac_try='./conftest$ac_cv_exeext' 2860 { { case "(($ac_try" in 2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2862 *) ac_try_echo=$ac_try;; 2863esac 2864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2865$as_echo "$ac_try_echo"; } >&5 2866 (eval "$ac_try") 2>&5 2867 ac_status=$? 2868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2869 test $ac_status = 0; }; }; then 2870 cross_compiling=no 2871 else 2872 if test "$cross_compiling" = maybe; then 2873 cross_compiling=yes 2874 else 2875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2877as_fn_error $? "cannot run C compiled programs. 2878If you meant to cross compile, use \`--host'. 2879See \`config.log' for more details" "$LINENO" 5; } 2880 fi 2881 fi 2882fi 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2884$as_echo "$cross_compiling" >&6; } 2885 2886rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2887ac_clean_files=$ac_clean_files_save 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2889$as_echo_n "checking for suffix of object files... " >&6; } 2890if ${ac_cv_objext+:} false; then : 2891 $as_echo_n "(cached) " >&6 2892else 2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2894/* end confdefs.h. */ 2895 2896int 2897main () 2898{ 2899 2900 ; 2901 return 0; 2902} 2903_ACEOF 2904rm -f conftest.o conftest.obj 2905if { { ac_try="$ac_compile" 2906case "(($ac_try" in 2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2908 *) ac_try_echo=$ac_try;; 2909esac 2910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2911$as_echo "$ac_try_echo"; } >&5 2912 (eval "$ac_compile") 2>&5 2913 ac_status=$? 2914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2915 test $ac_status = 0; }; then : 2916 for ac_file in conftest.o conftest.obj conftest.*; do 2917 test -f "$ac_file" || continue; 2918 case $ac_file in 2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2921 break;; 2922 esac 2923done 2924else 2925 $as_echo "$as_me: failed program was:" >&5 2926sed 's/^/| /' conftest.$ac_ext >&5 2927 2928{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2930as_fn_error $? "cannot compute suffix of object files: cannot compile 2931See \`config.log' for more details" "$LINENO" 5; } 2932fi 2933rm -f conftest.$ac_cv_objext conftest.$ac_ext 2934fi 2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2936$as_echo "$ac_cv_objext" >&6; } 2937OBJEXT=$ac_cv_objext 2938ac_objext=$OBJEXT 2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2940$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2941if ${ac_cv_c_compiler_gnu+:} false; then : 2942 $as_echo_n "(cached) " >&6 2943else 2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2945/* end confdefs.h. */ 2946 2947int 2948main () 2949{ 2950#ifndef __GNUC__ 2951 choke me 2952#endif 2953 2954 ; 2955 return 0; 2956} 2957_ACEOF 2958if ac_fn_c_try_compile "$LINENO"; then : 2959 ac_compiler_gnu=yes 2960else 2961 ac_compiler_gnu=no 2962fi 2963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2964ac_cv_c_compiler_gnu=$ac_compiler_gnu 2965 2966fi 2967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2968$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2969if test $ac_compiler_gnu = yes; then 2970 GCC=yes 2971else 2972 GCC= 2973fi 2974ac_test_CFLAGS=${CFLAGS+set} 2975ac_save_CFLAGS=$CFLAGS 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2977$as_echo_n "checking whether $CC accepts -g... " >&6; } 2978if ${ac_cv_prog_cc_g+:} false; then : 2979 $as_echo_n "(cached) " >&6 2980else 2981 ac_save_c_werror_flag=$ac_c_werror_flag 2982 ac_c_werror_flag=yes 2983 ac_cv_prog_cc_g=no 2984 CFLAGS="-g" 2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2986/* end confdefs.h. */ 2987 2988int 2989main () 2990{ 2991 2992 ; 2993 return 0; 2994} 2995_ACEOF 2996if ac_fn_c_try_compile "$LINENO"; then : 2997 ac_cv_prog_cc_g=yes 2998else 2999 CFLAGS="" 3000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3001/* end confdefs.h. */ 3002 3003int 3004main () 3005{ 3006 3007 ; 3008 return 0; 3009} 3010_ACEOF 3011if ac_fn_c_try_compile "$LINENO"; then : 3012 3013else 3014 ac_c_werror_flag=$ac_save_c_werror_flag 3015 CFLAGS="-g" 3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3017/* end confdefs.h. */ 3018 3019int 3020main () 3021{ 3022 3023 ; 3024 return 0; 3025} 3026_ACEOF 3027if ac_fn_c_try_compile "$LINENO"; then : 3028 ac_cv_prog_cc_g=yes 3029fi 3030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3031fi 3032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3033fi 3034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3035 ac_c_werror_flag=$ac_save_c_werror_flag 3036fi 3037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3038$as_echo "$ac_cv_prog_cc_g" >&6; } 3039if test "$ac_test_CFLAGS" = set; then 3040 CFLAGS=$ac_save_CFLAGS 3041elif test $ac_cv_prog_cc_g = yes; then 3042 if test "$GCC" = yes; then 3043 CFLAGS="-g -O2" 3044 else 3045 CFLAGS="-g" 3046 fi 3047else 3048 if test "$GCC" = yes; then 3049 CFLAGS="-O2" 3050 else 3051 CFLAGS= 3052 fi 3053fi 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3055$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3056if ${ac_cv_prog_cc_c89+:} false; then : 3057 $as_echo_n "(cached) " >&6 3058else 3059 ac_cv_prog_cc_c89=no 3060ac_save_CC=$CC 3061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3062/* end confdefs.h. */ 3063#include <stdarg.h> 3064#include <stdio.h> 3065struct stat; 3066/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3067struct buf { int x; }; 3068FILE * (*rcsopen) (struct buf *, struct stat *, int); 3069static char *e (p, i) 3070 char **p; 3071 int i; 3072{ 3073 return p[i]; 3074} 3075static char *f (char * (*g) (char **, int), char **p, ...) 3076{ 3077 char *s; 3078 va_list v; 3079 va_start (v,p); 3080 s = g (p, va_arg (v,int)); 3081 va_end (v); 3082 return s; 3083} 3084 3085/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3086 function prototypes and stuff, but not '\xHH' hex character constants. 3087 These don't provoke an error unfortunately, instead are silently treated 3088 as 'x'. The following induces an error, until -std is added to get 3089 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3090 array size at least. It's necessary to write '\x00'==0 to get something 3091 that's true only with -std. */ 3092int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3093 3094/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3095 inside strings and character constants. */ 3096#define FOO(x) 'x' 3097int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3098 3099int test (int i, double x); 3100struct s1 {int (*f) (int a);}; 3101struct s2 {int (*f) (double a);}; 3102int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3103int argc; 3104char **argv; 3105int 3106main () 3107{ 3108return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3109 ; 3110 return 0; 3111} 3112_ACEOF 3113for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3114 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3115do 3116 CC="$ac_save_CC $ac_arg" 3117 if ac_fn_c_try_compile "$LINENO"; then : 3118 ac_cv_prog_cc_c89=$ac_arg 3119fi 3120rm -f core conftest.err conftest.$ac_objext 3121 test "x$ac_cv_prog_cc_c89" != "xno" && break 3122done 3123rm -f conftest.$ac_ext 3124CC=$ac_save_CC 3125 3126fi 3127# AC_CACHE_VAL 3128case "x$ac_cv_prog_cc_c89" in 3129 x) 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3131$as_echo "none needed" >&6; } ;; 3132 xno) 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3134$as_echo "unsupported" >&6; } ;; 3135 *) 3136 CC="$CC $ac_cv_prog_cc_c89" 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3138$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3139esac 3140if test "x$ac_cv_prog_cc_c89" != xno; then : 3141 3142fi 3143 3144ac_ext=c 3145ac_cpp='$CPP $CPPFLAGS' 3146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3148ac_compiler_gnu=$ac_cv_c_compiler_gnu 3149 3150ac_ext=c 3151ac_cpp='$CPP $CPPFLAGS' 3152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3154ac_compiler_gnu=$ac_cv_c_compiler_gnu 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3156$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3157if ${am_cv_prog_cc_c_o+:} false; then : 3158 $as_echo_n "(cached) " >&6 3159else 3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3161/* end confdefs.h. */ 3162 3163int 3164main () 3165{ 3166 3167 ; 3168 return 0; 3169} 3170_ACEOF 3171 # Make sure it works both with $CC and with simple cc. 3172 # Following AC_PROG_CC_C_O, we do the test twice because some 3173 # compilers refuse to overwrite an existing .o file with -o, 3174 # though they will create one. 3175 am_cv_prog_cc_c_o=yes 3176 for am_i in 1 2; do 3177 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3178 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3179 ac_status=$? 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); } \ 3182 && test -f conftest2.$ac_objext; then 3183 : OK 3184 else 3185 am_cv_prog_cc_c_o=no 3186 break 3187 fi 3188 done 3189 rm -f core conftest* 3190 unset am_i 3191fi 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3193$as_echo "$am_cv_prog_cc_c_o" >&6; } 3194if test "$am_cv_prog_cc_c_o" != yes; then 3195 # Losing compiler, so override with the script. 3196 # FIXME: It is wrong to rewrite CC. 3197 # But if we don't then we get into trouble of one sort or another. 3198 # A longer-term fix would be to have automake use am__CC in this case, 3199 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3200 CC="$am_aux_dir/compile $CC" 3201fi 3202ac_ext=c 3203ac_cpp='$CPP $CPPFLAGS' 3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3206ac_compiler_gnu=$ac_cv_c_compiler_gnu 3207 3208 3209 3210ac_ext=c 3211ac_cpp='$CPP $CPPFLAGS' 3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3214ac_compiler_gnu=$ac_cv_c_compiler_gnu 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3216$as_echo_n "checking how to run the C preprocessor... " >&6; } 3217# On Suns, sometimes $CPP names a directory. 3218if test -n "$CPP" && test -d "$CPP"; then 3219 CPP= 3220fi 3221if test -z "$CPP"; then 3222 if ${ac_cv_prog_CPP+:} false; then : 3223 $as_echo_n "(cached) " >&6 3224else 3225 # Double quotes because CPP needs to be expanded 3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3227 do 3228 ac_preproc_ok=false 3229for ac_c_preproc_warn_flag in '' yes 3230do 3231 # Use a header file that comes with gcc, so configuring glibc 3232 # with a fresh cross-compiler works. 3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3234 # <limits.h> exists even on freestanding compilers. 3235 # On the NeXT, cc -E runs the code through the compiler's parser, 3236 # not just through cpp. "Syntax error" is here to catch this case. 3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3238/* end confdefs.h. */ 3239#ifdef __STDC__ 3240# include <limits.h> 3241#else 3242# include <assert.h> 3243#endif 3244 Syntax error 3245_ACEOF 3246if ac_fn_c_try_cpp "$LINENO"; then : 3247 3248else 3249 # Broken: fails on valid input. 3250continue 3251fi 3252rm -f conftest.err conftest.i conftest.$ac_ext 3253 3254 # OK, works on sane cases. Now check whether nonexistent headers 3255 # can be detected and how. 3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3257/* end confdefs.h. */ 3258#include <ac_nonexistent.h> 3259_ACEOF 3260if ac_fn_c_try_cpp "$LINENO"; then : 3261 # Broken: success on invalid input. 3262continue 3263else 3264 # Passes both tests. 3265ac_preproc_ok=: 3266break 3267fi 3268rm -f conftest.err conftest.i conftest.$ac_ext 3269 3270done 3271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3272rm -f conftest.i conftest.err conftest.$ac_ext 3273if $ac_preproc_ok; then : 3274 break 3275fi 3276 3277 done 3278 ac_cv_prog_CPP=$CPP 3279 3280fi 3281 CPP=$ac_cv_prog_CPP 3282else 3283 ac_cv_prog_CPP=$CPP 3284fi 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3286$as_echo "$CPP" >&6; } 3287ac_preproc_ok=false 3288for ac_c_preproc_warn_flag in '' yes 3289do 3290 # Use a header file that comes with gcc, so configuring glibc 3291 # with a fresh cross-compiler works. 3292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3293 # <limits.h> exists even on freestanding compilers. 3294 # On the NeXT, cc -E runs the code through the compiler's parser, 3295 # not just through cpp. "Syntax error" is here to catch this case. 3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3297/* end confdefs.h. */ 3298#ifdef __STDC__ 3299# include <limits.h> 3300#else 3301# include <assert.h> 3302#endif 3303 Syntax error 3304_ACEOF 3305if ac_fn_c_try_cpp "$LINENO"; then : 3306 3307else 3308 # Broken: fails on valid input. 3309continue 3310fi 3311rm -f conftest.err conftest.i conftest.$ac_ext 3312 3313 # OK, works on sane cases. Now check whether nonexistent headers 3314 # can be detected and how. 3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3316/* end confdefs.h. */ 3317#include <ac_nonexistent.h> 3318_ACEOF 3319if ac_fn_c_try_cpp "$LINENO"; then : 3320 # Broken: success on invalid input. 3321continue 3322else 3323 # Passes both tests. 3324ac_preproc_ok=: 3325break 3326fi 3327rm -f conftest.err conftest.i conftest.$ac_ext 3328 3329done 3330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3331rm -f conftest.i conftest.err conftest.$ac_ext 3332if $ac_preproc_ok; then : 3333 3334else 3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3337as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3338See \`config.log' for more details" "$LINENO" 5; } 3339fi 3340 3341ac_ext=c 3342ac_cpp='$CPP $CPPFLAGS' 3343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3345ac_compiler_gnu=$ac_cv_c_compiler_gnu 3346 3347 3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3349$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3350if ${ac_cv_path_GREP+:} false; then : 3351 $as_echo_n "(cached) " >&6 3352else 3353 if test -z "$GREP"; then 3354 ac_path_GREP_found=false 3355 # Loop through the user's path and test for each of PROGNAME-LIST 3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3357for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3358do 3359 IFS=$as_save_IFS 3360 test -z "$as_dir" && as_dir=. 3361 for ac_prog in grep ggrep; do 3362 for ac_exec_ext in '' $ac_executable_extensions; do 3363 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3364 as_fn_executable_p "$ac_path_GREP" || continue 3365# Check for GNU ac_path_GREP and select it if it is found. 3366 # Check for GNU $ac_path_GREP 3367case `"$ac_path_GREP" --version 2>&1` in 3368*GNU*) 3369 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3370*) 3371 ac_count=0 3372 $as_echo_n 0123456789 >"conftest.in" 3373 while : 3374 do 3375 cat "conftest.in" "conftest.in" >"conftest.tmp" 3376 mv "conftest.tmp" "conftest.in" 3377 cp "conftest.in" "conftest.nl" 3378 $as_echo 'GREP' >> "conftest.nl" 3379 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3381 as_fn_arith $ac_count + 1 && ac_count=$as_val 3382 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3383 # Best one so far, save it but keep looking for a better one 3384 ac_cv_path_GREP="$ac_path_GREP" 3385 ac_path_GREP_max=$ac_count 3386 fi 3387 # 10*(2^10) chars as input seems more than enough 3388 test $ac_count -gt 10 && break 3389 done 3390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3391esac 3392 3393 $ac_path_GREP_found && break 3 3394 done 3395 done 3396 done 3397IFS=$as_save_IFS 3398 if test -z "$ac_cv_path_GREP"; then 3399 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3400 fi 3401else 3402 ac_cv_path_GREP=$GREP 3403fi 3404 3405fi 3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3407$as_echo "$ac_cv_path_GREP" >&6; } 3408 GREP="$ac_cv_path_GREP" 3409 3410 3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3412$as_echo_n "checking for egrep... " >&6; } 3413if ${ac_cv_path_EGREP+:} false; then : 3414 $as_echo_n "(cached) " >&6 3415else 3416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3417 then ac_cv_path_EGREP="$GREP -E" 3418 else 3419 if test -z "$EGREP"; then 3420 ac_path_EGREP_found=false 3421 # Loop through the user's path and test for each of PROGNAME-LIST 3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3423for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3424do 3425 IFS=$as_save_IFS 3426 test -z "$as_dir" && as_dir=. 3427 for ac_prog in egrep; do 3428 for ac_exec_ext in '' $ac_executable_extensions; do 3429 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3430 as_fn_executable_p "$ac_path_EGREP" || continue 3431# Check for GNU ac_path_EGREP and select it if it is found. 3432 # Check for GNU $ac_path_EGREP 3433case `"$ac_path_EGREP" --version 2>&1` in 3434*GNU*) 3435 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3436*) 3437 ac_count=0 3438 $as_echo_n 0123456789 >"conftest.in" 3439 while : 3440 do 3441 cat "conftest.in" "conftest.in" >"conftest.tmp" 3442 mv "conftest.tmp" "conftest.in" 3443 cp "conftest.in" "conftest.nl" 3444 $as_echo 'EGREP' >> "conftest.nl" 3445 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3447 as_fn_arith $ac_count + 1 && ac_count=$as_val 3448 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3449 # Best one so far, save it but keep looking for a better one 3450 ac_cv_path_EGREP="$ac_path_EGREP" 3451 ac_path_EGREP_max=$ac_count 3452 fi 3453 # 10*(2^10) chars as input seems more than enough 3454 test $ac_count -gt 10 && break 3455 done 3456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3457esac 3458 3459 $ac_path_EGREP_found && break 3 3460 done 3461 done 3462 done 3463IFS=$as_save_IFS 3464 if test -z "$ac_cv_path_EGREP"; then 3465 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3466 fi 3467else 3468 ac_cv_path_EGREP=$EGREP 3469fi 3470 3471 fi 3472fi 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3474$as_echo "$ac_cv_path_EGREP" >&6; } 3475 EGREP="$ac_cv_path_EGREP" 3476 3477 3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3479$as_echo_n "checking for ANSI C header files... " >&6; } 3480if ${ac_cv_header_stdc+:} false; then : 3481 $as_echo_n "(cached) " >&6 3482else 3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3484/* end confdefs.h. */ 3485#include <stdlib.h> 3486#include <stdarg.h> 3487#include <string.h> 3488#include <float.h> 3489 3490int 3491main () 3492{ 3493 3494 ; 3495 return 0; 3496} 3497_ACEOF 3498if ac_fn_c_try_compile "$LINENO"; then : 3499 ac_cv_header_stdc=yes 3500else 3501 ac_cv_header_stdc=no 3502fi 3503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3504 3505if test $ac_cv_header_stdc = yes; then 3506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3508/* end confdefs.h. */ 3509#include <string.h> 3510 3511_ACEOF 3512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3513 $EGREP "memchr" >/dev/null 2>&1; then : 3514 3515else 3516 ac_cv_header_stdc=no 3517fi 3518rm -f conftest* 3519 3520fi 3521 3522if test $ac_cv_header_stdc = yes; then 3523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3525/* end confdefs.h. */ 3526#include <stdlib.h> 3527 3528_ACEOF 3529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3530 $EGREP "free" >/dev/null 2>&1; then : 3531 3532else 3533 ac_cv_header_stdc=no 3534fi 3535rm -f conftest* 3536 3537fi 3538 3539if test $ac_cv_header_stdc = yes; then 3540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3541 if test "$cross_compiling" = yes; then : 3542 : 3543else 3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3545/* end confdefs.h. */ 3546#include <ctype.h> 3547#include <stdlib.h> 3548#if ((' ' & 0x0FF) == 0x020) 3549# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3550# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3551#else 3552# define ISLOWER(c) \ 3553 (('a' <= (c) && (c) <= 'i') \ 3554 || ('j' <= (c) && (c) <= 'r') \ 3555 || ('s' <= (c) && (c) <= 'z')) 3556# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3557#endif 3558 3559#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3560int 3561main () 3562{ 3563 int i; 3564 for (i = 0; i < 256; i++) 3565 if (XOR (islower (i), ISLOWER (i)) 3566 || toupper (i) != TOUPPER (i)) 3567 return 2; 3568 return 0; 3569} 3570_ACEOF 3571if ac_fn_c_try_run "$LINENO"; then : 3572 3573else 3574 ac_cv_header_stdc=no 3575fi 3576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3577 conftest.$ac_objext conftest.beam conftest.$ac_ext 3578fi 3579 3580fi 3581fi 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3583$as_echo "$ac_cv_header_stdc" >&6; } 3584if test $ac_cv_header_stdc = yes; then 3585 3586$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3587 3588fi 3589 3590# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3591for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3592 inttypes.h stdint.h unistd.h 3593do : 3594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3595ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3596" 3597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3598 cat >>confdefs.h <<_ACEOF 3599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3600_ACEOF 3601 3602fi 3603 3604done 3605 3606 3607 3608 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3609if test "x$ac_cv_header_minix_config_h" = xyes; then : 3610 MINIX=yes 3611else 3612 MINIX= 3613fi 3614 3615 3616 if test "$MINIX" = yes; then 3617 3618$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3619 3620 3621$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3622 3623 3624$as_echo "#define _MINIX 1" >>confdefs.h 3625 3626 fi 3627 3628 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3630$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3631if ${ac_cv_safe_to_define___extensions__+:} false; then : 3632 $as_echo_n "(cached) " >&6 3633else 3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3635/* end confdefs.h. */ 3636 3637# define __EXTENSIONS__ 1 3638 $ac_includes_default 3639int 3640main () 3641{ 3642 3643 ; 3644 return 0; 3645} 3646_ACEOF 3647if ac_fn_c_try_compile "$LINENO"; then : 3648 ac_cv_safe_to_define___extensions__=yes 3649else 3650 ac_cv_safe_to_define___extensions__=no 3651fi 3652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3653fi 3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3655$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3656 test $ac_cv_safe_to_define___extensions__ = yes && 3657 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3658 3659 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3660 3661 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3662 3663 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3664 3665 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3666 3667 3668 3669# Initialize Automake 3670am__api_version='1.15' 3671 3672# Find a good install program. We prefer a C program (faster), 3673# so one script is as good as another. But avoid the broken or 3674# incompatible versions: 3675# SysV /etc/install, /usr/sbin/install 3676# SunOS /usr/etc/install 3677# IRIX /sbin/install 3678# AIX /bin/install 3679# AmigaOS /C/install, which installs bootblocks on floppy discs 3680# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3681# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3682# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3683# OS/2's system install, which has a completely different semantic 3684# ./install, which can be erroneously created by make from ./install.sh. 3685# Reject install programs that cannot install multiple files. 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3687$as_echo_n "checking for a BSD-compatible install... " >&6; } 3688if test -z "$INSTALL"; then 3689if ${ac_cv_path_install+:} false; then : 3690 $as_echo_n "(cached) " >&6 3691else 3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3693for as_dir in $PATH 3694do 3695 IFS=$as_save_IFS 3696 test -z "$as_dir" && as_dir=. 3697 # Account for people who put trailing slashes in PATH elements. 3698case $as_dir/ in #(( 3699 ./ | .// | /[cC]/* | \ 3700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3701 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3702 /usr/ucb/* ) ;; 3703 *) 3704 # OSF1 and SCO ODT 3.0 have their own names for install. 3705 # Don't use installbsd from OSF since it installs stuff as root 3706 # by default. 3707 for ac_prog in ginstall scoinst install; do 3708 for ac_exec_ext in '' $ac_executable_extensions; do 3709 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3710 if test $ac_prog = install && 3711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3712 # AIX install. It has an incompatible calling convention. 3713 : 3714 elif test $ac_prog = install && 3715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3716 # program-specific install script used by HP pwplus--don't use. 3717 : 3718 else 3719 rm -rf conftest.one conftest.two conftest.dir 3720 echo one > conftest.one 3721 echo two > conftest.two 3722 mkdir conftest.dir 3723 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3724 test -s conftest.one && test -s conftest.two && 3725 test -s conftest.dir/conftest.one && 3726 test -s conftest.dir/conftest.two 3727 then 3728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3729 break 3 3730 fi 3731 fi 3732 fi 3733 done 3734 done 3735 ;; 3736esac 3737 3738 done 3739IFS=$as_save_IFS 3740 3741rm -rf conftest.one conftest.two conftest.dir 3742 3743fi 3744 if test "${ac_cv_path_install+set}" = set; then 3745 INSTALL=$ac_cv_path_install 3746 else 3747 # As a last resort, use the slow shell script. Don't cache a 3748 # value for INSTALL within a source directory, because that will 3749 # break other packages using the cache if that directory is 3750 # removed, or if the value is a relative name. 3751 INSTALL=$ac_install_sh 3752 fi 3753fi 3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3755$as_echo "$INSTALL" >&6; } 3756 3757# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3758# It thinks the first close brace ends the variable substitution. 3759test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3760 3761test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3762 3763test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3764 3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3766$as_echo_n "checking whether build environment is sane... " >&6; } 3767# Reject unsafe characters in $srcdir or the absolute working directory 3768# name. Accept space and tab only in the latter. 3769am_lf=' 3770' 3771case `pwd` in 3772 *[\\\"\#\$\&\'\`$am_lf]*) 3773 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3774esac 3775case $srcdir in 3776 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3777 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3778esac 3779 3780# Do 'set' in a subshell so we don't clobber the current shell's 3781# arguments. Must try -L first in case configure is actually a 3782# symlink; some systems play weird games with the mod time of symlinks 3783# (eg FreeBSD returns the mod time of the symlink's containing 3784# directory). 3785if ( 3786 am_has_slept=no 3787 for am_try in 1 2; do 3788 echo "timestamp, slept: $am_has_slept" > conftest.file 3789 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3790 if test "$*" = "X"; then 3791 # -L didn't work. 3792 set X `ls -t "$srcdir/configure" conftest.file` 3793 fi 3794 if test "$*" != "X $srcdir/configure conftest.file" \ 3795 && test "$*" != "X conftest.file $srcdir/configure"; then 3796 3797 # If neither matched, then we have a broken ls. This can happen 3798 # if, for instance, CONFIG_SHELL is bash and it inherits a 3799 # broken ls alias from the environment. This has actually 3800 # happened. Such a system could not be considered "sane". 3801 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3802 alias in your environment" "$LINENO" 5 3803 fi 3804 if test "$2" = conftest.file || test $am_try -eq 2; then 3805 break 3806 fi 3807 # Just in case. 3808 sleep 1 3809 am_has_slept=yes 3810 done 3811 test "$2" = conftest.file 3812 ) 3813then 3814 # Ok. 3815 : 3816else 3817 as_fn_error $? "newly created file is older than distributed files! 3818Check your system clock" "$LINENO" 5 3819fi 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3821$as_echo "yes" >&6; } 3822# If we didn't sleep, we still need to ensure time stamps of config.status and 3823# generated files are strictly newer. 3824am_sleep_pid= 3825if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3826 ( sleep 1 ) & 3827 am_sleep_pid=$! 3828fi 3829 3830rm -f conftest.file 3831 3832test "$program_prefix" != NONE && 3833 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3834# Use a double $ so make ignores it. 3835test "$program_suffix" != NONE && 3836 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3837# Double any \ or $. 3838# By default was `s,x,x', remove it if useless. 3839ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3840program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3841 3842if test x"${MISSING+set}" != xset; then 3843 case $am_aux_dir in 3844 *\ * | *\ *) 3845 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3846 *) 3847 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3848 esac 3849fi 3850# Use eval to expand $SHELL 3851if eval "$MISSING --is-lightweight"; then 3852 am_missing_run="$MISSING " 3853else 3854 am_missing_run= 3855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3856$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3857fi 3858 3859if test x"${install_sh+set}" != xset; then 3860 case $am_aux_dir in 3861 *\ * | *\ *) 3862 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3863 *) 3864 install_sh="\${SHELL} $am_aux_dir/install-sh" 3865 esac 3866fi 3867 3868# Installed binaries are usually stripped using 'strip' when the user 3869# run "make install-strip". However 'strip' might not be the right 3870# tool to use in cross-compilation environments, therefore Automake 3871# will honor the 'STRIP' environment variable to overrule this program. 3872if test "$cross_compiling" != no; then 3873 if test -n "$ac_tool_prefix"; then 3874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3875set dummy ${ac_tool_prefix}strip; ac_word=$2 3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3877$as_echo_n "checking for $ac_word... " >&6; } 3878if ${ac_cv_prog_STRIP+:} false; then : 3879 $as_echo_n "(cached) " >&6 3880else 3881 if test -n "$STRIP"; then 3882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3883else 3884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3885for as_dir in $PATH 3886do 3887 IFS=$as_save_IFS 3888 test -z "$as_dir" && as_dir=. 3889 for ac_exec_ext in '' $ac_executable_extensions; do 3890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3891 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3893 break 2 3894 fi 3895done 3896 done 3897IFS=$as_save_IFS 3898 3899fi 3900fi 3901STRIP=$ac_cv_prog_STRIP 3902if test -n "$STRIP"; then 3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3904$as_echo "$STRIP" >&6; } 3905else 3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3907$as_echo "no" >&6; } 3908fi 3909 3910 3911fi 3912if test -z "$ac_cv_prog_STRIP"; then 3913 ac_ct_STRIP=$STRIP 3914 # Extract the first word of "strip", so it can be a program name with args. 3915set dummy strip; ac_word=$2 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3917$as_echo_n "checking for $ac_word... " >&6; } 3918if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3919 $as_echo_n "(cached) " >&6 3920else 3921 if test -n "$ac_ct_STRIP"; then 3922 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3923else 3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3925for as_dir in $PATH 3926do 3927 IFS=$as_save_IFS 3928 test -z "$as_dir" && as_dir=. 3929 for ac_exec_ext in '' $ac_executable_extensions; do 3930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3931 ac_cv_prog_ac_ct_STRIP="strip" 3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3933 break 2 3934 fi 3935done 3936 done 3937IFS=$as_save_IFS 3938 3939fi 3940fi 3941ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3942if test -n "$ac_ct_STRIP"; then 3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3944$as_echo "$ac_ct_STRIP" >&6; } 3945else 3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3947$as_echo "no" >&6; } 3948fi 3949 3950 if test "x$ac_ct_STRIP" = x; then 3951 STRIP=":" 3952 else 3953 case $cross_compiling:$ac_tool_warned in 3954yes:) 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3957ac_tool_warned=yes ;; 3958esac 3959 STRIP=$ac_ct_STRIP 3960 fi 3961else 3962 STRIP="$ac_cv_prog_STRIP" 3963fi 3964 3965fi 3966INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3967 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3969$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3970if test -z "$MKDIR_P"; then 3971 if ${ac_cv_path_mkdir+:} false; then : 3972 $as_echo_n "(cached) " >&6 3973else 3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3975for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3976do 3977 IFS=$as_save_IFS 3978 test -z "$as_dir" && as_dir=. 3979 for ac_prog in mkdir gmkdir; do 3980 for ac_exec_ext in '' $ac_executable_extensions; do 3981 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3982 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3983 'mkdir (GNU coreutils) '* | \ 3984 'mkdir (coreutils) '* | \ 3985 'mkdir (fileutils) '4.1*) 3986 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3987 break 3;; 3988 esac 3989 done 3990 done 3991 done 3992IFS=$as_save_IFS 3993 3994fi 3995 3996 test -d ./--version && rmdir ./--version 3997 if test "${ac_cv_path_mkdir+set}" = set; then 3998 MKDIR_P="$ac_cv_path_mkdir -p" 3999 else 4000 # As a last resort, use the slow shell script. Don't cache a 4001 # value for MKDIR_P within a source directory, because that will 4002 # break other packages using the cache if that directory is 4003 # removed, or if the value is a relative name. 4004 MKDIR_P="$ac_install_sh -d" 4005 fi 4006fi 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4008$as_echo "$MKDIR_P" >&6; } 4009 4010for ac_prog in gawk mawk nawk awk 4011do 4012 # Extract the first word of "$ac_prog", so it can be a program name with args. 4013set dummy $ac_prog; ac_word=$2 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4015$as_echo_n "checking for $ac_word... " >&6; } 4016if ${ac_cv_prog_AWK+:} false; then : 4017 $as_echo_n "(cached) " >&6 4018else 4019 if test -n "$AWK"; then 4020 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4021else 4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4023for as_dir in $PATH 4024do 4025 IFS=$as_save_IFS 4026 test -z "$as_dir" && as_dir=. 4027 for ac_exec_ext in '' $ac_executable_extensions; do 4028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4029 ac_cv_prog_AWK="$ac_prog" 4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4031 break 2 4032 fi 4033done 4034 done 4035IFS=$as_save_IFS 4036 4037fi 4038fi 4039AWK=$ac_cv_prog_AWK 4040if test -n "$AWK"; then 4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4042$as_echo "$AWK" >&6; } 4043else 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4045$as_echo "no" >&6; } 4046fi 4047 4048 4049 test -n "$AWK" && break 4050done 4051 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4053$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4054set x ${MAKE-make} 4055ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4056if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4057 $as_echo_n "(cached) " >&6 4058else 4059 cat >conftest.make <<\_ACEOF 4060SHELL = /bin/sh 4061all: 4062 @echo '@@@%%%=$(MAKE)=@@@%%%' 4063_ACEOF 4064# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4065case `${MAKE-make} -f conftest.make 2>/dev/null` in 4066 *@@@%%%=?*=@@@%%%*) 4067 eval ac_cv_prog_make_${ac_make}_set=yes;; 4068 *) 4069 eval ac_cv_prog_make_${ac_make}_set=no;; 4070esac 4071rm -f conftest.make 4072fi 4073if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4075$as_echo "yes" >&6; } 4076 SET_MAKE= 4077else 4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4079$as_echo "no" >&6; } 4080 SET_MAKE="MAKE=${MAKE-make}" 4081fi 4082 4083rm -rf .tst 2>/dev/null 4084mkdir .tst 2>/dev/null 4085if test -d .tst; then 4086 am__leading_dot=. 4087else 4088 am__leading_dot=_ 4089fi 4090rmdir .tst 2>/dev/null 4091 4092DEPDIR="${am__leading_dot}deps" 4093 4094ac_config_commands="$ac_config_commands depfiles" 4095 4096 4097am_make=${MAKE-make} 4098cat > confinc << 'END' 4099am__doit: 4100 @echo this is the am__doit target 4101.PHONY: am__doit 4102END 4103# If we don't find an include directive, just comment out the code. 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4105$as_echo_n "checking for style of include used by $am_make... " >&6; } 4106am__include="#" 4107am__quote= 4108_am_result=none 4109# First try GNU make style include. 4110echo "include confinc" > confmf 4111# Ignore all kinds of additional output from 'make'. 4112case `$am_make -s -f confmf 2> /dev/null` in #( 4113*the\ am__doit\ target*) 4114 am__include=include 4115 am__quote= 4116 _am_result=GNU 4117 ;; 4118esac 4119# Now try BSD make style include. 4120if test "$am__include" = "#"; then 4121 echo '.include "confinc"' > confmf 4122 case `$am_make -s -f confmf 2> /dev/null` in #( 4123 *the\ am__doit\ target*) 4124 am__include=.include 4125 am__quote="\"" 4126 _am_result=BSD 4127 ;; 4128 esac 4129fi 4130 4131 4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4133$as_echo "$_am_result" >&6; } 4134rm -f confinc confmf 4135 4136# Check whether --enable-dependency-tracking was given. 4137if test "${enable_dependency_tracking+set}" = set; then : 4138 enableval=$enable_dependency_tracking; 4139fi 4140 4141if test "x$enable_dependency_tracking" != xno; then 4142 am_depcomp="$ac_aux_dir/depcomp" 4143 AMDEPBACKSLASH='\' 4144 am__nodep='_no' 4145fi 4146 if test "x$enable_dependency_tracking" != xno; then 4147 AMDEP_TRUE= 4148 AMDEP_FALSE='#' 4149else 4150 AMDEP_TRUE='#' 4151 AMDEP_FALSE= 4152fi 4153 4154 4155# Check whether --enable-silent-rules was given. 4156if test "${enable_silent_rules+set}" = set; then : 4157 enableval=$enable_silent_rules; 4158fi 4159 4160case $enable_silent_rules in # ((( 4161 yes) AM_DEFAULT_VERBOSITY=0;; 4162 no) AM_DEFAULT_VERBOSITY=1;; 4163 *) AM_DEFAULT_VERBOSITY=1;; 4164esac 4165am_make=${MAKE-make} 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4167$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4168if ${am_cv_make_support_nested_variables+:} false; then : 4169 $as_echo_n "(cached) " >&6 4170else 4171 if $as_echo 'TRUE=$(BAR$(V)) 4172BAR0=false 4173BAR1=true 4174V=1 4175am__doit: 4176 @$(TRUE) 4177.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4178 am_cv_make_support_nested_variables=yes 4179else 4180 am_cv_make_support_nested_variables=no 4181fi 4182fi 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4184$as_echo "$am_cv_make_support_nested_variables" >&6; } 4185if test $am_cv_make_support_nested_variables = yes; then 4186 AM_V='$(V)' 4187 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4188else 4189 AM_V=$AM_DEFAULT_VERBOSITY 4190 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4191fi 4192AM_BACKSLASH='\' 4193 4194if test "`cd $srcdir && pwd`" != "`pwd`"; then 4195 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4196 # is not polluted with repeated "-I." 4197 am__isrc=' -I$(srcdir)' 4198 # test to see if srcdir already configured 4199 if test -f $srcdir/config.status; then 4200 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4201 fi 4202fi 4203 4204# test whether we have cygpath 4205if test -z "$CYGPATH_W"; then 4206 if (cygpath --version) >/dev/null 2>/dev/null; then 4207 CYGPATH_W='cygpath -w' 4208 else 4209 CYGPATH_W=echo 4210 fi 4211fi 4212 4213 4214# Define the identity of the package. 4215 PACKAGE='xf86-input-mouse' 4216 VERSION='1.9.3' 4217 4218 4219cat >>confdefs.h <<_ACEOF 4220#define PACKAGE "$PACKAGE" 4221_ACEOF 4222 4223 4224cat >>confdefs.h <<_ACEOF 4225#define VERSION "$VERSION" 4226_ACEOF 4227 4228# Some tools Automake needs. 4229 4230ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4231 4232 4233AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4234 4235 4236AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4237 4238 4239AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4240 4241 4242MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4243 4244# For better backward compatibility. To be removed once Automake 1.9.x 4245# dies out for good. For more background, see: 4246# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4247# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4248mkdir_p='$(MKDIR_P)' 4249 4250# We need awk for the "check" target (and possibly the TAP driver). The 4251# system "awk" is bad on some platforms. 4252# Always define AMTAR for backward compatibility. Yes, it's still used 4253# in the wild :-( We should find a proper way to deprecate it ... 4254AMTAR='$${TAR-tar}' 4255 4256 4257# We'll loop over all known methods to create a tar archive until one works. 4258_am_tools='gnutar pax cpio none' 4259 4260am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4261 4262 4263 4264 4265 4266depcc="$CC" am_compiler_list= 4267 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4269$as_echo_n "checking dependency style of $depcc... " >&6; } 4270if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4271 $as_echo_n "(cached) " >&6 4272else 4273 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4274 # We make a subdir and do the tests there. Otherwise we can end up 4275 # making bogus files that we don't know about and never remove. For 4276 # instance it was reported that on HP-UX the gcc test will end up 4277 # making a dummy file named 'D' -- because '-MD' means "put the output 4278 # in D". 4279 rm -rf conftest.dir 4280 mkdir conftest.dir 4281 # Copy depcomp to subdir because otherwise we won't find it if we're 4282 # using a relative directory. 4283 cp "$am_depcomp" conftest.dir 4284 cd conftest.dir 4285 # We will build objects and dependencies in a subdirectory because 4286 # it helps to detect inapplicable dependency modes. For instance 4287 # both Tru64's cc and ICC support -MD to output dependencies as a 4288 # side effect of compilation, but ICC will put the dependencies in 4289 # the current directory while Tru64 will put them in the object 4290 # directory. 4291 mkdir sub 4292 4293 am_cv_CC_dependencies_compiler_type=none 4294 if test "$am_compiler_list" = ""; then 4295 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4296 fi 4297 am__universal=false 4298 case " $depcc " in #( 4299 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4300 esac 4301 4302 for depmode in $am_compiler_list; do 4303 # Setup a source with many dependencies, because some compilers 4304 # like to wrap large dependency lists on column 80 (with \), and 4305 # we should not choose a depcomp mode which is confused by this. 4306 # 4307 # We need to recreate these files for each test, as the compiler may 4308 # overwrite some of them when testing with obscure command lines. 4309 # This happens at least with the AIX C compiler. 4310 : > sub/conftest.c 4311 for i in 1 2 3 4 5 6; do 4312 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4313 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4314 # Solaris 10 /bin/sh. 4315 echo '/* dummy */' > sub/conftst$i.h 4316 done 4317 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4318 4319 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4320 # mode. It turns out that the SunPro C++ compiler does not properly 4321 # handle '-M -o', and we need to detect this. Also, some Intel 4322 # versions had trouble with output in subdirs. 4323 am__obj=sub/conftest.${OBJEXT-o} 4324 am__minus_obj="-o $am__obj" 4325 case $depmode in 4326 gcc) 4327 # This depmode causes a compiler race in universal mode. 4328 test "$am__universal" = false || continue 4329 ;; 4330 nosideeffect) 4331 # After this tag, mechanisms are not by side-effect, so they'll 4332 # only be used when explicitly requested. 4333 if test "x$enable_dependency_tracking" = xyes; then 4334 continue 4335 else 4336 break 4337 fi 4338 ;; 4339 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4340 # This compiler won't grok '-c -o', but also, the minuso test has 4341 # not run yet. These depmodes are late enough in the game, and 4342 # so weak that their functioning should not be impacted. 4343 am__obj=conftest.${OBJEXT-o} 4344 am__minus_obj= 4345 ;; 4346 none) break ;; 4347 esac 4348 if depmode=$depmode \ 4349 source=sub/conftest.c object=$am__obj \ 4350 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4351 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4352 >/dev/null 2>conftest.err && 4353 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4354 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4355 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4356 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4357 # icc doesn't choke on unknown options, it will just issue warnings 4358 # or remarks (even with -Werror). So we grep stderr for any message 4359 # that says an option was ignored or not supported. 4360 # When given -MP, icc 7.0 and 7.1 complain thusly: 4361 # icc: Command line warning: ignoring option '-M'; no argument required 4362 # The diagnosis changed in icc 8.0: 4363 # icc: Command line remark: option '-MP' not supported 4364 if (grep 'ignoring option' conftest.err || 4365 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4366 am_cv_CC_dependencies_compiler_type=$depmode 4367 break 4368 fi 4369 fi 4370 done 4371 4372 cd .. 4373 rm -rf conftest.dir 4374else 4375 am_cv_CC_dependencies_compiler_type=none 4376fi 4377 4378fi 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4380$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4381CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4382 4383 if 4384 test "x$enable_dependency_tracking" != xno \ 4385 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4386 am__fastdepCC_TRUE= 4387 am__fastdepCC_FALSE='#' 4388else 4389 am__fastdepCC_TRUE='#' 4390 am__fastdepCC_FALSE= 4391fi 4392 4393 4394 4395# POSIX will say in a future version that running "rm -f" with no argument 4396# is OK; and we want to be able to make that assumption in our Makefile 4397# recipes. So use an aggressive probe to check that the usage we want is 4398# actually supported "in the wild" to an acceptable degree. 4399# See automake bug#10828. 4400# To make any issue more visible, cause the running configure to be aborted 4401# by default if the 'rm' program in use doesn't match our expectations; the 4402# user can still override this though. 4403if rm -f && rm -fr && rm -rf; then : OK; else 4404 cat >&2 <<'END' 4405Oops! 4406 4407Your 'rm' program seems unable to run without file operands specified 4408on the command line, even when the '-f' option is present. This is contrary 4409to the behaviour of most rm programs out there, and not conforming with 4410the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4411 4412Please tell bug-automake@gnu.org about your system, including the value 4413of your $PATH and any error possibly output before this message. This 4414can help us improve future automake versions. 4415 4416END 4417 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4418 echo 'Configuration will proceed anyway, since you have set the' >&2 4419 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4420 echo >&2 4421 else 4422 cat >&2 <<'END' 4423Aborting the configuration process, to ensure you take notice of the issue. 4424 4425You can download and install GNU coreutils to get an 'rm' implementation 4426that behaves properly: <http://www.gnu.org/software/coreutils/>. 4427 4428If you want to complete the configuration process using your problematic 4429'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4430to "yes", and re-run configure. 4431 4432END 4433 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4434 fi 4435fi 4436 4437 4438# Initialize libtool 4439# Check whether --enable-static was given. 4440if test "${enable_static+set}" = set; then : 4441 enableval=$enable_static; p=${PACKAGE-default} 4442 case $enableval in 4443 yes) enable_static=yes ;; 4444 no) enable_static=no ;; 4445 *) 4446 enable_static=no 4447 # Look at the argument we got. We use all the common list separators. 4448 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 4449 for pkg in $enableval; do 4450 IFS=$lt_save_ifs 4451 if test "X$pkg" = "X$p"; then 4452 enable_static=yes 4453 fi 4454 done 4455 IFS=$lt_save_ifs 4456 ;; 4457 esac 4458else 4459 enable_static=no 4460fi 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470case `pwd` in 4471 *\ * | *\ *) 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4473$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4474esac 4475 4476 4477 4478macro_version='2.4.6' 4479macro_revision='2.4.6' 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493ltmain=$ac_aux_dir/ltmain.sh 4494 4495# Make sure we can run config.sub. 4496$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4497 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4498 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4500$as_echo_n "checking build system type... " >&6; } 4501if ${ac_cv_build+:} false; then : 4502 $as_echo_n "(cached) " >&6 4503else 4504 ac_build_alias=$build_alias 4505test "x$ac_build_alias" = x && 4506 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4507test "x$ac_build_alias" = x && 4508 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4509ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4510 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4511 4512fi 4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4514$as_echo "$ac_cv_build" >&6; } 4515case $ac_cv_build in 4516*-*-*) ;; 4517*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4518esac 4519build=$ac_cv_build 4520ac_save_IFS=$IFS; IFS='-' 4521set x $ac_cv_build 4522shift 4523build_cpu=$1 4524build_vendor=$2 4525shift; shift 4526# Remember, the first character of IFS is used to create $*, 4527# except with old shells: 4528build_os=$* 4529IFS=$ac_save_IFS 4530case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4531 4532 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4534$as_echo_n "checking host system type... " >&6; } 4535if ${ac_cv_host+:} false; then : 4536 $as_echo_n "(cached) " >&6 4537else 4538 if test "x$host_alias" = x; then 4539 ac_cv_host=$ac_cv_build 4540else 4541 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4542 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4543fi 4544 4545fi 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4547$as_echo "$ac_cv_host" >&6; } 4548case $ac_cv_host in 4549*-*-*) ;; 4550*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4551esac 4552host=$ac_cv_host 4553ac_save_IFS=$IFS; IFS='-' 4554set x $ac_cv_host 4555shift 4556host_cpu=$1 4557host_vendor=$2 4558shift; shift 4559# Remember, the first character of IFS is used to create $*, 4560# except with old shells: 4561host_os=$* 4562IFS=$ac_save_IFS 4563case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4564 4565 4566# Backslashify metacharacters that are still active within 4567# double-quoted strings. 4568sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4569 4570# Same as above, but do not quote variable references. 4571double_quote_subst='s/\(["`\\]\)/\\\1/g' 4572 4573# Sed substitution to delay expansion of an escaped shell variable in a 4574# double_quote_subst'ed string. 4575delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4576 4577# Sed substitution to delay expansion of an escaped single quote. 4578delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4579 4580# Sed substitution to avoid accidental globbing in evaled expressions 4581no_glob_subst='s/\*/\\\*/g' 4582 4583ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4584ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4585ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4586 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4588$as_echo_n "checking how to print strings... " >&6; } 4589# Test print first, because it will be a builtin if present. 4590if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4591 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4592 ECHO='print -r --' 4593elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4594 ECHO='printf %s\n' 4595else 4596 # Use this function as a fallback that always works. 4597 func_fallback_echo () 4598 { 4599 eval 'cat <<_LTECHO_EOF 4600$1 4601_LTECHO_EOF' 4602 } 4603 ECHO='func_fallback_echo' 4604fi 4605 4606# func_echo_all arg... 4607# Invoke $ECHO with all args, space-separated. 4608func_echo_all () 4609{ 4610 $ECHO "" 4611} 4612 4613case $ECHO in 4614 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4615$as_echo "printf" >&6; } ;; 4616 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4617$as_echo "print -r" >&6; } ;; 4618 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4619$as_echo "cat" >&6; } ;; 4620esac 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4636$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4637if ${ac_cv_path_SED+:} false; then : 4638 $as_echo_n "(cached) " >&6 4639else 4640 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4641 for ac_i in 1 2 3 4 5 6 7; do 4642 ac_script="$ac_script$as_nl$ac_script" 4643 done 4644 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4645 { ac_script=; unset ac_script;} 4646 if test -z "$SED"; then 4647 ac_path_SED_found=false 4648 # Loop through the user's path and test for each of PROGNAME-LIST 4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4650for as_dir in $PATH 4651do 4652 IFS=$as_save_IFS 4653 test -z "$as_dir" && as_dir=. 4654 for ac_prog in sed gsed; do 4655 for ac_exec_ext in '' $ac_executable_extensions; do 4656 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4657 as_fn_executable_p "$ac_path_SED" || continue 4658# Check for GNU ac_path_SED and select it if it is found. 4659 # Check for GNU $ac_path_SED 4660case `"$ac_path_SED" --version 2>&1` in 4661*GNU*) 4662 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4663*) 4664 ac_count=0 4665 $as_echo_n 0123456789 >"conftest.in" 4666 while : 4667 do 4668 cat "conftest.in" "conftest.in" >"conftest.tmp" 4669 mv "conftest.tmp" "conftest.in" 4670 cp "conftest.in" "conftest.nl" 4671 $as_echo '' >> "conftest.nl" 4672 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4674 as_fn_arith $ac_count + 1 && ac_count=$as_val 4675 if test $ac_count -gt ${ac_path_SED_max-0}; then 4676 # Best one so far, save it but keep looking for a better one 4677 ac_cv_path_SED="$ac_path_SED" 4678 ac_path_SED_max=$ac_count 4679 fi 4680 # 10*(2^10) chars as input seems more than enough 4681 test $ac_count -gt 10 && break 4682 done 4683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4684esac 4685 4686 $ac_path_SED_found && break 3 4687 done 4688 done 4689 done 4690IFS=$as_save_IFS 4691 if test -z "$ac_cv_path_SED"; then 4692 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4693 fi 4694else 4695 ac_cv_path_SED=$SED 4696fi 4697 4698fi 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4700$as_echo "$ac_cv_path_SED" >&6; } 4701 SED="$ac_cv_path_SED" 4702 rm -f conftest.sed 4703 4704test -z "$SED" && SED=sed 4705Xsed="$SED -e 1s/^X//" 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4718$as_echo_n "checking for fgrep... " >&6; } 4719if ${ac_cv_path_FGREP+:} false; then : 4720 $as_echo_n "(cached) " >&6 4721else 4722 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4723 then ac_cv_path_FGREP="$GREP -F" 4724 else 4725 if test -z "$FGREP"; then 4726 ac_path_FGREP_found=false 4727 # Loop through the user's path and test for each of PROGNAME-LIST 4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4729for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4730do 4731 IFS=$as_save_IFS 4732 test -z "$as_dir" && as_dir=. 4733 for ac_prog in fgrep; do 4734 for ac_exec_ext in '' $ac_executable_extensions; do 4735 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4736 as_fn_executable_p "$ac_path_FGREP" || continue 4737# Check for GNU ac_path_FGREP and select it if it is found. 4738 # Check for GNU $ac_path_FGREP 4739case `"$ac_path_FGREP" --version 2>&1` in 4740*GNU*) 4741 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4742*) 4743 ac_count=0 4744 $as_echo_n 0123456789 >"conftest.in" 4745 while : 4746 do 4747 cat "conftest.in" "conftest.in" >"conftest.tmp" 4748 mv "conftest.tmp" "conftest.in" 4749 cp "conftest.in" "conftest.nl" 4750 $as_echo 'FGREP' >> "conftest.nl" 4751 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4752 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4753 as_fn_arith $ac_count + 1 && ac_count=$as_val 4754 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4755 # Best one so far, save it but keep looking for a better one 4756 ac_cv_path_FGREP="$ac_path_FGREP" 4757 ac_path_FGREP_max=$ac_count 4758 fi 4759 # 10*(2^10) chars as input seems more than enough 4760 test $ac_count -gt 10 && break 4761 done 4762 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4763esac 4764 4765 $ac_path_FGREP_found && break 3 4766 done 4767 done 4768 done 4769IFS=$as_save_IFS 4770 if test -z "$ac_cv_path_FGREP"; then 4771 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4772 fi 4773else 4774 ac_cv_path_FGREP=$FGREP 4775fi 4776 4777 fi 4778fi 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4780$as_echo "$ac_cv_path_FGREP" >&6; } 4781 FGREP="$ac_cv_path_FGREP" 4782 4783 4784test -z "$GREP" && GREP=grep 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804# Check whether --with-gnu-ld was given. 4805if test "${with_gnu_ld+set}" = set; then : 4806 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4807else 4808 with_gnu_ld=no 4809fi 4810 4811ac_prog=ld 4812if test yes = "$GCC"; then 4813 # Check if gcc -print-prog-name=ld gives a path. 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4815$as_echo_n "checking for ld used by $CC... " >&6; } 4816 case $host in 4817 *-*-mingw*) 4818 # gcc leaves a trailing carriage return, which upsets mingw 4819 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4820 *) 4821 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4822 esac 4823 case $ac_prog in 4824 # Accept absolute paths. 4825 [\\/]* | ?:[\\/]*) 4826 re_direlt='/[^/][^/]*/\.\./' 4827 # Canonicalize the pathname of ld 4828 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4829 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4830 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4831 done 4832 test -z "$LD" && LD=$ac_prog 4833 ;; 4834 "") 4835 # If it fails, then pretend we aren't using GCC. 4836 ac_prog=ld 4837 ;; 4838 *) 4839 # If it is relative, then search for the first ld in PATH. 4840 with_gnu_ld=unknown 4841 ;; 4842 esac 4843elif test yes = "$with_gnu_ld"; then 4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4845$as_echo_n "checking for GNU ld... " >&6; } 4846else 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4848$as_echo_n "checking for non-GNU ld... " >&6; } 4849fi 4850if ${lt_cv_path_LD+:} false; then : 4851 $as_echo_n "(cached) " >&6 4852else 4853 if test -z "$LD"; then 4854 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4855 for ac_dir in $PATH; do 4856 IFS=$lt_save_ifs 4857 test -z "$ac_dir" && ac_dir=. 4858 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4859 lt_cv_path_LD=$ac_dir/$ac_prog 4860 # Check to see if the program is GNU ld. I'd rather use --version, 4861 # but apparently some variants of GNU ld only accept -v. 4862 # Break only if it was the GNU/non-GNU ld that we prefer. 4863 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4864 *GNU* | *'with BFD'*) 4865 test no != "$with_gnu_ld" && break 4866 ;; 4867 *) 4868 test yes != "$with_gnu_ld" && break 4869 ;; 4870 esac 4871 fi 4872 done 4873 IFS=$lt_save_ifs 4874else 4875 lt_cv_path_LD=$LD # Let the user override the test with a path. 4876fi 4877fi 4878 4879LD=$lt_cv_path_LD 4880if test -n "$LD"; then 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4882$as_echo "$LD" >&6; } 4883else 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4885$as_echo "no" >&6; } 4886fi 4887test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4889$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4890if ${lt_cv_prog_gnu_ld+:} false; then : 4891 $as_echo_n "(cached) " >&6 4892else 4893 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4894case `$LD -v 2>&1 </dev/null` in 4895*GNU* | *'with BFD'*) 4896 lt_cv_prog_gnu_ld=yes 4897 ;; 4898*) 4899 lt_cv_prog_gnu_ld=no 4900 ;; 4901esac 4902fi 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4904$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4905with_gnu_ld=$lt_cv_prog_gnu_ld 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4916$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4917if ${lt_cv_path_NM+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 if test -n "$NM"; then 4921 # Let the user override the test. 4922 lt_cv_path_NM=$NM 4923else 4924 lt_nm_to_check=${ac_tool_prefix}nm 4925 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4926 lt_nm_to_check="$lt_nm_to_check nm" 4927 fi 4928 for lt_tmp_nm in $lt_nm_to_check; do 4929 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4930 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4931 IFS=$lt_save_ifs 4932 test -z "$ac_dir" && ac_dir=. 4933 tmp_nm=$ac_dir/$lt_tmp_nm 4934 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4935 # Check to see if the nm accepts a BSD-compat flag. 4936 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4937 # nm: unknown option "B" ignored 4938 # Tru64's nm complains that /dev/null is an invalid object file 4939 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4940 case $build_os in 4941 mingw*) lt_bad_file=conftest.nm/nofile ;; 4942 *) lt_bad_file=/dev/null ;; 4943 esac 4944 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4945 *$lt_bad_file* | *'Invalid file or object type'*) 4946 lt_cv_path_NM="$tmp_nm -B" 4947 break 2 4948 ;; 4949 *) 4950 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4951 */dev/null*) 4952 lt_cv_path_NM="$tmp_nm -p" 4953 break 2 4954 ;; 4955 *) 4956 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4957 continue # so that we can try to find one that supports BSD flags 4958 ;; 4959 esac 4960 ;; 4961 esac 4962 fi 4963 done 4964 IFS=$lt_save_ifs 4965 done 4966 : ${lt_cv_path_NM=no} 4967fi 4968fi 4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4970$as_echo "$lt_cv_path_NM" >&6; } 4971if test no != "$lt_cv_path_NM"; then 4972 NM=$lt_cv_path_NM 4973else 4974 # Didn't find any BSD compatible name lister, look for dumpbin. 4975 if test -n "$DUMPBIN"; then : 4976 # Let the user override the test. 4977 else 4978 if test -n "$ac_tool_prefix"; then 4979 for ac_prog in dumpbin "link -dump" 4980 do 4981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4982set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4984$as_echo_n "checking for $ac_word... " >&6; } 4985if ${ac_cv_prog_DUMPBIN+:} false; then : 4986 $as_echo_n "(cached) " >&6 4987else 4988 if test -n "$DUMPBIN"; then 4989 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4990else 4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4992for as_dir in $PATH 4993do 4994 IFS=$as_save_IFS 4995 test -z "$as_dir" && as_dir=. 4996 for ac_exec_ext in '' $ac_executable_extensions; do 4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4998 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5000 break 2 5001 fi 5002done 5003 done 5004IFS=$as_save_IFS 5005 5006fi 5007fi 5008DUMPBIN=$ac_cv_prog_DUMPBIN 5009if test -n "$DUMPBIN"; then 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5011$as_echo "$DUMPBIN" >&6; } 5012else 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5014$as_echo "no" >&6; } 5015fi 5016 5017 5018 test -n "$DUMPBIN" && break 5019 done 5020fi 5021if test -z "$DUMPBIN"; then 5022 ac_ct_DUMPBIN=$DUMPBIN 5023 for ac_prog in dumpbin "link -dump" 5024do 5025 # Extract the first word of "$ac_prog", so it can be a program name with args. 5026set dummy $ac_prog; ac_word=$2 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5028$as_echo_n "checking for $ac_word... " >&6; } 5029if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5030 $as_echo_n "(cached) " >&6 5031else 5032 if test -n "$ac_ct_DUMPBIN"; then 5033 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5034else 5035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5036for as_dir in $PATH 5037do 5038 IFS=$as_save_IFS 5039 test -z "$as_dir" && as_dir=. 5040 for ac_exec_ext in '' $ac_executable_extensions; do 5041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5042 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5044 break 2 5045 fi 5046done 5047 done 5048IFS=$as_save_IFS 5049 5050fi 5051fi 5052ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5053if test -n "$ac_ct_DUMPBIN"; then 5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5055$as_echo "$ac_ct_DUMPBIN" >&6; } 5056else 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5058$as_echo "no" >&6; } 5059fi 5060 5061 5062 test -n "$ac_ct_DUMPBIN" && break 5063done 5064 5065 if test "x$ac_ct_DUMPBIN" = x; then 5066 DUMPBIN=":" 5067 else 5068 case $cross_compiling:$ac_tool_warned in 5069yes:) 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5072ac_tool_warned=yes ;; 5073esac 5074 DUMPBIN=$ac_ct_DUMPBIN 5075 fi 5076fi 5077 5078 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5079 *COFF*) 5080 DUMPBIN="$DUMPBIN -symbols -headers" 5081 ;; 5082 *) 5083 DUMPBIN=: 5084 ;; 5085 esac 5086 fi 5087 5088 if test : != "$DUMPBIN"; then 5089 NM=$DUMPBIN 5090 fi 5091fi 5092test -z "$NM" && NM=nm 5093 5094 5095 5096 5097 5098 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5100$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5101if ${lt_cv_nm_interface+:} false; then : 5102 $as_echo_n "(cached) " >&6 5103else 5104 lt_cv_nm_interface="BSD nm" 5105 echo "int some_variable = 0;" > conftest.$ac_ext 5106 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5107 (eval "$ac_compile" 2>conftest.err) 5108 cat conftest.err >&5 5109 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5110 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5111 cat conftest.err >&5 5112 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5113 cat conftest.out >&5 5114 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5115 lt_cv_nm_interface="MS dumpbin" 5116 fi 5117 rm -f conftest* 5118fi 5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5120$as_echo "$lt_cv_nm_interface" >&6; } 5121 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5123$as_echo_n "checking whether ln -s works... " >&6; } 5124LN_S=$as_ln_s 5125if test "$LN_S" = "ln -s"; then 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5127$as_echo "yes" >&6; } 5128else 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5130$as_echo "no, using $LN_S" >&6; } 5131fi 5132 5133# find the maximum length of command line arguments 5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5135$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5136if ${lt_cv_sys_max_cmd_len+:} false; then : 5137 $as_echo_n "(cached) " >&6 5138else 5139 i=0 5140 teststring=ABCD 5141 5142 case $build_os in 5143 msdosdjgpp*) 5144 # On DJGPP, this test can blow up pretty badly due to problems in libc 5145 # (any single argument exceeding 2000 bytes causes a buffer overrun 5146 # during glob expansion). Even if it were fixed, the result of this 5147 # check would be larger than it should be. 5148 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5149 ;; 5150 5151 gnu*) 5152 # Under GNU Hurd, this test is not required because there is 5153 # no limit to the length of command line arguments. 5154 # Libtool will interpret -1 as no limit whatsoever 5155 lt_cv_sys_max_cmd_len=-1; 5156 ;; 5157 5158 cygwin* | mingw* | cegcc*) 5159 # On Win9x/ME, this test blows up -- it succeeds, but takes 5160 # about 5 minutes as the teststring grows exponentially. 5161 # Worse, since 9x/ME are not pre-emptively multitasking, 5162 # you end up with a "frozen" computer, even though with patience 5163 # the test eventually succeeds (with a max line length of 256k). 5164 # Instead, let's just punt: use the minimum linelength reported by 5165 # all of the supported platforms: 8192 (on NT/2K/XP). 5166 lt_cv_sys_max_cmd_len=8192; 5167 ;; 5168 5169 mint*) 5170 # On MiNT this can take a long time and run out of memory. 5171 lt_cv_sys_max_cmd_len=8192; 5172 ;; 5173 5174 amigaos*) 5175 # On AmigaOS with pdksh, this test takes hours, literally. 5176 # So we just punt and use a minimum line length of 8192. 5177 lt_cv_sys_max_cmd_len=8192; 5178 ;; 5179 5180 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5181 # This has been around since 386BSD, at least. Likely further. 5182 if test -x /sbin/sysctl; then 5183 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5184 elif test -x /usr/sbin/sysctl; then 5185 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5186 else 5187 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5188 fi 5189 # And add a safety zone 5190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5192 ;; 5193 5194 interix*) 5195 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5196 lt_cv_sys_max_cmd_len=196608 5197 ;; 5198 5199 os2*) 5200 # The test takes a long time on OS/2. 5201 lt_cv_sys_max_cmd_len=8192 5202 ;; 5203 5204 osf*) 5205 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5206 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5207 # nice to cause kernel panics so lets avoid the loop below. 5208 # First set a reasonable default. 5209 lt_cv_sys_max_cmd_len=16384 5210 # 5211 if test -x /sbin/sysconfig; then 5212 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5213 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5214 esac 5215 fi 5216 ;; 5217 sco3.2v5*) 5218 lt_cv_sys_max_cmd_len=102400 5219 ;; 5220 sysv5* | sco5v6* | sysv4.2uw2*) 5221 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5222 if test -n "$kargmax"; then 5223 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5224 else 5225 lt_cv_sys_max_cmd_len=32768 5226 fi 5227 ;; 5228 *) 5229 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5230 if test -n "$lt_cv_sys_max_cmd_len" && \ 5231 test undefined != "$lt_cv_sys_max_cmd_len"; then 5232 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5234 else 5235 # Make teststring a little bigger before we do anything with it. 5236 # a 1K string should be a reasonable start. 5237 for i in 1 2 3 4 5 6 7 8; do 5238 teststring=$teststring$teststring 5239 done 5240 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5241 # If test is not a shell built-in, we'll probably end up computing a 5242 # maximum length that is only half of the actual maximum length, but 5243 # we can't tell. 5244 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5245 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5246 test 17 != "$i" # 1/2 MB should be enough 5247 do 5248 i=`expr $i + 1` 5249 teststring=$teststring$teststring 5250 done 5251 # Only check the string length outside the loop. 5252 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5253 teststring= 5254 # Add a significant safety factor because C++ compilers can tack on 5255 # massive amounts of additional arguments before passing them to the 5256 # linker. It appears as though 1/2 is a usable value. 5257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5258 fi 5259 ;; 5260 esac 5261 5262fi 5263 5264if test -n "$lt_cv_sys_max_cmd_len"; then 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5266$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5267else 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5269$as_echo "none" >&6; } 5270fi 5271max_cmd_len=$lt_cv_sys_max_cmd_len 5272 5273 5274 5275 5276 5277 5278: ${CP="cp -f"} 5279: ${MV="mv -f"} 5280: ${RM="rm -f"} 5281 5282if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5283 lt_unset=unset 5284else 5285 lt_unset=false 5286fi 5287 5288 5289 5290 5291 5292# test EBCDIC or ASCII 5293case `echo X|tr X '\101'` in 5294 A) # ASCII based system 5295 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5296 lt_SP2NL='tr \040 \012' 5297 lt_NL2SP='tr \015\012 \040\040' 5298 ;; 5299 *) # EBCDIC based system 5300 lt_SP2NL='tr \100 \n' 5301 lt_NL2SP='tr \r\n \100\100' 5302 ;; 5303esac 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5314$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5315if ${lt_cv_to_host_file_cmd+:} false; then : 5316 $as_echo_n "(cached) " >&6 5317else 5318 case $host in 5319 *-*-mingw* ) 5320 case $build in 5321 *-*-mingw* ) # actually msys 5322 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5323 ;; 5324 *-*-cygwin* ) 5325 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5326 ;; 5327 * ) # otherwise, assume *nix 5328 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5329 ;; 5330 esac 5331 ;; 5332 *-*-cygwin* ) 5333 case $build in 5334 *-*-mingw* ) # actually msys 5335 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5336 ;; 5337 *-*-cygwin* ) 5338 lt_cv_to_host_file_cmd=func_convert_file_noop 5339 ;; 5340 * ) # otherwise, assume *nix 5341 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5342 ;; 5343 esac 5344 ;; 5345 * ) # unhandled hosts (and "normal" native builds) 5346 lt_cv_to_host_file_cmd=func_convert_file_noop 5347 ;; 5348esac 5349 5350fi 5351 5352to_host_file_cmd=$lt_cv_to_host_file_cmd 5353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5354$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5355 5356 5357 5358 5359 5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5361$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5362if ${lt_cv_to_tool_file_cmd+:} false; then : 5363 $as_echo_n "(cached) " >&6 5364else 5365 #assume ordinary cross tools, or native build. 5366lt_cv_to_tool_file_cmd=func_convert_file_noop 5367case $host in 5368 *-*-mingw* ) 5369 case $build in 5370 *-*-mingw* ) # actually msys 5371 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5372 ;; 5373 esac 5374 ;; 5375esac 5376 5377fi 5378 5379to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5381$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5382 5383 5384 5385 5386 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5388$as_echo_n "checking for $LD option to reload object files... " >&6; } 5389if ${lt_cv_ld_reload_flag+:} false; then : 5390 $as_echo_n "(cached) " >&6 5391else 5392 lt_cv_ld_reload_flag='-r' 5393fi 5394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5395$as_echo "$lt_cv_ld_reload_flag" >&6; } 5396reload_flag=$lt_cv_ld_reload_flag 5397case $reload_flag in 5398"" | " "*) ;; 5399*) reload_flag=" $reload_flag" ;; 5400esac 5401reload_cmds='$LD$reload_flag -o $output$reload_objs' 5402case $host_os in 5403 cygwin* | mingw* | pw32* | cegcc*) 5404 if test yes != "$GCC"; then 5405 reload_cmds=false 5406 fi 5407 ;; 5408 darwin*) 5409 if test yes = "$GCC"; then 5410 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5411 else 5412 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5413 fi 5414 ;; 5415esac 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425if test -n "$ac_tool_prefix"; then 5426 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5427set dummy ${ac_tool_prefix}objdump; ac_word=$2 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5429$as_echo_n "checking for $ac_word... " >&6; } 5430if ${ac_cv_prog_OBJDUMP+:} false; then : 5431 $as_echo_n "(cached) " >&6 5432else 5433 if test -n "$OBJDUMP"; then 5434 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5435else 5436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5437for as_dir in $PATH 5438do 5439 IFS=$as_save_IFS 5440 test -z "$as_dir" && as_dir=. 5441 for ac_exec_ext in '' $ac_executable_extensions; do 5442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5443 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5445 break 2 5446 fi 5447done 5448 done 5449IFS=$as_save_IFS 5450 5451fi 5452fi 5453OBJDUMP=$ac_cv_prog_OBJDUMP 5454if test -n "$OBJDUMP"; then 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5456$as_echo "$OBJDUMP" >&6; } 5457else 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5459$as_echo "no" >&6; } 5460fi 5461 5462 5463fi 5464if test -z "$ac_cv_prog_OBJDUMP"; then 5465 ac_ct_OBJDUMP=$OBJDUMP 5466 # Extract the first word of "objdump", so it can be a program name with args. 5467set dummy objdump; ac_word=$2 5468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5469$as_echo_n "checking for $ac_word... " >&6; } 5470if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5471 $as_echo_n "(cached) " >&6 5472else 5473 if test -n "$ac_ct_OBJDUMP"; then 5474 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5475else 5476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5477for as_dir in $PATH 5478do 5479 IFS=$as_save_IFS 5480 test -z "$as_dir" && as_dir=. 5481 for ac_exec_ext in '' $ac_executable_extensions; do 5482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5483 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5485 break 2 5486 fi 5487done 5488 done 5489IFS=$as_save_IFS 5490 5491fi 5492fi 5493ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5494if test -n "$ac_ct_OBJDUMP"; then 5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5496$as_echo "$ac_ct_OBJDUMP" >&6; } 5497else 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5499$as_echo "no" >&6; } 5500fi 5501 5502 if test "x$ac_ct_OBJDUMP" = x; then 5503 OBJDUMP="false" 5504 else 5505 case $cross_compiling:$ac_tool_warned in 5506yes:) 5507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5509ac_tool_warned=yes ;; 5510esac 5511 OBJDUMP=$ac_ct_OBJDUMP 5512 fi 5513else 5514 OBJDUMP="$ac_cv_prog_OBJDUMP" 5515fi 5516 5517test -z "$OBJDUMP" && OBJDUMP=objdump 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5528$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5529if ${lt_cv_deplibs_check_method+:} false; then : 5530 $as_echo_n "(cached) " >&6 5531else 5532 lt_cv_file_magic_cmd='$MAGIC_CMD' 5533lt_cv_file_magic_test_file= 5534lt_cv_deplibs_check_method='unknown' 5535# Need to set the preceding variable on all platforms that support 5536# interlibrary dependencies. 5537# 'none' -- dependencies not supported. 5538# 'unknown' -- same as none, but documents that we really don't know. 5539# 'pass_all' -- all dependencies passed with no checks. 5540# 'test_compile' -- check by making test program. 5541# 'file_magic [[regex]]' -- check by looking for files in library path 5542# that responds to the $file_magic_cmd with a given extended regex. 5543# If you have 'file' or equivalent on your system and you're not sure 5544# whether 'pass_all' will *always* work, you probably want this one. 5545 5546case $host_os in 5547aix[4-9]*) 5548 lt_cv_deplibs_check_method=pass_all 5549 ;; 5550 5551beos*) 5552 lt_cv_deplibs_check_method=pass_all 5553 ;; 5554 5555bsdi[45]*) 5556 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5557 lt_cv_file_magic_cmd='/usr/bin/file -L' 5558 lt_cv_file_magic_test_file=/shlib/libc.so 5559 ;; 5560 5561cygwin*) 5562 # func_win32_libid is a shell function defined in ltmain.sh 5563 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5564 lt_cv_file_magic_cmd='func_win32_libid' 5565 ;; 5566 5567mingw* | pw32*) 5568 # Base MSYS/MinGW do not provide the 'file' command needed by 5569 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5570 # unless we find 'file', for example because we are cross-compiling. 5571 if ( file / ) >/dev/null 2>&1; then 5572 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5573 lt_cv_file_magic_cmd='func_win32_libid' 5574 else 5575 # Keep this pattern in sync with the one in func_win32_libid. 5576 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5577 lt_cv_file_magic_cmd='$OBJDUMP -f' 5578 fi 5579 ;; 5580 5581cegcc*) 5582 # use the weaker test based on 'objdump'. See mingw*. 5583 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5584 lt_cv_file_magic_cmd='$OBJDUMP -f' 5585 ;; 5586 5587darwin* | rhapsody*) 5588 lt_cv_deplibs_check_method=pass_all 5589 ;; 5590 5591freebsd* | dragonfly*) 5592 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5593 case $host_cpu in 5594 i*86 ) 5595 # Not sure whether the presence of OpenBSD here was a mistake. 5596 # Let's accept both of them until this is cleared up. 5597 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5598 lt_cv_file_magic_cmd=/usr/bin/file 5599 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5600 ;; 5601 esac 5602 else 5603 lt_cv_deplibs_check_method=pass_all 5604 fi 5605 ;; 5606 5607haiku*) 5608 lt_cv_deplibs_check_method=pass_all 5609 ;; 5610 5611hpux10.20* | hpux11*) 5612 lt_cv_file_magic_cmd=/usr/bin/file 5613 case $host_cpu in 5614 ia64*) 5615 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5616 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5617 ;; 5618 hppa*64*) 5619 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]' 5620 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5621 ;; 5622 *) 5623 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5624 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5625 ;; 5626 esac 5627 ;; 5628 5629interix[3-9]*) 5630 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5632 ;; 5633 5634irix5* | irix6* | nonstopux*) 5635 case $LD in 5636 *-32|*"-32 ") libmagic=32-bit;; 5637 *-n32|*"-n32 ") libmagic=N32;; 5638 *-64|*"-64 ") libmagic=64-bit;; 5639 *) libmagic=never-match;; 5640 esac 5641 lt_cv_deplibs_check_method=pass_all 5642 ;; 5643 5644# This must be glibc/ELF. 5645linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5646 lt_cv_deplibs_check_method=pass_all 5647 ;; 5648 5649netbsd*) 5650 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5652 else 5653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5654 fi 5655 ;; 5656 5657newos6*) 5658 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5659 lt_cv_file_magic_cmd=/usr/bin/file 5660 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5661 ;; 5662 5663*nto* | *qnx*) 5664 lt_cv_deplibs_check_method=pass_all 5665 ;; 5666 5667openbsd* | bitrig*) 5668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5670 else 5671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5672 fi 5673 ;; 5674 5675osf3* | osf4* | osf5*) 5676 lt_cv_deplibs_check_method=pass_all 5677 ;; 5678 5679rdos*) 5680 lt_cv_deplibs_check_method=pass_all 5681 ;; 5682 5683solaris*) 5684 lt_cv_deplibs_check_method=pass_all 5685 ;; 5686 5687sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5688 lt_cv_deplibs_check_method=pass_all 5689 ;; 5690 5691sysv4 | sysv4.3*) 5692 case $host_vendor in 5693 motorola) 5694 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]' 5695 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5696 ;; 5697 ncr) 5698 lt_cv_deplibs_check_method=pass_all 5699 ;; 5700 sequent) 5701 lt_cv_file_magic_cmd='/bin/file' 5702 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5703 ;; 5704 sni) 5705 lt_cv_file_magic_cmd='/bin/file' 5706 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5707 lt_cv_file_magic_test_file=/lib/libc.so 5708 ;; 5709 siemens) 5710 lt_cv_deplibs_check_method=pass_all 5711 ;; 5712 pc) 5713 lt_cv_deplibs_check_method=pass_all 5714 ;; 5715 esac 5716 ;; 5717 5718tpf*) 5719 lt_cv_deplibs_check_method=pass_all 5720 ;; 5721os2*) 5722 lt_cv_deplibs_check_method=pass_all 5723 ;; 5724esac 5725 5726fi 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5728$as_echo "$lt_cv_deplibs_check_method" >&6; } 5729 5730file_magic_glob= 5731want_nocaseglob=no 5732if test "$build" = "$host"; then 5733 case $host_os in 5734 mingw* | pw32*) 5735 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5736 want_nocaseglob=yes 5737 else 5738 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5739 fi 5740 ;; 5741 esac 5742fi 5743 5744file_magic_cmd=$lt_cv_file_magic_cmd 5745deplibs_check_method=$lt_cv_deplibs_check_method 5746test -z "$deplibs_check_method" && deplibs_check_method=unknown 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769if test -n "$ac_tool_prefix"; then 5770 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5771set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5773$as_echo_n "checking for $ac_word... " >&6; } 5774if ${ac_cv_prog_DLLTOOL+:} false; then : 5775 $as_echo_n "(cached) " >&6 5776else 5777 if test -n "$DLLTOOL"; then 5778 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5779else 5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5781for as_dir in $PATH 5782do 5783 IFS=$as_save_IFS 5784 test -z "$as_dir" && as_dir=. 5785 for ac_exec_ext in '' $ac_executable_extensions; do 5786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5787 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5789 break 2 5790 fi 5791done 5792 done 5793IFS=$as_save_IFS 5794 5795fi 5796fi 5797DLLTOOL=$ac_cv_prog_DLLTOOL 5798if test -n "$DLLTOOL"; then 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5800$as_echo "$DLLTOOL" >&6; } 5801else 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5803$as_echo "no" >&6; } 5804fi 5805 5806 5807fi 5808if test -z "$ac_cv_prog_DLLTOOL"; then 5809 ac_ct_DLLTOOL=$DLLTOOL 5810 # Extract the first word of "dlltool", so it can be a program name with args. 5811set dummy dlltool; ac_word=$2 5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5813$as_echo_n "checking for $ac_word... " >&6; } 5814if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5815 $as_echo_n "(cached) " >&6 5816else 5817 if test -n "$ac_ct_DLLTOOL"; then 5818 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5819else 5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5821for as_dir in $PATH 5822do 5823 IFS=$as_save_IFS 5824 test -z "$as_dir" && as_dir=. 5825 for ac_exec_ext in '' $ac_executable_extensions; do 5826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5827 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5829 break 2 5830 fi 5831done 5832 done 5833IFS=$as_save_IFS 5834 5835fi 5836fi 5837ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5838if test -n "$ac_ct_DLLTOOL"; then 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5840$as_echo "$ac_ct_DLLTOOL" >&6; } 5841else 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5843$as_echo "no" >&6; } 5844fi 5845 5846 if test "x$ac_ct_DLLTOOL" = x; then 5847 DLLTOOL="false" 5848 else 5849 case $cross_compiling:$ac_tool_warned in 5850yes:) 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5853ac_tool_warned=yes ;; 5854esac 5855 DLLTOOL=$ac_ct_DLLTOOL 5856 fi 5857else 5858 DLLTOOL="$ac_cv_prog_DLLTOOL" 5859fi 5860 5861test -z "$DLLTOOL" && DLLTOOL=dlltool 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5873$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5874if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5875 $as_echo_n "(cached) " >&6 5876else 5877 lt_cv_sharedlib_from_linklib_cmd='unknown' 5878 5879case $host_os in 5880cygwin* | mingw* | pw32* | cegcc*) 5881 # two different shell functions defined in ltmain.sh; 5882 # decide which one to use based on capabilities of $DLLTOOL 5883 case `$DLLTOOL --help 2>&1` in 5884 *--identify-strict*) 5885 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5886 ;; 5887 *) 5888 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5889 ;; 5890 esac 5891 ;; 5892*) 5893 # fallback: assume linklib IS sharedlib 5894 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5895 ;; 5896esac 5897 5898fi 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5900$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5901sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5902test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5903 5904 5905 5906 5907 5908 5909 5910if test -n "$ac_tool_prefix"; then 5911 for ac_prog in ar 5912 do 5913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5914set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5916$as_echo_n "checking for $ac_word... " >&6; } 5917if ${ac_cv_prog_AR+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919else 5920 if test -n "$AR"; then 5921 ac_cv_prog_AR="$AR" # Let the user override the test. 5922else 5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5924for as_dir in $PATH 5925do 5926 IFS=$as_save_IFS 5927 test -z "$as_dir" && as_dir=. 5928 for ac_exec_ext in '' $ac_executable_extensions; do 5929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5930 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5932 break 2 5933 fi 5934done 5935 done 5936IFS=$as_save_IFS 5937 5938fi 5939fi 5940AR=$ac_cv_prog_AR 5941if test -n "$AR"; then 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5943$as_echo "$AR" >&6; } 5944else 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5946$as_echo "no" >&6; } 5947fi 5948 5949 5950 test -n "$AR" && break 5951 done 5952fi 5953if test -z "$AR"; then 5954 ac_ct_AR=$AR 5955 for ac_prog in ar 5956do 5957 # Extract the first word of "$ac_prog", so it can be a program name with args. 5958set dummy $ac_prog; ac_word=$2 5959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5960$as_echo_n "checking for $ac_word... " >&6; } 5961if ${ac_cv_prog_ac_ct_AR+:} false; then : 5962 $as_echo_n "(cached) " >&6 5963else 5964 if test -n "$ac_ct_AR"; then 5965 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5966else 5967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5968for as_dir in $PATH 5969do 5970 IFS=$as_save_IFS 5971 test -z "$as_dir" && as_dir=. 5972 for ac_exec_ext in '' $ac_executable_extensions; do 5973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5974 ac_cv_prog_ac_ct_AR="$ac_prog" 5975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5976 break 2 5977 fi 5978done 5979 done 5980IFS=$as_save_IFS 5981 5982fi 5983fi 5984ac_ct_AR=$ac_cv_prog_ac_ct_AR 5985if test -n "$ac_ct_AR"; then 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5987$as_echo "$ac_ct_AR" >&6; } 5988else 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5990$as_echo "no" >&6; } 5991fi 5992 5993 5994 test -n "$ac_ct_AR" && break 5995done 5996 5997 if test "x$ac_ct_AR" = x; then 5998 AR="false" 5999 else 6000 case $cross_compiling:$ac_tool_warned in 6001yes:) 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6004ac_tool_warned=yes ;; 6005esac 6006 AR=$ac_ct_AR 6007 fi 6008fi 6009 6010: ${AR=ar} 6011: ${AR_FLAGS=cru} 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6024$as_echo_n "checking for archiver @FILE support... " >&6; } 6025if ${lt_cv_ar_at_file+:} false; then : 6026 $as_echo_n "(cached) " >&6 6027else 6028 lt_cv_ar_at_file=no 6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6030/* end confdefs.h. */ 6031 6032int 6033main () 6034{ 6035 6036 ; 6037 return 0; 6038} 6039_ACEOF 6040if ac_fn_c_try_compile "$LINENO"; then : 6041 echo conftest.$ac_objext > conftest.lst 6042 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6044 (eval $lt_ar_try) 2>&5 6045 ac_status=$? 6046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6047 test $ac_status = 0; } 6048 if test 0 -eq "$ac_status"; then 6049 # Ensure the archiver fails upon bogus file names. 6050 rm -f conftest.$ac_objext libconftest.a 6051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6052 (eval $lt_ar_try) 2>&5 6053 ac_status=$? 6054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6055 test $ac_status = 0; } 6056 if test 0 -ne "$ac_status"; then 6057 lt_cv_ar_at_file=@ 6058 fi 6059 fi 6060 rm -f conftest.* libconftest.a 6061 6062fi 6063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6064 6065fi 6066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6067$as_echo "$lt_cv_ar_at_file" >&6; } 6068 6069if test no = "$lt_cv_ar_at_file"; then 6070 archiver_list_spec= 6071else 6072 archiver_list_spec=$lt_cv_ar_at_file 6073fi 6074 6075 6076 6077 6078 6079 6080 6081if test -n "$ac_tool_prefix"; then 6082 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6083set dummy ${ac_tool_prefix}strip; ac_word=$2 6084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6085$as_echo_n "checking for $ac_word... " >&6; } 6086if ${ac_cv_prog_STRIP+:} false; then : 6087 $as_echo_n "(cached) " >&6 6088else 6089 if test -n "$STRIP"; then 6090 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6091else 6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6093for as_dir in $PATH 6094do 6095 IFS=$as_save_IFS 6096 test -z "$as_dir" && as_dir=. 6097 for ac_exec_ext in '' $ac_executable_extensions; do 6098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6099 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6101 break 2 6102 fi 6103done 6104 done 6105IFS=$as_save_IFS 6106 6107fi 6108fi 6109STRIP=$ac_cv_prog_STRIP 6110if test -n "$STRIP"; then 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6112$as_echo "$STRIP" >&6; } 6113else 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6115$as_echo "no" >&6; } 6116fi 6117 6118 6119fi 6120if test -z "$ac_cv_prog_STRIP"; then 6121 ac_ct_STRIP=$STRIP 6122 # Extract the first word of "strip", so it can be a program name with args. 6123set dummy strip; ac_word=$2 6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6125$as_echo_n "checking for $ac_word... " >&6; } 6126if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6127 $as_echo_n "(cached) " >&6 6128else 6129 if test -n "$ac_ct_STRIP"; then 6130 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6131else 6132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6133for as_dir in $PATH 6134do 6135 IFS=$as_save_IFS 6136 test -z "$as_dir" && as_dir=. 6137 for ac_exec_ext in '' $ac_executable_extensions; do 6138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6139 ac_cv_prog_ac_ct_STRIP="strip" 6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6141 break 2 6142 fi 6143done 6144 done 6145IFS=$as_save_IFS 6146 6147fi 6148fi 6149ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6150if test -n "$ac_ct_STRIP"; then 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6152$as_echo "$ac_ct_STRIP" >&6; } 6153else 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6155$as_echo "no" >&6; } 6156fi 6157 6158 if test "x$ac_ct_STRIP" = x; then 6159 STRIP=":" 6160 else 6161 case $cross_compiling:$ac_tool_warned in 6162yes:) 6163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6165ac_tool_warned=yes ;; 6166esac 6167 STRIP=$ac_ct_STRIP 6168 fi 6169else 6170 STRIP="$ac_cv_prog_STRIP" 6171fi 6172 6173test -z "$STRIP" && STRIP=: 6174 6175 6176 6177 6178 6179 6180if test -n "$ac_tool_prefix"; then 6181 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6182set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6184$as_echo_n "checking for $ac_word... " >&6; } 6185if ${ac_cv_prog_RANLIB+:} false; then : 6186 $as_echo_n "(cached) " >&6 6187else 6188 if test -n "$RANLIB"; then 6189 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6190else 6191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6192for as_dir in $PATH 6193do 6194 IFS=$as_save_IFS 6195 test -z "$as_dir" && as_dir=. 6196 for ac_exec_ext in '' $ac_executable_extensions; do 6197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6198 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6200 break 2 6201 fi 6202done 6203 done 6204IFS=$as_save_IFS 6205 6206fi 6207fi 6208RANLIB=$ac_cv_prog_RANLIB 6209if test -n "$RANLIB"; then 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6211$as_echo "$RANLIB" >&6; } 6212else 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6214$as_echo "no" >&6; } 6215fi 6216 6217 6218fi 6219if test -z "$ac_cv_prog_RANLIB"; then 6220 ac_ct_RANLIB=$RANLIB 6221 # Extract the first word of "ranlib", so it can be a program name with args. 6222set dummy ranlib; ac_word=$2 6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6224$as_echo_n "checking for $ac_word... " >&6; } 6225if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6226 $as_echo_n "(cached) " >&6 6227else 6228 if test -n "$ac_ct_RANLIB"; then 6229 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6230else 6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6232for as_dir in $PATH 6233do 6234 IFS=$as_save_IFS 6235 test -z "$as_dir" && as_dir=. 6236 for ac_exec_ext in '' $ac_executable_extensions; do 6237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6238 ac_cv_prog_ac_ct_RANLIB="ranlib" 6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6240 break 2 6241 fi 6242done 6243 done 6244IFS=$as_save_IFS 6245 6246fi 6247fi 6248ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6249if test -n "$ac_ct_RANLIB"; then 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6251$as_echo "$ac_ct_RANLIB" >&6; } 6252else 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6254$as_echo "no" >&6; } 6255fi 6256 6257 if test "x$ac_ct_RANLIB" = x; then 6258 RANLIB=":" 6259 else 6260 case $cross_compiling:$ac_tool_warned in 6261yes:) 6262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6264ac_tool_warned=yes ;; 6265esac 6266 RANLIB=$ac_ct_RANLIB 6267 fi 6268else 6269 RANLIB="$ac_cv_prog_RANLIB" 6270fi 6271 6272test -z "$RANLIB" && RANLIB=: 6273 6274 6275 6276 6277 6278 6279# Determine commands to create old-style static archives. 6280old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6281old_postinstall_cmds='chmod 644 $oldlib' 6282old_postuninstall_cmds= 6283 6284if test -n "$RANLIB"; then 6285 case $host_os in 6286 bitrig* | openbsd*) 6287 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6288 ;; 6289 *) 6290 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6291 ;; 6292 esac 6293 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6294fi 6295 6296case $host_os in 6297 darwin*) 6298 lock_old_archive_extraction=yes ;; 6299 *) 6300 lock_old_archive_extraction=no ;; 6301esac 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341# If no C compiler was specified, use CC. 6342LTCC=${LTCC-"$CC"} 6343 6344# If no C compiler flags were specified, use CFLAGS. 6345LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6346 6347# Allow CC to be a program name with arguments. 6348compiler=$CC 6349 6350 6351# Check for command to grab the raw symbol name followed by C symbol from nm. 6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6353$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6354if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6355 $as_echo_n "(cached) " >&6 6356else 6357 6358# These are sane defaults that work on at least a few old systems. 6359# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6360 6361# Character class describing NM global symbol codes. 6362symcode='[BCDEGRST]' 6363 6364# Regexp to match symbols that can be accessed directly from C. 6365sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6366 6367# Define system-specific variables. 6368case $host_os in 6369aix*) 6370 symcode='[BCDT]' 6371 ;; 6372cygwin* | mingw* | pw32* | cegcc*) 6373 symcode='[ABCDGISTW]' 6374 ;; 6375hpux*) 6376 if test ia64 = "$host_cpu"; then 6377 symcode='[ABCDEGRST]' 6378 fi 6379 ;; 6380irix* | nonstopux*) 6381 symcode='[BCDEGRST]' 6382 ;; 6383osf*) 6384 symcode='[BCDEGQRST]' 6385 ;; 6386solaris*) 6387 symcode='[BDRT]' 6388 ;; 6389sco3.2v5*) 6390 symcode='[DT]' 6391 ;; 6392sysv4.2uw2*) 6393 symcode='[DT]' 6394 ;; 6395sysv5* | sco5v6* | unixware* | OpenUNIX*) 6396 symcode='[ABDT]' 6397 ;; 6398sysv4) 6399 symcode='[DFNSTU]' 6400 ;; 6401esac 6402 6403# If we're using GNU nm, then use its standard symbol codes. 6404case `$NM -V 2>&1` in 6405*GNU* | *'with BFD'*) 6406 symcode='[ABCDGIRSTW]' ;; 6407esac 6408 6409if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6410 # Gets list of data symbols to import. 6411 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6412 # Adjust the below global symbol transforms to fixup imported variables. 6413 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6414 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6415 lt_c_name_lib_hook="\ 6416 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6417 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6418else 6419 # Disable hooks by default. 6420 lt_cv_sys_global_symbol_to_import= 6421 lt_cdecl_hook= 6422 lt_c_name_hook= 6423 lt_c_name_lib_hook= 6424fi 6425 6426# Transform an extracted symbol line into a proper C declaration. 6427# Some systems (esp. on ia64) link data and code symbols differently, 6428# so use this general approach. 6429lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6430$lt_cdecl_hook\ 6431" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6432" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6433 6434# Transform an extracted symbol line into symbol name and symbol address 6435lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6436$lt_c_name_hook\ 6437" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6438" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6439 6440# Transform an extracted symbol line into symbol name with lib prefix and 6441# symbol address. 6442lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6443$lt_c_name_lib_hook\ 6444" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6445" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6446" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6447 6448# Handle CRLF in mingw tool chain 6449opt_cr= 6450case $build_os in 6451mingw*) 6452 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6453 ;; 6454esac 6455 6456# Try without a prefix underscore, then with it. 6457for ac_symprfx in "" "_"; do 6458 6459 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6460 symxfrm="\\1 $ac_symprfx\\2 \\2" 6461 6462 # Write the raw and C identifiers. 6463 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6464 # Fake it for dumpbin and say T for any non-static function, 6465 # D for any global variable and I for any imported variable. 6466 # Also find C++ and __fastcall symbols from MSVC++, 6467 # which start with @ or ?. 6468 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6469" {last_section=section; section=\$ 3};"\ 6470" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6471" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6472" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6473" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6474" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6475" \$ 0!~/External *\|/{next};"\ 6476" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6477" {if(hide[section]) next};"\ 6478" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6479" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6480" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6481" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6482" ' prfx=^$ac_symprfx" 6483 else 6484 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6485 fi 6486 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6487 6488 # Check to see that the pipe works correctly. 6489 pipe_works=no 6490 6491 rm -f conftest* 6492 cat > conftest.$ac_ext <<_LT_EOF 6493#ifdef __cplusplus 6494extern "C" { 6495#endif 6496char nm_test_var; 6497void nm_test_func(void); 6498void nm_test_func(void){} 6499#ifdef __cplusplus 6500} 6501#endif 6502int main(){nm_test_var='a';nm_test_func();return(0);} 6503_LT_EOF 6504 6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6506 (eval $ac_compile) 2>&5 6507 ac_status=$? 6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6509 test $ac_status = 0; }; then 6510 # Now try to grab the symbols. 6511 nlist=conftest.nm 6512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6513 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6514 ac_status=$? 6515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6516 test $ac_status = 0; } && test -s "$nlist"; then 6517 # Try sorting and uniquifying the output. 6518 if sort "$nlist" | uniq > "$nlist"T; then 6519 mv -f "$nlist"T "$nlist" 6520 else 6521 rm -f "$nlist"T 6522 fi 6523 6524 # Make sure that we snagged all the symbols we need. 6525 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6526 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6527 cat <<_LT_EOF > conftest.$ac_ext 6528/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6529#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6530/* DATA imports from DLLs on WIN32 can't be const, because runtime 6531 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6532# define LT_DLSYM_CONST 6533#elif defined __osf__ 6534/* This system does not cope well with relocations in const data. */ 6535# define LT_DLSYM_CONST 6536#else 6537# define LT_DLSYM_CONST const 6538#endif 6539 6540#ifdef __cplusplus 6541extern "C" { 6542#endif 6543 6544_LT_EOF 6545 # Now generate the symbol file. 6546 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6547 6548 cat <<_LT_EOF >> conftest.$ac_ext 6549 6550/* The mapping between symbol names and symbols. */ 6551LT_DLSYM_CONST struct { 6552 const char *name; 6553 void *address; 6554} 6555lt__PROGRAM__LTX_preloaded_symbols[] = 6556{ 6557 { "@PROGRAM@", (void *) 0 }, 6558_LT_EOF 6559 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6560 cat <<\_LT_EOF >> conftest.$ac_ext 6561 {0, (void *) 0} 6562}; 6563 6564/* This works around a problem in FreeBSD linker */ 6565#ifdef FREEBSD_WORKAROUND 6566static const void *lt_preloaded_setup() { 6567 return lt__PROGRAM__LTX_preloaded_symbols; 6568} 6569#endif 6570 6571#ifdef __cplusplus 6572} 6573#endif 6574_LT_EOF 6575 # Now try linking the two files. 6576 mv conftest.$ac_objext conftstm.$ac_objext 6577 lt_globsym_save_LIBS=$LIBS 6578 lt_globsym_save_CFLAGS=$CFLAGS 6579 LIBS=conftstm.$ac_objext 6580 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6582 (eval $ac_link) 2>&5 6583 ac_status=$? 6584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6585 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6586 pipe_works=yes 6587 fi 6588 LIBS=$lt_globsym_save_LIBS 6589 CFLAGS=$lt_globsym_save_CFLAGS 6590 else 6591 echo "cannot find nm_test_func in $nlist" >&5 6592 fi 6593 else 6594 echo "cannot find nm_test_var in $nlist" >&5 6595 fi 6596 else 6597 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6598 fi 6599 else 6600 echo "$progname: failed program was:" >&5 6601 cat conftest.$ac_ext >&5 6602 fi 6603 rm -rf conftest* conftst* 6604 6605 # Do not use the global_symbol_pipe unless it works. 6606 if test yes = "$pipe_works"; then 6607 break 6608 else 6609 lt_cv_sys_global_symbol_pipe= 6610 fi 6611done 6612 6613fi 6614 6615if test -z "$lt_cv_sys_global_symbol_pipe"; then 6616 lt_cv_sys_global_symbol_to_cdecl= 6617fi 6618if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6620$as_echo "failed" >&6; } 6621else 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6623$as_echo "ok" >&6; } 6624fi 6625 6626# Response file support. 6627if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6628 nm_file_list_spec='@' 6629elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6630 nm_file_list_spec='@' 6631fi 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6670$as_echo_n "checking for sysroot... " >&6; } 6671 6672# Check whether --with-sysroot was given. 6673if test "${with_sysroot+set}" = set; then : 6674 withval=$with_sysroot; 6675else 6676 with_sysroot=no 6677fi 6678 6679 6680lt_sysroot= 6681case $with_sysroot in #( 6682 yes) 6683 if test yes = "$GCC"; then 6684 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6685 fi 6686 ;; #( 6687 /*) 6688 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6689 ;; #( 6690 no|'') 6691 ;; #( 6692 *) 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6694$as_echo "$with_sysroot" >&6; } 6695 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6696 ;; 6697esac 6698 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6700$as_echo "${lt_sysroot:-no}" >&6; } 6701 6702 6703 6704 6705 6706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6707$as_echo_n "checking for a working dd... " >&6; } 6708if ${ac_cv_path_lt_DD+:} false; then : 6709 $as_echo_n "(cached) " >&6 6710else 6711 printf 0123456789abcdef0123456789abcdef >conftest.i 6712cat conftest.i conftest.i >conftest2.i 6713: ${lt_DD:=$DD} 6714if test -z "$lt_DD"; then 6715 ac_path_lt_DD_found=false 6716 # Loop through the user's path and test for each of PROGNAME-LIST 6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6718for as_dir in $PATH 6719do 6720 IFS=$as_save_IFS 6721 test -z "$as_dir" && as_dir=. 6722 for ac_prog in dd; do 6723 for ac_exec_ext in '' $ac_executable_extensions; do 6724 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6725 as_fn_executable_p "$ac_path_lt_DD" || continue 6726if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6727 cmp -s conftest.i conftest.out \ 6728 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6729fi 6730 $ac_path_lt_DD_found && break 3 6731 done 6732 done 6733 done 6734IFS=$as_save_IFS 6735 if test -z "$ac_cv_path_lt_DD"; then 6736 : 6737 fi 6738else 6739 ac_cv_path_lt_DD=$lt_DD 6740fi 6741 6742rm -f conftest.i conftest2.i conftest.out 6743fi 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6745$as_echo "$ac_cv_path_lt_DD" >&6; } 6746 6747 6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6749$as_echo_n "checking how to truncate binary pipes... " >&6; } 6750if ${lt_cv_truncate_bin+:} false; then : 6751 $as_echo_n "(cached) " >&6 6752else 6753 printf 0123456789abcdef0123456789abcdef >conftest.i 6754cat conftest.i conftest.i >conftest2.i 6755lt_cv_truncate_bin= 6756if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6757 cmp -s conftest.i conftest.out \ 6758 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6759fi 6760rm -f conftest.i conftest2.i conftest.out 6761test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6762fi 6763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6764$as_echo "$lt_cv_truncate_bin" >&6; } 6765 6766 6767 6768 6769 6770 6771 6772# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6773func_cc_basename () 6774{ 6775 for cc_temp in $*""; do 6776 case $cc_temp in 6777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6779 \-*) ;; 6780 *) break;; 6781 esac 6782 done 6783 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6784} 6785 6786# Check whether --enable-libtool-lock was given. 6787if test "${enable_libtool_lock+set}" = set; then : 6788 enableval=$enable_libtool_lock; 6789fi 6790 6791test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6792 6793# Some flags need to be propagated to the compiler or linker for good 6794# libtool support. 6795case $host in 6796ia64-*-hpux*) 6797 # Find out what ABI is being produced by ac_compile, and set mode 6798 # options accordingly. 6799 echo 'int i;' > conftest.$ac_ext 6800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6801 (eval $ac_compile) 2>&5 6802 ac_status=$? 6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6804 test $ac_status = 0; }; then 6805 case `/usr/bin/file conftest.$ac_objext` in 6806 *ELF-32*) 6807 HPUX_IA64_MODE=32 6808 ;; 6809 *ELF-64*) 6810 HPUX_IA64_MODE=64 6811 ;; 6812 esac 6813 fi 6814 rm -rf conftest* 6815 ;; 6816*-*-irix6*) 6817 # Find out what ABI is being produced by ac_compile, and set linker 6818 # options accordingly. 6819 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6821 (eval $ac_compile) 2>&5 6822 ac_status=$? 6823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6824 test $ac_status = 0; }; then 6825 if test yes = "$lt_cv_prog_gnu_ld"; then 6826 case `/usr/bin/file conftest.$ac_objext` in 6827 *32-bit*) 6828 LD="${LD-ld} -melf32bsmip" 6829 ;; 6830 *N32*) 6831 LD="${LD-ld} -melf32bmipn32" 6832 ;; 6833 *64-bit*) 6834 LD="${LD-ld} -melf64bmip" 6835 ;; 6836 esac 6837 else 6838 case `/usr/bin/file conftest.$ac_objext` in 6839 *32-bit*) 6840 LD="${LD-ld} -32" 6841 ;; 6842 *N32*) 6843 LD="${LD-ld} -n32" 6844 ;; 6845 *64-bit*) 6846 LD="${LD-ld} -64" 6847 ;; 6848 esac 6849 fi 6850 fi 6851 rm -rf conftest* 6852 ;; 6853 6854mips64*-*linux*) 6855 # Find out what ABI is being produced by ac_compile, and set linker 6856 # options accordingly. 6857 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6859 (eval $ac_compile) 2>&5 6860 ac_status=$? 6861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6862 test $ac_status = 0; }; then 6863 emul=elf 6864 case `/usr/bin/file conftest.$ac_objext` in 6865 *32-bit*) 6866 emul="${emul}32" 6867 ;; 6868 *64-bit*) 6869 emul="${emul}64" 6870 ;; 6871 esac 6872 case `/usr/bin/file conftest.$ac_objext` in 6873 *MSB*) 6874 emul="${emul}btsmip" 6875 ;; 6876 *LSB*) 6877 emul="${emul}ltsmip" 6878 ;; 6879 esac 6880 case `/usr/bin/file conftest.$ac_objext` in 6881 *N32*) 6882 emul="${emul}n32" 6883 ;; 6884 esac 6885 LD="${LD-ld} -m $emul" 6886 fi 6887 rm -rf conftest* 6888 ;; 6889 6890x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6891s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6892 # Find out what ABI is being produced by ac_compile, and set linker 6893 # options accordingly. Note that the listed cases only cover the 6894 # situations where additional linker options are needed (such as when 6895 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6896 # vice versa); the common cases where no linker options are needed do 6897 # not appear in the list. 6898 echo 'int i;' > conftest.$ac_ext 6899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6900 (eval $ac_compile) 2>&5 6901 ac_status=$? 6902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6903 test $ac_status = 0; }; then 6904 case `/usr/bin/file conftest.o` in 6905 *32-bit*) 6906 case $host in 6907 x86_64-*kfreebsd*-gnu) 6908 LD="${LD-ld} -m elf_i386_fbsd" 6909 ;; 6910 x86_64-*linux*) 6911 case `/usr/bin/file conftest.o` in 6912 *x86-64*) 6913 LD="${LD-ld} -m elf32_x86_64" 6914 ;; 6915 *) 6916 LD="${LD-ld} -m elf_i386" 6917 ;; 6918 esac 6919 ;; 6920 powerpc64le-*linux*) 6921 LD="${LD-ld} -m elf32lppclinux" 6922 ;; 6923 powerpc64-*linux*) 6924 LD="${LD-ld} -m elf32ppclinux" 6925 ;; 6926 s390x-*linux*) 6927 LD="${LD-ld} -m elf_s390" 6928 ;; 6929 sparc64-*linux*) 6930 LD="${LD-ld} -m elf32_sparc" 6931 ;; 6932 esac 6933 ;; 6934 *64-bit*) 6935 case $host in 6936 x86_64-*kfreebsd*-gnu) 6937 LD="${LD-ld} -m elf_x86_64_fbsd" 6938 ;; 6939 x86_64-*linux*) 6940 LD="${LD-ld} -m elf_x86_64" 6941 ;; 6942 powerpcle-*linux*|powerpc64le-*linux*) 6943 LD="${LD-ld} -m elf64lppc" 6944 ;; 6945 powerpc-*linux*|powerpc64-*linux*) 6946 LD="${LD-ld} -m elf64ppc" 6947 ;; 6948 s390*-*linux*|s390*-*tpf*) 6949 LD="${LD-ld} -m elf64_s390" 6950 ;; 6951 sparc*-*linux*) 6952 LD="${LD-ld} -m elf64_sparc" 6953 ;; 6954 esac 6955 ;; 6956 esac 6957 fi 6958 rm -rf conftest* 6959 ;; 6960 6961*-*-sco3.2v5*) 6962 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6963 SAVE_CFLAGS=$CFLAGS 6964 CFLAGS="$CFLAGS -belf" 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6966$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6967if ${lt_cv_cc_needs_belf+:} false; then : 6968 $as_echo_n "(cached) " >&6 6969else 6970 ac_ext=c 6971ac_cpp='$CPP $CPPFLAGS' 6972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6974ac_compiler_gnu=$ac_cv_c_compiler_gnu 6975 6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6977/* end confdefs.h. */ 6978 6979int 6980main () 6981{ 6982 6983 ; 6984 return 0; 6985} 6986_ACEOF 6987if ac_fn_c_try_link "$LINENO"; then : 6988 lt_cv_cc_needs_belf=yes 6989else 6990 lt_cv_cc_needs_belf=no 6991fi 6992rm -f core conftest.err conftest.$ac_objext \ 6993 conftest$ac_exeext conftest.$ac_ext 6994 ac_ext=c 6995ac_cpp='$CPP $CPPFLAGS' 6996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6998ac_compiler_gnu=$ac_cv_c_compiler_gnu 6999 7000fi 7001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7002$as_echo "$lt_cv_cc_needs_belf" >&6; } 7003 if test yes != "$lt_cv_cc_needs_belf"; then 7004 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7005 CFLAGS=$SAVE_CFLAGS 7006 fi 7007 ;; 7008*-*solaris*) 7009 # Find out what ABI is being produced by ac_compile, and set linker 7010 # options accordingly. 7011 echo 'int i;' > conftest.$ac_ext 7012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7013 (eval $ac_compile) 2>&5 7014 ac_status=$? 7015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7016 test $ac_status = 0; }; then 7017 case `/usr/bin/file conftest.o` in 7018 *64-bit*) 7019 case $lt_cv_prog_gnu_ld in 7020 yes*) 7021 case $host in 7022 i?86-*-solaris*|x86_64-*-solaris*) 7023 LD="${LD-ld} -m elf_x86_64" 7024 ;; 7025 sparc*-*-solaris*) 7026 LD="${LD-ld} -m elf64_sparc" 7027 ;; 7028 esac 7029 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7030 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7031 LD=${LD-ld}_sol2 7032 fi 7033 ;; 7034 *) 7035 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7036 LD="${LD-ld} -64" 7037 fi 7038 ;; 7039 esac 7040 ;; 7041 esac 7042 fi 7043 rm -rf conftest* 7044 ;; 7045esac 7046 7047need_locks=$enable_libtool_lock 7048 7049if test -n "$ac_tool_prefix"; then 7050 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7051set dummy ${ac_tool_prefix}mt; ac_word=$2 7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7053$as_echo_n "checking for $ac_word... " >&6; } 7054if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7055 $as_echo_n "(cached) " >&6 7056else 7057 if test -n "$MANIFEST_TOOL"; then 7058 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7059else 7060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7061for as_dir in $PATH 7062do 7063 IFS=$as_save_IFS 7064 test -z "$as_dir" && as_dir=. 7065 for ac_exec_ext in '' $ac_executable_extensions; do 7066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7067 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7069 break 2 7070 fi 7071done 7072 done 7073IFS=$as_save_IFS 7074 7075fi 7076fi 7077MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7078if test -n "$MANIFEST_TOOL"; then 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7080$as_echo "$MANIFEST_TOOL" >&6; } 7081else 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7083$as_echo "no" >&6; } 7084fi 7085 7086 7087fi 7088if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7089 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7090 # Extract the first word of "mt", so it can be a program name with args. 7091set dummy mt; ac_word=$2 7092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7093$as_echo_n "checking for $ac_word... " >&6; } 7094if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7095 $as_echo_n "(cached) " >&6 7096else 7097 if test -n "$ac_ct_MANIFEST_TOOL"; then 7098 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7099else 7100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7101for as_dir in $PATH 7102do 7103 IFS=$as_save_IFS 7104 test -z "$as_dir" && as_dir=. 7105 for ac_exec_ext in '' $ac_executable_extensions; do 7106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7107 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7109 break 2 7110 fi 7111done 7112 done 7113IFS=$as_save_IFS 7114 7115fi 7116fi 7117ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7118if test -n "$ac_ct_MANIFEST_TOOL"; then 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7120$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7121else 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7123$as_echo "no" >&6; } 7124fi 7125 7126 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7127 MANIFEST_TOOL=":" 7128 else 7129 case $cross_compiling:$ac_tool_warned in 7130yes:) 7131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7133ac_tool_warned=yes ;; 7134esac 7135 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7136 fi 7137else 7138 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7139fi 7140 7141test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7143$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7144if ${lt_cv_path_mainfest_tool+:} false; then : 7145 $as_echo_n "(cached) " >&6 7146else 7147 lt_cv_path_mainfest_tool=no 7148 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7149 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7150 cat conftest.err >&5 7151 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7152 lt_cv_path_mainfest_tool=yes 7153 fi 7154 rm -f conftest* 7155fi 7156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7157$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7158if test yes != "$lt_cv_path_mainfest_tool"; then 7159 MANIFEST_TOOL=: 7160fi 7161 7162 7163 7164 7165 7166 7167 case $host_os in 7168 rhapsody* | darwin*) 7169 if test -n "$ac_tool_prefix"; then 7170 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7171set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7173$as_echo_n "checking for $ac_word... " >&6; } 7174if ${ac_cv_prog_DSYMUTIL+:} false; then : 7175 $as_echo_n "(cached) " >&6 7176else 7177 if test -n "$DSYMUTIL"; then 7178 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7179else 7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7181for as_dir in $PATH 7182do 7183 IFS=$as_save_IFS 7184 test -z "$as_dir" && as_dir=. 7185 for ac_exec_ext in '' $ac_executable_extensions; do 7186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7187 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7189 break 2 7190 fi 7191done 7192 done 7193IFS=$as_save_IFS 7194 7195fi 7196fi 7197DSYMUTIL=$ac_cv_prog_DSYMUTIL 7198if test -n "$DSYMUTIL"; then 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7200$as_echo "$DSYMUTIL" >&6; } 7201else 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7203$as_echo "no" >&6; } 7204fi 7205 7206 7207fi 7208if test -z "$ac_cv_prog_DSYMUTIL"; then 7209 ac_ct_DSYMUTIL=$DSYMUTIL 7210 # Extract the first word of "dsymutil", so it can be a program name with args. 7211set dummy dsymutil; ac_word=$2 7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7213$as_echo_n "checking for $ac_word... " >&6; } 7214if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7215 $as_echo_n "(cached) " >&6 7216else 7217 if test -n "$ac_ct_DSYMUTIL"; then 7218 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7219else 7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7221for as_dir in $PATH 7222do 7223 IFS=$as_save_IFS 7224 test -z "$as_dir" && as_dir=. 7225 for ac_exec_ext in '' $ac_executable_extensions; do 7226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7227 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7229 break 2 7230 fi 7231done 7232 done 7233IFS=$as_save_IFS 7234 7235fi 7236fi 7237ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7238if test -n "$ac_ct_DSYMUTIL"; then 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7240$as_echo "$ac_ct_DSYMUTIL" >&6; } 7241else 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7243$as_echo "no" >&6; } 7244fi 7245 7246 if test "x$ac_ct_DSYMUTIL" = x; then 7247 DSYMUTIL=":" 7248 else 7249 case $cross_compiling:$ac_tool_warned in 7250yes:) 7251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7253ac_tool_warned=yes ;; 7254esac 7255 DSYMUTIL=$ac_ct_DSYMUTIL 7256 fi 7257else 7258 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7259fi 7260 7261 if test -n "$ac_tool_prefix"; then 7262 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7263set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7265$as_echo_n "checking for $ac_word... " >&6; } 7266if ${ac_cv_prog_NMEDIT+:} false; then : 7267 $as_echo_n "(cached) " >&6 7268else 7269 if test -n "$NMEDIT"; then 7270 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7271else 7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7273for as_dir in $PATH 7274do 7275 IFS=$as_save_IFS 7276 test -z "$as_dir" && as_dir=. 7277 for ac_exec_ext in '' $ac_executable_extensions; do 7278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7279 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7281 break 2 7282 fi 7283done 7284 done 7285IFS=$as_save_IFS 7286 7287fi 7288fi 7289NMEDIT=$ac_cv_prog_NMEDIT 7290if test -n "$NMEDIT"; then 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7292$as_echo "$NMEDIT" >&6; } 7293else 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7295$as_echo "no" >&6; } 7296fi 7297 7298 7299fi 7300if test -z "$ac_cv_prog_NMEDIT"; then 7301 ac_ct_NMEDIT=$NMEDIT 7302 # Extract the first word of "nmedit", so it can be a program name with args. 7303set dummy nmedit; ac_word=$2 7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7305$as_echo_n "checking for $ac_word... " >&6; } 7306if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7307 $as_echo_n "(cached) " >&6 7308else 7309 if test -n "$ac_ct_NMEDIT"; then 7310 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7311else 7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7313for as_dir in $PATH 7314do 7315 IFS=$as_save_IFS 7316 test -z "$as_dir" && as_dir=. 7317 for ac_exec_ext in '' $ac_executable_extensions; do 7318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7319 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7321 break 2 7322 fi 7323done 7324 done 7325IFS=$as_save_IFS 7326 7327fi 7328fi 7329ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7330if test -n "$ac_ct_NMEDIT"; then 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7332$as_echo "$ac_ct_NMEDIT" >&6; } 7333else 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7335$as_echo "no" >&6; } 7336fi 7337 7338 if test "x$ac_ct_NMEDIT" = x; then 7339 NMEDIT=":" 7340 else 7341 case $cross_compiling:$ac_tool_warned in 7342yes:) 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7345ac_tool_warned=yes ;; 7346esac 7347 NMEDIT=$ac_ct_NMEDIT 7348 fi 7349else 7350 NMEDIT="$ac_cv_prog_NMEDIT" 7351fi 7352 7353 if test -n "$ac_tool_prefix"; then 7354 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7355set dummy ${ac_tool_prefix}lipo; ac_word=$2 7356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7357$as_echo_n "checking for $ac_word... " >&6; } 7358if ${ac_cv_prog_LIPO+:} false; then : 7359 $as_echo_n "(cached) " >&6 7360else 7361 if test -n "$LIPO"; then 7362 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7363else 7364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7365for as_dir in $PATH 7366do 7367 IFS=$as_save_IFS 7368 test -z "$as_dir" && as_dir=. 7369 for ac_exec_ext in '' $ac_executable_extensions; do 7370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7371 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7373 break 2 7374 fi 7375done 7376 done 7377IFS=$as_save_IFS 7378 7379fi 7380fi 7381LIPO=$ac_cv_prog_LIPO 7382if test -n "$LIPO"; then 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7384$as_echo "$LIPO" >&6; } 7385else 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7387$as_echo "no" >&6; } 7388fi 7389 7390 7391fi 7392if test -z "$ac_cv_prog_LIPO"; then 7393 ac_ct_LIPO=$LIPO 7394 # Extract the first word of "lipo", so it can be a program name with args. 7395set dummy lipo; ac_word=$2 7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7397$as_echo_n "checking for $ac_word... " >&6; } 7398if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7399 $as_echo_n "(cached) " >&6 7400else 7401 if test -n "$ac_ct_LIPO"; then 7402 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7403else 7404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7405for as_dir in $PATH 7406do 7407 IFS=$as_save_IFS 7408 test -z "$as_dir" && as_dir=. 7409 for ac_exec_ext in '' $ac_executable_extensions; do 7410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7411 ac_cv_prog_ac_ct_LIPO="lipo" 7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7413 break 2 7414 fi 7415done 7416 done 7417IFS=$as_save_IFS 7418 7419fi 7420fi 7421ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7422if test -n "$ac_ct_LIPO"; then 7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7424$as_echo "$ac_ct_LIPO" >&6; } 7425else 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7427$as_echo "no" >&6; } 7428fi 7429 7430 if test "x$ac_ct_LIPO" = x; then 7431 LIPO=":" 7432 else 7433 case $cross_compiling:$ac_tool_warned in 7434yes:) 7435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7437ac_tool_warned=yes ;; 7438esac 7439 LIPO=$ac_ct_LIPO 7440 fi 7441else 7442 LIPO="$ac_cv_prog_LIPO" 7443fi 7444 7445 if test -n "$ac_tool_prefix"; then 7446 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7447set dummy ${ac_tool_prefix}otool; ac_word=$2 7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7449$as_echo_n "checking for $ac_word... " >&6; } 7450if ${ac_cv_prog_OTOOL+:} false; then : 7451 $as_echo_n "(cached) " >&6 7452else 7453 if test -n "$OTOOL"; then 7454 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7455else 7456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7457for as_dir in $PATH 7458do 7459 IFS=$as_save_IFS 7460 test -z "$as_dir" && as_dir=. 7461 for ac_exec_ext in '' $ac_executable_extensions; do 7462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7463 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7465 break 2 7466 fi 7467done 7468 done 7469IFS=$as_save_IFS 7470 7471fi 7472fi 7473OTOOL=$ac_cv_prog_OTOOL 7474if test -n "$OTOOL"; then 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7476$as_echo "$OTOOL" >&6; } 7477else 7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7479$as_echo "no" >&6; } 7480fi 7481 7482 7483fi 7484if test -z "$ac_cv_prog_OTOOL"; then 7485 ac_ct_OTOOL=$OTOOL 7486 # Extract the first word of "otool", so it can be a program name with args. 7487set dummy otool; ac_word=$2 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7489$as_echo_n "checking for $ac_word... " >&6; } 7490if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7491 $as_echo_n "(cached) " >&6 7492else 7493 if test -n "$ac_ct_OTOOL"; then 7494 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7495else 7496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7497for as_dir in $PATH 7498do 7499 IFS=$as_save_IFS 7500 test -z "$as_dir" && as_dir=. 7501 for ac_exec_ext in '' $ac_executable_extensions; do 7502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7503 ac_cv_prog_ac_ct_OTOOL="otool" 7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7505 break 2 7506 fi 7507done 7508 done 7509IFS=$as_save_IFS 7510 7511fi 7512fi 7513ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7514if test -n "$ac_ct_OTOOL"; then 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7516$as_echo "$ac_ct_OTOOL" >&6; } 7517else 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7519$as_echo "no" >&6; } 7520fi 7521 7522 if test "x$ac_ct_OTOOL" = x; then 7523 OTOOL=":" 7524 else 7525 case $cross_compiling:$ac_tool_warned in 7526yes:) 7527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7529ac_tool_warned=yes ;; 7530esac 7531 OTOOL=$ac_ct_OTOOL 7532 fi 7533else 7534 OTOOL="$ac_cv_prog_OTOOL" 7535fi 7536 7537 if test -n "$ac_tool_prefix"; then 7538 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7539set dummy ${ac_tool_prefix}otool64; ac_word=$2 7540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7541$as_echo_n "checking for $ac_word... " >&6; } 7542if ${ac_cv_prog_OTOOL64+:} false; then : 7543 $as_echo_n "(cached) " >&6 7544else 7545 if test -n "$OTOOL64"; then 7546 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7547else 7548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7549for as_dir in $PATH 7550do 7551 IFS=$as_save_IFS 7552 test -z "$as_dir" && as_dir=. 7553 for ac_exec_ext in '' $ac_executable_extensions; do 7554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7555 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7557 break 2 7558 fi 7559done 7560 done 7561IFS=$as_save_IFS 7562 7563fi 7564fi 7565OTOOL64=$ac_cv_prog_OTOOL64 7566if test -n "$OTOOL64"; then 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7568$as_echo "$OTOOL64" >&6; } 7569else 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7571$as_echo "no" >&6; } 7572fi 7573 7574 7575fi 7576if test -z "$ac_cv_prog_OTOOL64"; then 7577 ac_ct_OTOOL64=$OTOOL64 7578 # Extract the first word of "otool64", so it can be a program name with args. 7579set dummy otool64; ac_word=$2 7580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7581$as_echo_n "checking for $ac_word... " >&6; } 7582if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7583 $as_echo_n "(cached) " >&6 7584else 7585 if test -n "$ac_ct_OTOOL64"; then 7586 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7587else 7588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7589for as_dir in $PATH 7590do 7591 IFS=$as_save_IFS 7592 test -z "$as_dir" && as_dir=. 7593 for ac_exec_ext in '' $ac_executable_extensions; do 7594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7595 ac_cv_prog_ac_ct_OTOOL64="otool64" 7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7597 break 2 7598 fi 7599done 7600 done 7601IFS=$as_save_IFS 7602 7603fi 7604fi 7605ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7606if test -n "$ac_ct_OTOOL64"; then 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7608$as_echo "$ac_ct_OTOOL64" >&6; } 7609else 7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7611$as_echo "no" >&6; } 7612fi 7613 7614 if test "x$ac_ct_OTOOL64" = x; then 7615 OTOOL64=":" 7616 else 7617 case $cross_compiling:$ac_tool_warned in 7618yes:) 7619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7621ac_tool_warned=yes ;; 7622esac 7623 OTOOL64=$ac_ct_OTOOL64 7624 fi 7625else 7626 OTOOL64="$ac_cv_prog_OTOOL64" 7627fi 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7656$as_echo_n "checking for -single_module linker flag... " >&6; } 7657if ${lt_cv_apple_cc_single_mod+:} false; then : 7658 $as_echo_n "(cached) " >&6 7659else 7660 lt_cv_apple_cc_single_mod=no 7661 if test -z "$LT_MULTI_MODULE"; then 7662 # By default we will add the -single_module flag. You can override 7663 # by either setting the environment variable LT_MULTI_MODULE 7664 # non-empty at configure time, or by adding -multi_module to the 7665 # link flags. 7666 rm -rf libconftest.dylib* 7667 echo "int foo(void){return 1;}" > conftest.c 7668 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7669-dynamiclib -Wl,-single_module conftest.c" >&5 7670 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7671 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7672 _lt_result=$? 7673 # If there is a non-empty error log, and "single_module" 7674 # appears in it, assume the flag caused a linker warning 7675 if test -s conftest.err && $GREP single_module conftest.err; then 7676 cat conftest.err >&5 7677 # Otherwise, if the output was created with a 0 exit code from 7678 # the compiler, it worked. 7679 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7680 lt_cv_apple_cc_single_mod=yes 7681 else 7682 cat conftest.err >&5 7683 fi 7684 rm -rf libconftest.dylib* 7685 rm -f conftest.* 7686 fi 7687fi 7688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7689$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7690 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7692$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7693if ${lt_cv_ld_exported_symbols_list+:} false; then : 7694 $as_echo_n "(cached) " >&6 7695else 7696 lt_cv_ld_exported_symbols_list=no 7697 save_LDFLAGS=$LDFLAGS 7698 echo "_main" > conftest.sym 7699 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7701/* end confdefs.h. */ 7702 7703int 7704main () 7705{ 7706 7707 ; 7708 return 0; 7709} 7710_ACEOF 7711if ac_fn_c_try_link "$LINENO"; then : 7712 lt_cv_ld_exported_symbols_list=yes 7713else 7714 lt_cv_ld_exported_symbols_list=no 7715fi 7716rm -f core conftest.err conftest.$ac_objext \ 7717 conftest$ac_exeext conftest.$ac_ext 7718 LDFLAGS=$save_LDFLAGS 7719 7720fi 7721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7722$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7723 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7725$as_echo_n "checking for -force_load linker flag... " >&6; } 7726if ${lt_cv_ld_force_load+:} false; then : 7727 $as_echo_n "(cached) " >&6 7728else 7729 lt_cv_ld_force_load=no 7730 cat > conftest.c << _LT_EOF 7731int forced_loaded() { return 2;} 7732_LT_EOF 7733 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7734 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7735 echo "$AR cru libconftest.a conftest.o" >&5 7736 $AR cru libconftest.a conftest.o 2>&5 7737 echo "$RANLIB libconftest.a" >&5 7738 $RANLIB libconftest.a 2>&5 7739 cat > conftest.c << _LT_EOF 7740int main() { return 0;} 7741_LT_EOF 7742 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7743 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7744 _lt_result=$? 7745 if test -s conftest.err && $GREP force_load conftest.err; then 7746 cat conftest.err >&5 7747 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7748 lt_cv_ld_force_load=yes 7749 else 7750 cat conftest.err >&5 7751 fi 7752 rm -f conftest.err libconftest.a conftest conftest.c 7753 rm -rf conftest.dSYM 7754 7755fi 7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7757$as_echo "$lt_cv_ld_force_load" >&6; } 7758 case $host_os in 7759 rhapsody* | darwin1.[012]) 7760 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7761 darwin1.*) 7762 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7763 darwin*) # darwin 5.x on 7764 # if running on 10.5 or later, the deployment target defaults 7765 # to the OS version, if on x86, and 10.4, the deployment 7766 # target defaults to 10.4. Don't you love it? 7767 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7768 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7769 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7770 10.[012][,.]*) 7771 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7772 10.*) 7773 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7774 esac 7775 ;; 7776 esac 7777 if test yes = "$lt_cv_apple_cc_single_mod"; then 7778 _lt_dar_single_mod='$single_module' 7779 fi 7780 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7781 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7782 else 7783 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7784 fi 7785 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7786 _lt_dsymutil='~$DSYMUTIL $lib || :' 7787 else 7788 _lt_dsymutil= 7789 fi 7790 ;; 7791 esac 7792 7793# func_munge_path_list VARIABLE PATH 7794# ----------------------------------- 7795# VARIABLE is name of variable containing _space_ separated list of 7796# directories to be munged by the contents of PATH, which is string 7797# having a format: 7798# "DIR[:DIR]:" 7799# string "DIR[ DIR]" will be prepended to VARIABLE 7800# ":DIR[:DIR]" 7801# string "DIR[ DIR]" will be appended to VARIABLE 7802# "DIRP[:DIRP]::[DIRA:]DIRA" 7803# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7804# "DIRA[ DIRA]" will be appended to VARIABLE 7805# "DIR[:DIR]" 7806# VARIABLE will be replaced by "DIR[ DIR]" 7807func_munge_path_list () 7808{ 7809 case x$2 in 7810 x) 7811 ;; 7812 *:) 7813 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7814 ;; 7815 x:*) 7816 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7817 ;; 7818 *::*) 7819 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7820 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7821 ;; 7822 *) 7823 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7824 ;; 7825 esac 7826} 7827 7828for ac_header in dlfcn.h 7829do : 7830 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7831" 7832if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7833 cat >>confdefs.h <<_ACEOF 7834#define HAVE_DLFCN_H 1 7835_ACEOF 7836 7837fi 7838 7839done 7840 7841 7842 7843 7844 7845# Set options 7846 7847 7848 7849 enable_dlopen=no 7850 7851 7852 enable_win32_dll=no 7853 7854 7855 # Check whether --enable-shared was given. 7856if test "${enable_shared+set}" = set; then : 7857 enableval=$enable_shared; p=${PACKAGE-default} 7858 case $enableval in 7859 yes) enable_shared=yes ;; 7860 no) enable_shared=no ;; 7861 *) 7862 enable_shared=no 7863 # Look at the argument we got. We use all the common list separators. 7864 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7865 for pkg in $enableval; do 7866 IFS=$lt_save_ifs 7867 if test "X$pkg" = "X$p"; then 7868 enable_shared=yes 7869 fi 7870 done 7871 IFS=$lt_save_ifs 7872 ;; 7873 esac 7874else 7875 enable_shared=yes 7876fi 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888# Check whether --with-pic was given. 7889if test "${with_pic+set}" = set; then : 7890 withval=$with_pic; lt_p=${PACKAGE-default} 7891 case $withval in 7892 yes|no) pic_mode=$withval ;; 7893 *) 7894 pic_mode=default 7895 # Look at the argument we got. We use all the common list separators. 7896 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7897 for lt_pkg in $withval; do 7898 IFS=$lt_save_ifs 7899 if test "X$lt_pkg" = "X$lt_p"; then 7900 pic_mode=yes 7901 fi 7902 done 7903 IFS=$lt_save_ifs 7904 ;; 7905 esac 7906else 7907 pic_mode=default 7908fi 7909 7910 7911 7912 7913 7914 7915 7916 7917 # Check whether --enable-fast-install was given. 7918if test "${enable_fast_install+set}" = set; then : 7919 enableval=$enable_fast_install; p=${PACKAGE-default} 7920 case $enableval in 7921 yes) enable_fast_install=yes ;; 7922 no) enable_fast_install=no ;; 7923 *) 7924 enable_fast_install=no 7925 # Look at the argument we got. We use all the common list separators. 7926 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7927 for pkg in $enableval; do 7928 IFS=$lt_save_ifs 7929 if test "X$pkg" = "X$p"; then 7930 enable_fast_install=yes 7931 fi 7932 done 7933 IFS=$lt_save_ifs 7934 ;; 7935 esac 7936else 7937 enable_fast_install=yes 7938fi 7939 7940 7941 7942 7943 7944 7945 7946 7947 shared_archive_member_spec= 7948case $host,$enable_shared in 7949power*-*-aix[5-9]*,yes) 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7951$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7952 7953# Check whether --with-aix-soname was given. 7954if test "${with_aix_soname+set}" = set; then : 7955 withval=$with_aix_soname; case $withval in 7956 aix|svr4|both) 7957 ;; 7958 *) 7959 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7960 ;; 7961 esac 7962 lt_cv_with_aix_soname=$with_aix_soname 7963else 7964 if ${lt_cv_with_aix_soname+:} false; then : 7965 $as_echo_n "(cached) " >&6 7966else 7967 lt_cv_with_aix_soname=aix 7968fi 7969 7970 with_aix_soname=$lt_cv_with_aix_soname 7971fi 7972 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7974$as_echo "$with_aix_soname" >&6; } 7975 if test aix != "$with_aix_soname"; then 7976 # For the AIX way of multilib, we name the shared archive member 7977 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7978 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7979 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7980 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7981 if test 64 = "${OBJECT_MODE-32}"; then 7982 shared_archive_member_spec=shr_64 7983 else 7984 shared_archive_member_spec=shr 7985 fi 7986 fi 7987 ;; 7988*) 7989 with_aix_soname=aix 7990 ;; 7991esac 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002# This can be used to rebuild libtool when needed 8003LIBTOOL_DEPS=$ltmain 8004 8005# Always use our own libtool. 8006LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037test -z "$LN_S" && LN_S="ln -s" 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052if test -n "${ZSH_VERSION+set}"; then 8053 setopt NO_GLOB_SUBST 8054fi 8055 8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8057$as_echo_n "checking for objdir... " >&6; } 8058if ${lt_cv_objdir+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060else 8061 rm -f .libs 2>/dev/null 8062mkdir .libs 2>/dev/null 8063if test -d .libs; then 8064 lt_cv_objdir=.libs 8065else 8066 # MS-DOS does not allow filenames that begin with a dot. 8067 lt_cv_objdir=_libs 8068fi 8069rmdir .libs 2>/dev/null 8070fi 8071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8072$as_echo "$lt_cv_objdir" >&6; } 8073objdir=$lt_cv_objdir 8074 8075 8076 8077 8078 8079cat >>confdefs.h <<_ACEOF 8080#define LT_OBJDIR "$lt_cv_objdir/" 8081_ACEOF 8082 8083 8084 8085 8086case $host_os in 8087aix3*) 8088 # AIX sometimes has problems with the GCC collect2 program. For some 8089 # reason, if we set the COLLECT_NAMES environment variable, the problems 8090 # vanish in a puff of smoke. 8091 if test set != "${COLLECT_NAMES+set}"; then 8092 COLLECT_NAMES= 8093 export COLLECT_NAMES 8094 fi 8095 ;; 8096esac 8097 8098# Global variables: 8099ofile=libtool 8100can_build_shared=yes 8101 8102# All known linkers require a '.a' archive for static linking (except MSVC, 8103# which needs '.lib'). 8104libext=a 8105 8106with_gnu_ld=$lt_cv_prog_gnu_ld 8107 8108old_CC=$CC 8109old_CFLAGS=$CFLAGS 8110 8111# Set sane defaults for various variables 8112test -z "$CC" && CC=cc 8113test -z "$LTCC" && LTCC=$CC 8114test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8115test -z "$LD" && LD=ld 8116test -z "$ac_objext" && ac_objext=o 8117 8118func_cc_basename $compiler 8119cc_basename=$func_cc_basename_result 8120 8121 8122# Only perform the check for file, if the check method requires it 8123test -z "$MAGIC_CMD" && MAGIC_CMD=file 8124case $deplibs_check_method in 8125file_magic*) 8126 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8128$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8129if ${lt_cv_path_MAGIC_CMD+:} false; then : 8130 $as_echo_n "(cached) " >&6 8131else 8132 case $MAGIC_CMD in 8133[\\/*] | ?:[\\/]*) 8134 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8135 ;; 8136*) 8137 lt_save_MAGIC_CMD=$MAGIC_CMD 8138 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8139 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8140 for ac_dir in $ac_dummy; do 8141 IFS=$lt_save_ifs 8142 test -z "$ac_dir" && ac_dir=. 8143 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8144 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8145 if test -n "$file_magic_test_file"; then 8146 case $deplibs_check_method in 8147 "file_magic "*) 8148 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8149 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8150 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8151 $EGREP "$file_magic_regex" > /dev/null; then 8152 : 8153 else 8154 cat <<_LT_EOF 1>&2 8155 8156*** Warning: the command libtool uses to detect shared libraries, 8157*** $file_magic_cmd, produces output that libtool cannot recognize. 8158*** The result is that libtool may fail to recognize shared libraries 8159*** as such. This will affect the creation of libtool libraries that 8160*** depend on shared libraries, but programs linked with such libtool 8161*** libraries will work regardless of this problem. Nevertheless, you 8162*** may want to report the problem to your system manager and/or to 8163*** bug-libtool@gnu.org 8164 8165_LT_EOF 8166 fi ;; 8167 esac 8168 fi 8169 break 8170 fi 8171 done 8172 IFS=$lt_save_ifs 8173 MAGIC_CMD=$lt_save_MAGIC_CMD 8174 ;; 8175esac 8176fi 8177 8178MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8179if test -n "$MAGIC_CMD"; then 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8181$as_echo "$MAGIC_CMD" >&6; } 8182else 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8184$as_echo "no" >&6; } 8185fi 8186 8187 8188 8189 8190 8191if test -z "$lt_cv_path_MAGIC_CMD"; then 8192 if test -n "$ac_tool_prefix"; then 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8194$as_echo_n "checking for file... " >&6; } 8195if ${lt_cv_path_MAGIC_CMD+:} false; then : 8196 $as_echo_n "(cached) " >&6 8197else 8198 case $MAGIC_CMD in 8199[\\/*] | ?:[\\/]*) 8200 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8201 ;; 8202*) 8203 lt_save_MAGIC_CMD=$MAGIC_CMD 8204 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8205 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8206 for ac_dir in $ac_dummy; do 8207 IFS=$lt_save_ifs 8208 test -z "$ac_dir" && ac_dir=. 8209 if test -f "$ac_dir/file"; then 8210 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8211 if test -n "$file_magic_test_file"; then 8212 case $deplibs_check_method in 8213 "file_magic "*) 8214 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8215 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8217 $EGREP "$file_magic_regex" > /dev/null; then 8218 : 8219 else 8220 cat <<_LT_EOF 1>&2 8221 8222*** Warning: the command libtool uses to detect shared libraries, 8223*** $file_magic_cmd, produces output that libtool cannot recognize. 8224*** The result is that libtool may fail to recognize shared libraries 8225*** as such. This will affect the creation of libtool libraries that 8226*** depend on shared libraries, but programs linked with such libtool 8227*** libraries will work regardless of this problem. Nevertheless, you 8228*** may want to report the problem to your system manager and/or to 8229*** bug-libtool@gnu.org 8230 8231_LT_EOF 8232 fi ;; 8233 esac 8234 fi 8235 break 8236 fi 8237 done 8238 IFS=$lt_save_ifs 8239 MAGIC_CMD=$lt_save_MAGIC_CMD 8240 ;; 8241esac 8242fi 8243 8244MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8245if test -n "$MAGIC_CMD"; then 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8247$as_echo "$MAGIC_CMD" >&6; } 8248else 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8250$as_echo "no" >&6; } 8251fi 8252 8253 8254 else 8255 MAGIC_CMD=: 8256 fi 8257fi 8258 8259 fi 8260 ;; 8261esac 8262 8263# Use C for the default configuration in the libtool script 8264 8265lt_save_CC=$CC 8266ac_ext=c 8267ac_cpp='$CPP $CPPFLAGS' 8268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8270ac_compiler_gnu=$ac_cv_c_compiler_gnu 8271 8272 8273# Source file extension for C test sources. 8274ac_ext=c 8275 8276# Object file extension for compiled C test sources. 8277objext=o 8278objext=$objext 8279 8280# Code to be used in simple compile tests 8281lt_simple_compile_test_code="int some_variable = 0;" 8282 8283# Code to be used in simple link tests 8284lt_simple_link_test_code='int main(){return(0);}' 8285 8286 8287 8288 8289 8290 8291 8292# If no C compiler was specified, use CC. 8293LTCC=${LTCC-"$CC"} 8294 8295# If no C compiler flags were specified, use CFLAGS. 8296LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8297 8298# Allow CC to be a program name with arguments. 8299compiler=$CC 8300 8301# Save the default compiler, since it gets overwritten when the other 8302# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8303compiler_DEFAULT=$CC 8304 8305# save warnings/boilerplate of simple test code 8306ac_outfile=conftest.$ac_objext 8307echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8308eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8309_lt_compiler_boilerplate=`cat conftest.err` 8310$RM conftest* 8311 8312ac_outfile=conftest.$ac_objext 8313echo "$lt_simple_link_test_code" >conftest.$ac_ext 8314eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8315_lt_linker_boilerplate=`cat conftest.err` 8316$RM -r conftest* 8317 8318 8319if test -n "$compiler"; then 8320 8321lt_prog_compiler_no_builtin_flag= 8322 8323if test yes = "$GCC"; then 8324 case $cc_basename in 8325 nvcc*) 8326 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8327 *) 8328 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8329 esac 8330 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8332$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8333if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8334 $as_echo_n "(cached) " >&6 8335else 8336 lt_cv_prog_compiler_rtti_exceptions=no 8337 ac_outfile=conftest.$ac_objext 8338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8339 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8340 # Insert the option either (1) after the last *FLAGS variable, or 8341 # (2) before a word containing "conftest.", or (3) at the end. 8342 # Note that $ac_compile itself does not contain backslashes and begins 8343 # with a dollar sign (not a hyphen), so the echo should work correctly. 8344 # The option is referenced via a variable to avoid confusing sed. 8345 lt_compile=`echo "$ac_compile" | $SED \ 8346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8348 -e 's:$: $lt_compiler_flag:'` 8349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8350 (eval "$lt_compile" 2>conftest.err) 8351 ac_status=$? 8352 cat conftest.err >&5 8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8354 if (exit $ac_status) && test -s "$ac_outfile"; then 8355 # The compiler can only warn and ignore the option if not recognized 8356 # So say no if there are warnings other than the usual output. 8357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8360 lt_cv_prog_compiler_rtti_exceptions=yes 8361 fi 8362 fi 8363 $RM conftest* 8364 8365fi 8366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8367$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8368 8369if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8370 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8371else 8372 : 8373fi 8374 8375fi 8376 8377 8378 8379 8380 8381 8382 lt_prog_compiler_wl= 8383lt_prog_compiler_pic= 8384lt_prog_compiler_static= 8385 8386 8387 if test yes = "$GCC"; then 8388 lt_prog_compiler_wl='-Wl,' 8389 lt_prog_compiler_static='-static' 8390 8391 case $host_os in 8392 aix*) 8393 # All AIX code is PIC. 8394 if test ia64 = "$host_cpu"; then 8395 # AIX 5 now supports IA64 processor 8396 lt_prog_compiler_static='-Bstatic' 8397 fi 8398 lt_prog_compiler_pic='-fPIC' 8399 ;; 8400 8401 amigaos*) 8402 case $host_cpu in 8403 powerpc) 8404 # see comment about AmigaOS4 .so support 8405 lt_prog_compiler_pic='-fPIC' 8406 ;; 8407 m68k) 8408 # FIXME: we need at least 68020 code to build shared libraries, but 8409 # adding the '-m68020' flag to GCC prevents building anything better, 8410 # like '-m68040'. 8411 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8412 ;; 8413 esac 8414 ;; 8415 8416 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8417 # PIC is the default for these OSes. 8418 ;; 8419 8420 mingw* | cygwin* | pw32* | os2* | cegcc*) 8421 # This hack is so that the source file can tell whether it is being 8422 # built for inclusion in a dll (and should export symbols for example). 8423 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8424 # (--disable-auto-import) libraries 8425 lt_prog_compiler_pic='-DDLL_EXPORT' 8426 case $host_os in 8427 os2*) 8428 lt_prog_compiler_static='$wl-static' 8429 ;; 8430 esac 8431 ;; 8432 8433 darwin* | rhapsody*) 8434 # PIC is the default on this platform 8435 # Common symbols not allowed in MH_DYLIB files 8436 lt_prog_compiler_pic='-fno-common' 8437 ;; 8438 8439 haiku*) 8440 # PIC is the default for Haiku. 8441 # The "-static" flag exists, but is broken. 8442 lt_prog_compiler_static= 8443 ;; 8444 8445 hpux*) 8446 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8447 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8448 # sets the default TLS model and affects inlining. 8449 case $host_cpu in 8450 hppa*64*) 8451 # +Z the default 8452 ;; 8453 *) 8454 lt_prog_compiler_pic='-fPIC' 8455 ;; 8456 esac 8457 ;; 8458 8459 interix[3-9]*) 8460 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8461 # Instead, we relocate shared libraries at runtime. 8462 ;; 8463 8464 msdosdjgpp*) 8465 # Just because we use GCC doesn't mean we suddenly get shared libraries 8466 # on systems that don't support them. 8467 lt_prog_compiler_can_build_shared=no 8468 enable_shared=no 8469 ;; 8470 8471 *nto* | *qnx*) 8472 # QNX uses GNU C++, but need to define -shared option too, otherwise 8473 # it will coredump. 8474 lt_prog_compiler_pic='-fPIC -shared' 8475 ;; 8476 8477 sysv4*MP*) 8478 if test -d /usr/nec; then 8479 lt_prog_compiler_pic=-Kconform_pic 8480 fi 8481 ;; 8482 8483 *) 8484 lt_prog_compiler_pic='-fPIC' 8485 ;; 8486 esac 8487 8488 case $cc_basename in 8489 nvcc*) # Cuda Compiler Driver 2.2 8490 lt_prog_compiler_wl='-Xlinker ' 8491 if test -n "$lt_prog_compiler_pic"; then 8492 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8493 fi 8494 ;; 8495 esac 8496 else 8497 # PORTME Check for flag to pass linker flags through the system compiler. 8498 case $host_os in 8499 aix*) 8500 lt_prog_compiler_wl='-Wl,' 8501 if test ia64 = "$host_cpu"; then 8502 # AIX 5 now supports IA64 processor 8503 lt_prog_compiler_static='-Bstatic' 8504 else 8505 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8506 fi 8507 ;; 8508 8509 darwin* | rhapsody*) 8510 # PIC is the default on this platform 8511 # Common symbols not allowed in MH_DYLIB files 8512 lt_prog_compiler_pic='-fno-common' 8513 case $cc_basename in 8514 nagfor*) 8515 # NAG Fortran compiler 8516 lt_prog_compiler_wl='-Wl,-Wl,,' 8517 lt_prog_compiler_pic='-PIC' 8518 lt_prog_compiler_static='-Bstatic' 8519 ;; 8520 esac 8521 ;; 8522 8523 mingw* | cygwin* | pw32* | os2* | cegcc*) 8524 # This hack is so that the source file can tell whether it is being 8525 # built for inclusion in a dll (and should export symbols for example). 8526 lt_prog_compiler_pic='-DDLL_EXPORT' 8527 case $host_os in 8528 os2*) 8529 lt_prog_compiler_static='$wl-static' 8530 ;; 8531 esac 8532 ;; 8533 8534 hpux9* | hpux10* | hpux11*) 8535 lt_prog_compiler_wl='-Wl,' 8536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8537 # not for PA HP-UX. 8538 case $host_cpu in 8539 hppa*64*|ia64*) 8540 # +Z the default 8541 ;; 8542 *) 8543 lt_prog_compiler_pic='+Z' 8544 ;; 8545 esac 8546 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8547 lt_prog_compiler_static='$wl-a ${wl}archive' 8548 ;; 8549 8550 irix5* | irix6* | nonstopux*) 8551 lt_prog_compiler_wl='-Wl,' 8552 # PIC (with -KPIC) is the default. 8553 lt_prog_compiler_static='-non_shared' 8554 ;; 8555 8556 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8557 case $cc_basename in 8558 # old Intel for x86_64, which still supported -KPIC. 8559 ecc*) 8560 lt_prog_compiler_wl='-Wl,' 8561 lt_prog_compiler_pic='-KPIC' 8562 lt_prog_compiler_static='-static' 8563 ;; 8564 # icc used to be incompatible with GCC. 8565 # ICC 10 doesn't accept -KPIC any more. 8566 icc* | ifort*) 8567 lt_prog_compiler_wl='-Wl,' 8568 lt_prog_compiler_pic='-fPIC' 8569 lt_prog_compiler_static='-static' 8570 ;; 8571 # Lahey Fortran 8.1. 8572 lf95*) 8573 lt_prog_compiler_wl='-Wl,' 8574 lt_prog_compiler_pic='--shared' 8575 lt_prog_compiler_static='--static' 8576 ;; 8577 nagfor*) 8578 # NAG Fortran compiler 8579 lt_prog_compiler_wl='-Wl,-Wl,,' 8580 lt_prog_compiler_pic='-PIC' 8581 lt_prog_compiler_static='-Bstatic' 8582 ;; 8583 tcc*) 8584 # Fabrice Bellard et al's Tiny C Compiler 8585 lt_prog_compiler_wl='-Wl,' 8586 lt_prog_compiler_pic='-fPIC' 8587 lt_prog_compiler_static='-static' 8588 ;; 8589 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8590 # Portland Group compilers (*not* the Pentium gcc compiler, 8591 # which looks to be a dead project) 8592 lt_prog_compiler_wl='-Wl,' 8593 lt_prog_compiler_pic='-fpic' 8594 lt_prog_compiler_static='-Bstatic' 8595 ;; 8596 ccc*) 8597 lt_prog_compiler_wl='-Wl,' 8598 # All Alpha code is PIC. 8599 lt_prog_compiler_static='-non_shared' 8600 ;; 8601 xl* | bgxl* | bgf* | mpixl*) 8602 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8603 lt_prog_compiler_wl='-Wl,' 8604 lt_prog_compiler_pic='-qpic' 8605 lt_prog_compiler_static='-qstaticlink' 8606 ;; 8607 *) 8608 case `$CC -V 2>&1 | sed 5q` in 8609 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8610 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8611 lt_prog_compiler_pic='-KPIC' 8612 lt_prog_compiler_static='-Bstatic' 8613 lt_prog_compiler_wl='' 8614 ;; 8615 *Sun\ F* | *Sun*Fortran*) 8616 lt_prog_compiler_pic='-KPIC' 8617 lt_prog_compiler_static='-Bstatic' 8618 lt_prog_compiler_wl='-Qoption ld ' 8619 ;; 8620 *Sun\ C*) 8621 # Sun C 5.9 8622 lt_prog_compiler_pic='-KPIC' 8623 lt_prog_compiler_static='-Bstatic' 8624 lt_prog_compiler_wl='-Wl,' 8625 ;; 8626 *Intel*\ [CF]*Compiler*) 8627 lt_prog_compiler_wl='-Wl,' 8628 lt_prog_compiler_pic='-fPIC' 8629 lt_prog_compiler_static='-static' 8630 ;; 8631 *Portland\ Group*) 8632 lt_prog_compiler_wl='-Wl,' 8633 lt_prog_compiler_pic='-fpic' 8634 lt_prog_compiler_static='-Bstatic' 8635 ;; 8636 esac 8637 ;; 8638 esac 8639 ;; 8640 8641 newsos6) 8642 lt_prog_compiler_pic='-KPIC' 8643 lt_prog_compiler_static='-Bstatic' 8644 ;; 8645 8646 *nto* | *qnx*) 8647 # QNX uses GNU C++, but need to define -shared option too, otherwise 8648 # it will coredump. 8649 lt_prog_compiler_pic='-fPIC -shared' 8650 ;; 8651 8652 osf3* | osf4* | osf5*) 8653 lt_prog_compiler_wl='-Wl,' 8654 # All OSF/1 code is PIC. 8655 lt_prog_compiler_static='-non_shared' 8656 ;; 8657 8658 rdos*) 8659 lt_prog_compiler_static='-non_shared' 8660 ;; 8661 8662 solaris*) 8663 lt_prog_compiler_pic='-KPIC' 8664 lt_prog_compiler_static='-Bstatic' 8665 case $cc_basename in 8666 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8667 lt_prog_compiler_wl='-Qoption ld ';; 8668 *) 8669 lt_prog_compiler_wl='-Wl,';; 8670 esac 8671 ;; 8672 8673 sunos4*) 8674 lt_prog_compiler_wl='-Qoption ld ' 8675 lt_prog_compiler_pic='-PIC' 8676 lt_prog_compiler_static='-Bstatic' 8677 ;; 8678 8679 sysv4 | sysv4.2uw2* | sysv4.3*) 8680 lt_prog_compiler_wl='-Wl,' 8681 lt_prog_compiler_pic='-KPIC' 8682 lt_prog_compiler_static='-Bstatic' 8683 ;; 8684 8685 sysv4*MP*) 8686 if test -d /usr/nec; then 8687 lt_prog_compiler_pic='-Kconform_pic' 8688 lt_prog_compiler_static='-Bstatic' 8689 fi 8690 ;; 8691 8692 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8693 lt_prog_compiler_wl='-Wl,' 8694 lt_prog_compiler_pic='-KPIC' 8695 lt_prog_compiler_static='-Bstatic' 8696 ;; 8697 8698 unicos*) 8699 lt_prog_compiler_wl='-Wl,' 8700 lt_prog_compiler_can_build_shared=no 8701 ;; 8702 8703 uts4*) 8704 lt_prog_compiler_pic='-pic' 8705 lt_prog_compiler_static='-Bstatic' 8706 ;; 8707 8708 *) 8709 lt_prog_compiler_can_build_shared=no 8710 ;; 8711 esac 8712 fi 8713 8714case $host_os in 8715 # For platforms that do not support PIC, -DPIC is meaningless: 8716 *djgpp*) 8717 lt_prog_compiler_pic= 8718 ;; 8719 *) 8720 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8721 ;; 8722esac 8723 8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8725$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8726if ${lt_cv_prog_compiler_pic+:} false; then : 8727 $as_echo_n "(cached) " >&6 8728else 8729 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8730fi 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8732$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8733lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8734 8735# 8736# Check to make sure the PIC flag actually works. 8737# 8738if test -n "$lt_prog_compiler_pic"; then 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8740$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8741if ${lt_cv_prog_compiler_pic_works+:} false; then : 8742 $as_echo_n "(cached) " >&6 8743else 8744 lt_cv_prog_compiler_pic_works=no 8745 ac_outfile=conftest.$ac_objext 8746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8747 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8748 # Insert the option either (1) after the last *FLAGS variable, or 8749 # (2) before a word containing "conftest.", or (3) at the end. 8750 # Note that $ac_compile itself does not contain backslashes and begins 8751 # with a dollar sign (not a hyphen), so the echo should work correctly. 8752 # The option is referenced via a variable to avoid confusing sed. 8753 lt_compile=`echo "$ac_compile" | $SED \ 8754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8756 -e 's:$: $lt_compiler_flag:'` 8757 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8758 (eval "$lt_compile" 2>conftest.err) 8759 ac_status=$? 8760 cat conftest.err >&5 8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8762 if (exit $ac_status) && test -s "$ac_outfile"; then 8763 # The compiler can only warn and ignore the option if not recognized 8764 # So say no if there are warnings other than the usual output. 8765 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8766 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8767 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8768 lt_cv_prog_compiler_pic_works=yes 8769 fi 8770 fi 8771 $RM conftest* 8772 8773fi 8774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8775$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8776 8777if test yes = "$lt_cv_prog_compiler_pic_works"; then 8778 case $lt_prog_compiler_pic in 8779 "" | " "*) ;; 8780 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8781 esac 8782else 8783 lt_prog_compiler_pic= 8784 lt_prog_compiler_can_build_shared=no 8785fi 8786 8787fi 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799# 8800# Check to make sure the static flag actually works. 8801# 8802wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8804$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8805if ${lt_cv_prog_compiler_static_works+:} false; then : 8806 $as_echo_n "(cached) " >&6 8807else 8808 lt_cv_prog_compiler_static_works=no 8809 save_LDFLAGS=$LDFLAGS 8810 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8811 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8812 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8813 # The linker can only warn and ignore the option if not recognized 8814 # So say no if there are warnings 8815 if test -s conftest.err; then 8816 # Append any errors to the config.log. 8817 cat conftest.err 1>&5 8818 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8820 if diff conftest.exp conftest.er2 >/dev/null; then 8821 lt_cv_prog_compiler_static_works=yes 8822 fi 8823 else 8824 lt_cv_prog_compiler_static_works=yes 8825 fi 8826 fi 8827 $RM -r conftest* 8828 LDFLAGS=$save_LDFLAGS 8829 8830fi 8831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8832$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8833 8834if test yes = "$lt_cv_prog_compiler_static_works"; then 8835 : 8836else 8837 lt_prog_compiler_static= 8838fi 8839 8840 8841 8842 8843 8844 8845 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8847$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8848if ${lt_cv_prog_compiler_c_o+:} false; then : 8849 $as_echo_n "(cached) " >&6 8850else 8851 lt_cv_prog_compiler_c_o=no 8852 $RM -r conftest 2>/dev/null 8853 mkdir conftest 8854 cd conftest 8855 mkdir out 8856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8857 8858 lt_compiler_flag="-o out/conftest2.$ac_objext" 8859 # Insert the option either (1) after the last *FLAGS variable, or 8860 # (2) before a word containing "conftest.", or (3) at the end. 8861 # Note that $ac_compile itself does not contain backslashes and begins 8862 # with a dollar sign (not a hyphen), so the echo should work correctly. 8863 lt_compile=`echo "$ac_compile" | $SED \ 8864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8866 -e 's:$: $lt_compiler_flag:'` 8867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8868 (eval "$lt_compile" 2>out/conftest.err) 8869 ac_status=$? 8870 cat out/conftest.err >&5 8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8872 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8873 then 8874 # The compiler can only warn and ignore the option if not recognized 8875 # So say no if there are warnings 8876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8879 lt_cv_prog_compiler_c_o=yes 8880 fi 8881 fi 8882 chmod u+w . 2>&5 8883 $RM conftest* 8884 # SGI C++ compiler will create directory out/ii_files/ for 8885 # template instantiation 8886 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8887 $RM out/* && rmdir out 8888 cd .. 8889 $RM -r conftest 8890 $RM conftest* 8891 8892fi 8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8894$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8895 8896 8897 8898 8899 8900 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8902$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8903if ${lt_cv_prog_compiler_c_o+:} false; then : 8904 $as_echo_n "(cached) " >&6 8905else 8906 lt_cv_prog_compiler_c_o=no 8907 $RM -r conftest 2>/dev/null 8908 mkdir conftest 8909 cd conftest 8910 mkdir out 8911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8912 8913 lt_compiler_flag="-o out/conftest2.$ac_objext" 8914 # Insert the option either (1) after the last *FLAGS variable, or 8915 # (2) before a word containing "conftest.", or (3) at the end. 8916 # Note that $ac_compile itself does not contain backslashes and begins 8917 # with a dollar sign (not a hyphen), so the echo should work correctly. 8918 lt_compile=`echo "$ac_compile" | $SED \ 8919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8921 -e 's:$: $lt_compiler_flag:'` 8922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8923 (eval "$lt_compile" 2>out/conftest.err) 8924 ac_status=$? 8925 cat out/conftest.err >&5 8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8927 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8928 then 8929 # The compiler can only warn and ignore the option if not recognized 8930 # So say no if there are warnings 8931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8934 lt_cv_prog_compiler_c_o=yes 8935 fi 8936 fi 8937 chmod u+w . 2>&5 8938 $RM conftest* 8939 # SGI C++ compiler will create directory out/ii_files/ for 8940 # template instantiation 8941 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8942 $RM out/* && rmdir out 8943 cd .. 8944 $RM -r conftest 8945 $RM conftest* 8946 8947fi 8948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8949$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8950 8951 8952 8953 8954hard_links=nottested 8955if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8956 # do not overwrite the value of need_locks provided by the user 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8958$as_echo_n "checking if we can lock with hard links... " >&6; } 8959 hard_links=yes 8960 $RM conftest* 8961 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8962 touch conftest.a 8963 ln conftest.a conftest.b 2>&5 || hard_links=no 8964 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8966$as_echo "$hard_links" >&6; } 8967 if test no = "$hard_links"; then 8968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8969$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8970 need_locks=warn 8971 fi 8972else 8973 need_locks=no 8974fi 8975 8976 8977 8978 8979 8980 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8982$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8983 8984 runpath_var= 8985 allow_undefined_flag= 8986 always_export_symbols=no 8987 archive_cmds= 8988 archive_expsym_cmds= 8989 compiler_needs_object=no 8990 enable_shared_with_static_runtimes=no 8991 export_dynamic_flag_spec= 8992 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8993 hardcode_automatic=no 8994 hardcode_direct=no 8995 hardcode_direct_absolute=no 8996 hardcode_libdir_flag_spec= 8997 hardcode_libdir_separator= 8998 hardcode_minus_L=no 8999 hardcode_shlibpath_var=unsupported 9000 inherit_rpath=no 9001 link_all_deplibs=unknown 9002 module_cmds= 9003 module_expsym_cmds= 9004 old_archive_from_new_cmds= 9005 old_archive_from_expsyms_cmds= 9006 thread_safe_flag_spec= 9007 whole_archive_flag_spec= 9008 # include_expsyms should be a list of space-separated symbols to be *always* 9009 # included in the symbol list 9010 include_expsyms= 9011 # exclude_expsyms can be an extended regexp of symbols to exclude 9012 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9013 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9014 # as well as any symbol that contains 'd'. 9015 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9016 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9017 # platforms (ab)use it in PIC code, but their linkers get confused if 9018 # the symbol is explicitly referenced. Since portable code cannot 9019 # rely on this symbol name, it's probably fine to never include it in 9020 # preloaded symbol tables. 9021 # Exclude shared library initialization/finalization symbols. 9022 extract_expsyms_cmds= 9023 9024 case $host_os in 9025 cygwin* | mingw* | pw32* | cegcc*) 9026 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9027 # When not using gcc, we currently assume that we are using 9028 # Microsoft Visual C++. 9029 if test yes != "$GCC"; then 9030 with_gnu_ld=no 9031 fi 9032 ;; 9033 interix*) 9034 # we just hope/assume this is gcc and not c89 (= MSVC++) 9035 with_gnu_ld=yes 9036 ;; 9037 openbsd* | bitrig*) 9038 with_gnu_ld=no 9039 ;; 9040 esac 9041 9042 ld_shlibs=yes 9043 9044 # On some targets, GNU ld is compatible enough with the native linker 9045 # that we're better off using the native interface for both. 9046 lt_use_gnu_ld_interface=no 9047 if test yes = "$with_gnu_ld"; then 9048 case $host_os in 9049 aix*) 9050 # The AIX port of GNU ld has always aspired to compatibility 9051 # with the native linker. However, as the warning in the GNU ld 9052 # block says, versions before 2.19.5* couldn't really create working 9053 # shared libraries, regardless of the interface used. 9054 case `$LD -v 2>&1` in 9055 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9056 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9057 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9058 *) 9059 lt_use_gnu_ld_interface=yes 9060 ;; 9061 esac 9062 ;; 9063 *) 9064 lt_use_gnu_ld_interface=yes 9065 ;; 9066 esac 9067 fi 9068 9069 if test yes = "$lt_use_gnu_ld_interface"; then 9070 # If archive_cmds runs LD, not CC, wlarc should be empty 9071 wlarc='$wl' 9072 9073 # Set some defaults for GNU ld with shared library support. These 9074 # are reset later if shared libraries are not supported. Putting them 9075 # here allows them to be overridden if necessary. 9076 runpath_var=LD_RUN_PATH 9077 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9078 export_dynamic_flag_spec='$wl--export-dynamic' 9079 # ancient GNU ld didn't support --whole-archive et. al. 9080 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9081 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9082 else 9083 whole_archive_flag_spec= 9084 fi 9085 supports_anon_versioning=no 9086 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9087 *GNU\ gold*) supports_anon_versioning=yes ;; 9088 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9089 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9090 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9091 *\ 2.11.*) ;; # other 2.11 versions 9092 *) supports_anon_versioning=yes ;; 9093 esac 9094 9095 # See if GNU ld supports shared libraries. 9096 case $host_os in 9097 aix[3-9]*) 9098 # On AIX/PPC, the GNU linker is very broken 9099 if test ia64 != "$host_cpu"; then 9100 ld_shlibs=no 9101 cat <<_LT_EOF 1>&2 9102 9103*** Warning: the GNU linker, at least up to release 2.19, is reported 9104*** to be unable to reliably create shared libraries on AIX. 9105*** Therefore, libtool is disabling shared libraries support. If you 9106*** really care for shared libraries, you may want to install binutils 9107*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9108*** You will then need to restart the configuration process. 9109 9110_LT_EOF 9111 fi 9112 ;; 9113 9114 amigaos*) 9115 case $host_cpu in 9116 powerpc) 9117 # see comment about AmigaOS4 .so support 9118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9119 archive_expsym_cmds='' 9120 ;; 9121 m68k) 9122 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)' 9123 hardcode_libdir_flag_spec='-L$libdir' 9124 hardcode_minus_L=yes 9125 ;; 9126 esac 9127 ;; 9128 9129 beos*) 9130 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9131 allow_undefined_flag=unsupported 9132 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9133 # support --undefined. This deserves some investigation. FIXME 9134 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9135 else 9136 ld_shlibs=no 9137 fi 9138 ;; 9139 9140 cygwin* | mingw* | pw32* | cegcc*) 9141 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9142 # as there is no search path for DLLs. 9143 hardcode_libdir_flag_spec='-L$libdir' 9144 export_dynamic_flag_spec='$wl--export-all-symbols' 9145 allow_undefined_flag=unsupported 9146 always_export_symbols=no 9147 enable_shared_with_static_runtimes=yes 9148 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' 9149 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9150 9151 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9153 # If the export-symbols file already is a .def file, use it as 9154 # is; otherwise, prepend EXPORTS... 9155 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9156 cp $export_symbols $output_objdir/$soname.def; 9157 else 9158 echo EXPORTS > $output_objdir/$soname.def; 9159 cat $export_symbols >> $output_objdir/$soname.def; 9160 fi~ 9161 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9162 else 9163 ld_shlibs=no 9164 fi 9165 ;; 9166 9167 haiku*) 9168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9169 link_all_deplibs=yes 9170 ;; 9171 9172 os2*) 9173 hardcode_libdir_flag_spec='-L$libdir' 9174 hardcode_minus_L=yes 9175 allow_undefined_flag=unsupported 9176 shrext_cmds=.dll 9177 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9178 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9179 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9180 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9181 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9182 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9183 emximp -o $lib $output_objdir/$libname.def' 9184 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9185 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9186 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9187 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9188 prefix_cmds="$SED"~ 9189 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9190 prefix_cmds="$prefix_cmds -e 1d"; 9191 fi~ 9192 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9193 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9194 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9195 emximp -o $lib $output_objdir/$libname.def' 9196 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9197 enable_shared_with_static_runtimes=yes 9198 ;; 9199 9200 interix[3-9]*) 9201 hardcode_direct=no 9202 hardcode_shlibpath_var=no 9203 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9204 export_dynamic_flag_spec='$wl-E' 9205 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9206 # Instead, shared libraries are loaded at an image base (0x10000000 by 9207 # default) and relocated if they conflict, which is a slow very memory 9208 # consuming and fragmenting process. To avoid this, we pick a random, 9209 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9210 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9211 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9212 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' 9213 ;; 9214 9215 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9216 tmp_diet=no 9217 if test linux-dietlibc = "$host_os"; then 9218 case $cc_basename in 9219 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9220 esac 9221 fi 9222 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9223 && test no = "$tmp_diet" 9224 then 9225 tmp_addflag=' $pic_flag' 9226 tmp_sharedflag='-shared' 9227 case $cc_basename,$host_cpu in 9228 pgcc*) # Portland Group C compiler 9229 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' 9230 tmp_addflag=' $pic_flag' 9231 ;; 9232 pgf77* | pgf90* | pgf95* | pgfortran*) 9233 # Portland Group f77 and f90 compilers 9234 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' 9235 tmp_addflag=' $pic_flag -Mnomain' ;; 9236 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9237 tmp_addflag=' -i_dynamic' ;; 9238 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9239 tmp_addflag=' -i_dynamic -nofor_main' ;; 9240 ifc* | ifort*) # Intel Fortran compiler 9241 tmp_addflag=' -nofor_main' ;; 9242 lf95*) # Lahey Fortran 8.1 9243 whole_archive_flag_spec= 9244 tmp_sharedflag='--shared' ;; 9245 nagfor*) # NAGFOR 5.3 9246 tmp_sharedflag='-Wl,-shared' ;; 9247 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9248 tmp_sharedflag='-qmkshrobj' 9249 tmp_addflag= ;; 9250 nvcc*) # Cuda Compiler Driver 2.2 9251 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' 9252 compiler_needs_object=yes 9253 ;; 9254 esac 9255 case `$CC -V 2>&1 | sed 5q` in 9256 *Sun\ C*) # Sun C 5.9 9257 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' 9258 compiler_needs_object=yes 9259 tmp_sharedflag='-G' ;; 9260 *Sun\ F*) # Sun Fortran 8.3 9261 tmp_sharedflag='-G' ;; 9262 esac 9263 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9264 9265 if test yes = "$supports_anon_versioning"; then 9266 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9267 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9268 echo "local: *; };" >> $output_objdir/$libname.ver~ 9269 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9270 fi 9271 9272 case $cc_basename in 9273 tcc*) 9274 export_dynamic_flag_spec='-rdynamic' 9275 ;; 9276 xlf* | bgf* | bgxlf* | mpixlf*) 9277 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9278 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9279 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9280 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9281 if test yes = "$supports_anon_versioning"; then 9282 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9283 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9284 echo "local: *; };" >> $output_objdir/$libname.ver~ 9285 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9286 fi 9287 ;; 9288 esac 9289 else 9290 ld_shlibs=no 9291 fi 9292 ;; 9293 9294 netbsd*) 9295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9296 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9297 wlarc= 9298 else 9299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9300 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9301 fi 9302 ;; 9303 9304 solaris*) 9305 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9306 ld_shlibs=no 9307 cat <<_LT_EOF 1>&2 9308 9309*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9310*** create shared libraries on Solaris systems. Therefore, libtool 9311*** is disabling shared libraries support. We urge you to upgrade GNU 9312*** binutils to release 2.9.1 or newer. Another option is to modify 9313*** your PATH or compiler configuration so that the native linker is 9314*** used, and then restart. 9315 9316_LT_EOF 9317 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9318 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9319 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9320 else 9321 ld_shlibs=no 9322 fi 9323 ;; 9324 9325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9326 case `$LD -v 2>&1` in 9327 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9328 ld_shlibs=no 9329 cat <<_LT_EOF 1>&2 9330 9331*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9332*** reliably create shared libraries on SCO systems. Therefore, libtool 9333*** is disabling shared libraries support. We urge you to upgrade GNU 9334*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9335*** your PATH or compiler configuration so that the native linker is 9336*** used, and then restart. 9337 9338_LT_EOF 9339 ;; 9340 *) 9341 # For security reasons, it is highly recommended that you always 9342 # use absolute paths for naming shared libraries, and exclude the 9343 # DT_RUNPATH tag from executables and libraries. But doing so 9344 # requires that you compile everything twice, which is a pain. 9345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9346 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9348 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9349 else 9350 ld_shlibs=no 9351 fi 9352 ;; 9353 esac 9354 ;; 9355 9356 sunos4*) 9357 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9358 wlarc= 9359 hardcode_direct=yes 9360 hardcode_shlibpath_var=no 9361 ;; 9362 9363 *) 9364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9365 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9366 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9367 else 9368 ld_shlibs=no 9369 fi 9370 ;; 9371 esac 9372 9373 if test no = "$ld_shlibs"; then 9374 runpath_var= 9375 hardcode_libdir_flag_spec= 9376 export_dynamic_flag_spec= 9377 whole_archive_flag_spec= 9378 fi 9379 else 9380 # PORTME fill in a description of your system's linker (not GNU ld) 9381 case $host_os in 9382 aix3*) 9383 allow_undefined_flag=unsupported 9384 always_export_symbols=yes 9385 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' 9386 # Note: this linker hardcodes the directories in LIBPATH if there 9387 # are no directories specified by -L. 9388 hardcode_minus_L=yes 9389 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9390 # Neither direct hardcoding nor static linking is supported with a 9391 # broken collect2. 9392 hardcode_direct=unsupported 9393 fi 9394 ;; 9395 9396 aix[4-9]*) 9397 if test ia64 = "$host_cpu"; then 9398 # On IA64, the linker does run time linking by default, so we don't 9399 # have to do anything special. 9400 aix_use_runtimelinking=no 9401 exp_sym_flag='-Bexport' 9402 no_entry_flag= 9403 else 9404 # If we're using GNU nm, then we don't want the "-C" option. 9405 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9406 # Without the "-l" option, or with the "-B" option, AIX nm treats 9407 # weak defined symbols like other global defined symbols, whereas 9408 # GNU nm marks them as "W". 9409 # While the 'weak' keyword is ignored in the Export File, we need 9410 # it in the Import File for the 'aix-soname' feature, so we have 9411 # to replace the "-B" option with "-P" for AIX nm. 9412 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9413 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' 9414 else 9415 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' 9416 fi 9417 aix_use_runtimelinking=no 9418 9419 # Test if we are trying to use run time linking or normal 9420 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9421 # have runtime linking enabled, and use it for executables. 9422 # For shared libraries, we enable/disable runtime linking 9423 # depending on the kind of the shared library created - 9424 # when "with_aix_soname,aix_use_runtimelinking" is: 9425 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9426 # "aix,yes" lib.so shared, rtl:yes, for executables 9427 # lib.a static archive 9428 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9429 # lib.a(lib.so.V) shared, rtl:no, for executables 9430 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9431 # lib.a(lib.so.V) shared, rtl:no 9432 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9433 # lib.a static archive 9434 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9435 for ld_flag in $LDFLAGS; do 9436 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9437 aix_use_runtimelinking=yes 9438 break 9439 fi 9440 done 9441 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9442 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9443 # so we don't have lib.a shared libs to link our executables. 9444 # We have to force runtime linking in this case. 9445 aix_use_runtimelinking=yes 9446 LDFLAGS="$LDFLAGS -Wl,-brtl" 9447 fi 9448 ;; 9449 esac 9450 9451 exp_sym_flag='-bexport' 9452 no_entry_flag='-bnoentry' 9453 fi 9454 9455 # When large executables or shared objects are built, AIX ld can 9456 # have problems creating the table of contents. If linking a library 9457 # or program results in "error TOC overflow" add -mminimal-toc to 9458 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9459 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9460 9461 archive_cmds='' 9462 hardcode_direct=yes 9463 hardcode_direct_absolute=yes 9464 hardcode_libdir_separator=':' 9465 link_all_deplibs=yes 9466 file_list_spec='$wl-f,' 9467 case $with_aix_soname,$aix_use_runtimelinking in 9468 aix,*) ;; # traditional, no import file 9469 svr4,* | *,yes) # use import file 9470 # The Import File defines what to hardcode. 9471 hardcode_direct=no 9472 hardcode_direct_absolute=no 9473 ;; 9474 esac 9475 9476 if test yes = "$GCC"; then 9477 case $host_os in aix4.[012]|aix4.[012].*) 9478 # We only want to do this on AIX 4.2 and lower, the check 9479 # below for broken collect2 doesn't work under 4.3+ 9480 collect2name=`$CC -print-prog-name=collect2` 9481 if test -f "$collect2name" && 9482 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9483 then 9484 # We have reworked collect2 9485 : 9486 else 9487 # We have old collect2 9488 hardcode_direct=unsupported 9489 # It fails to find uninstalled libraries when the uninstalled 9490 # path is not listed in the libpath. Setting hardcode_minus_L 9491 # to unsupported forces relinking 9492 hardcode_minus_L=yes 9493 hardcode_libdir_flag_spec='-L$libdir' 9494 hardcode_libdir_separator= 9495 fi 9496 ;; 9497 esac 9498 shared_flag='-shared' 9499 if test yes = "$aix_use_runtimelinking"; then 9500 shared_flag="$shared_flag "'$wl-G' 9501 fi 9502 # Need to ensure runtime linking is disabled for the traditional 9503 # shared library, or the linker may eventually find shared libraries 9504 # /with/ Import File - we do not want to mix them. 9505 shared_flag_aix='-shared' 9506 shared_flag_svr4='-shared $wl-G' 9507 else 9508 # not using gcc 9509 if test ia64 = "$host_cpu"; then 9510 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9511 # chokes on -Wl,-G. The following line is correct: 9512 shared_flag='-G' 9513 else 9514 if test yes = "$aix_use_runtimelinking"; then 9515 shared_flag='$wl-G' 9516 else 9517 shared_flag='$wl-bM:SRE' 9518 fi 9519 shared_flag_aix='$wl-bM:SRE' 9520 shared_flag_svr4='$wl-G' 9521 fi 9522 fi 9523 9524 export_dynamic_flag_spec='$wl-bexpall' 9525 # It seems that -bexpall does not export symbols beginning with 9526 # underscore (_), so it is better to generate a list of symbols to export. 9527 always_export_symbols=yes 9528 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9529 # Warning - without using the other runtime loading flags (-brtl), 9530 # -berok will link without error, but may produce a broken library. 9531 allow_undefined_flag='-berok' 9532 # Determine the default libpath from the value encoded in an 9533 # empty executable. 9534 if test set = "${lt_cv_aix_libpath+set}"; then 9535 aix_libpath=$lt_cv_aix_libpath 9536else 9537 if ${lt_cv_aix_libpath_+:} false; then : 9538 $as_echo_n "(cached) " >&6 9539else 9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9541/* end confdefs.h. */ 9542 9543int 9544main () 9545{ 9546 9547 ; 9548 return 0; 9549} 9550_ACEOF 9551if ac_fn_c_try_link "$LINENO"; then : 9552 9553 lt_aix_libpath_sed=' 9554 /Import File Strings/,/^$/ { 9555 /^0/ { 9556 s/^0 *\([^ ]*\) *$/\1/ 9557 p 9558 } 9559 }' 9560 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9561 # Check for a 64-bit object if we didn't find anything. 9562 if test -z "$lt_cv_aix_libpath_"; then 9563 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9564 fi 9565fi 9566rm -f core conftest.err conftest.$ac_objext \ 9567 conftest$ac_exeext conftest.$ac_ext 9568 if test -z "$lt_cv_aix_libpath_"; then 9569 lt_cv_aix_libpath_=/usr/lib:/lib 9570 fi 9571 9572fi 9573 9574 aix_libpath=$lt_cv_aix_libpath_ 9575fi 9576 9577 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9578 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 9579 else 9580 if test ia64 = "$host_cpu"; then 9581 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9582 allow_undefined_flag="-z nodefs" 9583 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" 9584 else 9585 # Determine the default libpath from the value encoded in an 9586 # empty executable. 9587 if test set = "${lt_cv_aix_libpath+set}"; then 9588 aix_libpath=$lt_cv_aix_libpath 9589else 9590 if ${lt_cv_aix_libpath_+:} false; then : 9591 $as_echo_n "(cached) " >&6 9592else 9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9594/* end confdefs.h. */ 9595 9596int 9597main () 9598{ 9599 9600 ; 9601 return 0; 9602} 9603_ACEOF 9604if ac_fn_c_try_link "$LINENO"; then : 9605 9606 lt_aix_libpath_sed=' 9607 /Import File Strings/,/^$/ { 9608 /^0/ { 9609 s/^0 *\([^ ]*\) *$/\1/ 9610 p 9611 } 9612 }' 9613 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9614 # Check for a 64-bit object if we didn't find anything. 9615 if test -z "$lt_cv_aix_libpath_"; then 9616 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9617 fi 9618fi 9619rm -f core conftest.err conftest.$ac_objext \ 9620 conftest$ac_exeext conftest.$ac_ext 9621 if test -z "$lt_cv_aix_libpath_"; then 9622 lt_cv_aix_libpath_=/usr/lib:/lib 9623 fi 9624 9625fi 9626 9627 aix_libpath=$lt_cv_aix_libpath_ 9628fi 9629 9630 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9631 # Warning - without using the other run time loading flags, 9632 # -berok will link without error, but may produce a broken library. 9633 no_undefined_flag=' $wl-bernotok' 9634 allow_undefined_flag=' $wl-berok' 9635 if test yes = "$with_gnu_ld"; then 9636 # We only use this code for GNU lds that support --whole-archive. 9637 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9638 else 9639 # Exported symbols can be pulled into shared objects from archives 9640 whole_archive_flag_spec='$convenience' 9641 fi 9642 archive_cmds_need_lc=yes 9643 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9644 # -brtl affects multiple linker settings, -berok does not and is overridden later 9645 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9646 if test svr4 != "$with_aix_soname"; then 9647 # This is similar to how AIX traditionally builds its shared libraries. 9648 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' 9649 fi 9650 if test aix != "$with_aix_soname"; then 9651 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' 9652 else 9653 # used by -dlpreopen to get the symbols 9654 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9655 fi 9656 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9657 fi 9658 fi 9659 ;; 9660 9661 amigaos*) 9662 case $host_cpu in 9663 powerpc) 9664 # see comment about AmigaOS4 .so support 9665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9666 archive_expsym_cmds='' 9667 ;; 9668 m68k) 9669 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)' 9670 hardcode_libdir_flag_spec='-L$libdir' 9671 hardcode_minus_L=yes 9672 ;; 9673 esac 9674 ;; 9675 9676 bsdi[45]*) 9677 export_dynamic_flag_spec=-rdynamic 9678 ;; 9679 9680 cygwin* | mingw* | pw32* | cegcc*) 9681 # When not using gcc, we currently assume that we are using 9682 # Microsoft Visual C++. 9683 # hardcode_libdir_flag_spec is actually meaningless, as there is 9684 # no search path for DLLs. 9685 case $cc_basename in 9686 cl*) 9687 # Native MSVC 9688 hardcode_libdir_flag_spec=' ' 9689 allow_undefined_flag=unsupported 9690 always_export_symbols=yes 9691 file_list_spec='@' 9692 # Tell ltmain to make .lib files, not .a files. 9693 libext=lib 9694 # Tell ltmain to make .dll files, not .so files. 9695 shrext_cmds=.dll 9696 # FIXME: Setting linknames here is a bad hack. 9697 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9698 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9699 cp "$export_symbols" "$output_objdir/$soname.def"; 9700 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9701 else 9702 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9703 fi~ 9704 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9705 linknames=' 9706 # The linker will not automatically build a static lib if we build a DLL. 9707 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9708 enable_shared_with_static_runtimes=yes 9709 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9710 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9711 # Don't use ranlib 9712 old_postinstall_cmds='chmod 644 $oldlib' 9713 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9714 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9715 case $lt_outputfile in 9716 *.exe|*.EXE) ;; 9717 *) 9718 lt_outputfile=$lt_outputfile.exe 9719 lt_tool_outputfile=$lt_tool_outputfile.exe 9720 ;; 9721 esac~ 9722 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9723 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9724 $RM "$lt_outputfile.manifest"; 9725 fi' 9726 ;; 9727 *) 9728 # Assume MSVC wrapper 9729 hardcode_libdir_flag_spec=' ' 9730 allow_undefined_flag=unsupported 9731 # Tell ltmain to make .lib files, not .a files. 9732 libext=lib 9733 # Tell ltmain to make .dll files, not .so files. 9734 shrext_cmds=.dll 9735 # FIXME: Setting linknames here is a bad hack. 9736 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9737 # The linker will automatically build a .lib file if we build a DLL. 9738 old_archive_from_new_cmds='true' 9739 # FIXME: Should let the user specify the lib program. 9740 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9741 enable_shared_with_static_runtimes=yes 9742 ;; 9743 esac 9744 ;; 9745 9746 darwin* | rhapsody*) 9747 9748 9749 archive_cmds_need_lc=no 9750 hardcode_direct=no 9751 hardcode_automatic=yes 9752 hardcode_shlibpath_var=unsupported 9753 if test yes = "$lt_cv_ld_force_load"; then 9754 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\"`' 9755 9756 else 9757 whole_archive_flag_spec='' 9758 fi 9759 link_all_deplibs=yes 9760 allow_undefined_flag=$_lt_dar_allow_undefined 9761 case $cc_basename in 9762 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9763 *) _lt_dar_can_shared=$GCC ;; 9764 esac 9765 if test yes = "$_lt_dar_can_shared"; then 9766 output_verbose_link_cmd=func_echo_all 9767 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9768 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9769 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" 9770 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" 9771 9772 else 9773 ld_shlibs=no 9774 fi 9775 9776 ;; 9777 9778 dgux*) 9779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9780 hardcode_libdir_flag_spec='-L$libdir' 9781 hardcode_shlibpath_var=no 9782 ;; 9783 9784 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9785 # support. Future versions do this automatically, but an explicit c++rt0.o 9786 # does not break anything, and helps significantly (at the cost of a little 9787 # extra space). 9788 freebsd2.2*) 9789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9790 hardcode_libdir_flag_spec='-R$libdir' 9791 hardcode_direct=yes 9792 hardcode_shlibpath_var=no 9793 ;; 9794 9795 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9796 freebsd2.*) 9797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9798 hardcode_direct=yes 9799 hardcode_minus_L=yes 9800 hardcode_shlibpath_var=no 9801 ;; 9802 9803 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9804 freebsd* | dragonfly*) 9805 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9806 hardcode_libdir_flag_spec='-R$libdir' 9807 hardcode_direct=yes 9808 hardcode_shlibpath_var=no 9809 ;; 9810 9811 hpux9*) 9812 if test yes = "$GCC"; then 9813 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' 9814 else 9815 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' 9816 fi 9817 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9818 hardcode_libdir_separator=: 9819 hardcode_direct=yes 9820 9821 # hardcode_minus_L: Not really in the search PATH, 9822 # but as the default location of the library. 9823 hardcode_minus_L=yes 9824 export_dynamic_flag_spec='$wl-E' 9825 ;; 9826 9827 hpux10*) 9828 if test yes,no = "$GCC,$with_gnu_ld"; then 9829 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9830 else 9831 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9832 fi 9833 if test no = "$with_gnu_ld"; then 9834 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9835 hardcode_libdir_separator=: 9836 hardcode_direct=yes 9837 hardcode_direct_absolute=yes 9838 export_dynamic_flag_spec='$wl-E' 9839 # hardcode_minus_L: Not really in the search PATH, 9840 # but as the default location of the library. 9841 hardcode_minus_L=yes 9842 fi 9843 ;; 9844 9845 hpux11*) 9846 if test yes,no = "$GCC,$with_gnu_ld"; then 9847 case $host_cpu in 9848 hppa*64*) 9849 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9850 ;; 9851 ia64*) 9852 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9853 ;; 9854 *) 9855 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9856 ;; 9857 esac 9858 else 9859 case $host_cpu in 9860 hppa*64*) 9861 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9862 ;; 9863 ia64*) 9864 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9865 ;; 9866 *) 9867 9868 # Older versions of the 11.00 compiler do not understand -b yet 9869 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9871$as_echo_n "checking if $CC understands -b... " >&6; } 9872if ${lt_cv_prog_compiler__b+:} false; then : 9873 $as_echo_n "(cached) " >&6 9874else 9875 lt_cv_prog_compiler__b=no 9876 save_LDFLAGS=$LDFLAGS 9877 LDFLAGS="$LDFLAGS -b" 9878 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9879 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9880 # The linker can only warn and ignore the option if not recognized 9881 # So say no if there are warnings 9882 if test -s conftest.err; then 9883 # Append any errors to the config.log. 9884 cat conftest.err 1>&5 9885 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9887 if diff conftest.exp conftest.er2 >/dev/null; then 9888 lt_cv_prog_compiler__b=yes 9889 fi 9890 else 9891 lt_cv_prog_compiler__b=yes 9892 fi 9893 fi 9894 $RM -r conftest* 9895 LDFLAGS=$save_LDFLAGS 9896 9897fi 9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9899$as_echo "$lt_cv_prog_compiler__b" >&6; } 9900 9901if test yes = "$lt_cv_prog_compiler__b"; then 9902 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9903else 9904 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9905fi 9906 9907 ;; 9908 esac 9909 fi 9910 if test no = "$with_gnu_ld"; then 9911 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9912 hardcode_libdir_separator=: 9913 9914 case $host_cpu in 9915 hppa*64*|ia64*) 9916 hardcode_direct=no 9917 hardcode_shlibpath_var=no 9918 ;; 9919 *) 9920 hardcode_direct=yes 9921 hardcode_direct_absolute=yes 9922 export_dynamic_flag_spec='$wl-E' 9923 9924 # hardcode_minus_L: Not really in the search PATH, 9925 # but as the default location of the library. 9926 hardcode_minus_L=yes 9927 ;; 9928 esac 9929 fi 9930 ;; 9931 9932 irix5* | irix6* | nonstopux*) 9933 if test yes = "$GCC"; then 9934 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' 9935 # Try to use the -exported_symbol ld option, if it does not 9936 # work, assume that -exports_file does not work either and 9937 # implicitly export all symbols. 9938 # This should be the same for all languages, so no per-tag cache variable. 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9940$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9941if ${lt_cv_irix_exported_symbol+:} false; then : 9942 $as_echo_n "(cached) " >&6 9943else 9944 save_LDFLAGS=$LDFLAGS 9945 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9947/* end confdefs.h. */ 9948int foo (void) { return 0; } 9949_ACEOF 9950if ac_fn_c_try_link "$LINENO"; then : 9951 lt_cv_irix_exported_symbol=yes 9952else 9953 lt_cv_irix_exported_symbol=no 9954fi 9955rm -f core conftest.err conftest.$ac_objext \ 9956 conftest$ac_exeext conftest.$ac_ext 9957 LDFLAGS=$save_LDFLAGS 9958fi 9959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9960$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9961 if test yes = "$lt_cv_irix_exported_symbol"; then 9962 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' 9963 fi 9964 else 9965 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' 9966 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' 9967 fi 9968 archive_cmds_need_lc='no' 9969 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9970 hardcode_libdir_separator=: 9971 inherit_rpath=yes 9972 link_all_deplibs=yes 9973 ;; 9974 9975 linux*) 9976 case $cc_basename in 9977 tcc*) 9978 # Fabrice Bellard et al's Tiny C Compiler 9979 ld_shlibs=yes 9980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9981 ;; 9982 esac 9983 ;; 9984 9985 netbsd*) 9986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9988 else 9989 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9990 fi 9991 hardcode_libdir_flag_spec='-R$libdir' 9992 hardcode_direct=yes 9993 hardcode_shlibpath_var=no 9994 ;; 9995 9996 newsos6) 9997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9998 hardcode_direct=yes 9999 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10000 hardcode_libdir_separator=: 10001 hardcode_shlibpath_var=no 10002 ;; 10003 10004 *nto* | *qnx*) 10005 ;; 10006 10007 openbsd* | bitrig*) 10008 if test -f /usr/libexec/ld.so; then 10009 hardcode_direct=yes 10010 hardcode_shlibpath_var=no 10011 hardcode_direct_absolute=yes 10012 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10013 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10014 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10015 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10016 export_dynamic_flag_spec='$wl-E' 10017 else 10018 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10019 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10020 fi 10021 else 10022 ld_shlibs=no 10023 fi 10024 ;; 10025 10026 os2*) 10027 hardcode_libdir_flag_spec='-L$libdir' 10028 hardcode_minus_L=yes 10029 allow_undefined_flag=unsupported 10030 shrext_cmds=.dll 10031 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10032 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10033 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10034 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10035 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10036 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10037 emximp -o $lib $output_objdir/$libname.def' 10038 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10039 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10040 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10041 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10042 prefix_cmds="$SED"~ 10043 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10044 prefix_cmds="$prefix_cmds -e 1d"; 10045 fi~ 10046 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10047 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10048 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10049 emximp -o $lib $output_objdir/$libname.def' 10050 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10051 enable_shared_with_static_runtimes=yes 10052 ;; 10053 10054 osf3*) 10055 if test yes = "$GCC"; then 10056 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10057 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' 10058 else 10059 allow_undefined_flag=' -expect_unresolved \*' 10060 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' 10061 fi 10062 archive_cmds_need_lc='no' 10063 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10064 hardcode_libdir_separator=: 10065 ;; 10066 10067 osf4* | osf5*) # as osf3* with the addition of -msym flag 10068 if test yes = "$GCC"; then 10069 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10070 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' 10071 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10072 else 10073 allow_undefined_flag=' -expect_unresolved \*' 10074 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' 10075 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~ 10076 $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' 10077 10078 # Both c and cxx compiler support -rpath directly 10079 hardcode_libdir_flag_spec='-rpath $libdir' 10080 fi 10081 archive_cmds_need_lc='no' 10082 hardcode_libdir_separator=: 10083 ;; 10084 10085 solaris*) 10086 no_undefined_flag=' -z defs' 10087 if test yes = "$GCC"; then 10088 wlarc='$wl' 10089 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10090 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10091 $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' 10092 else 10093 case `$CC -V 2>&1` in 10094 *"Compilers 5.0"*) 10095 wlarc='' 10096 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10097 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10098 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10099 ;; 10100 *) 10101 wlarc='$wl' 10102 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10103 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10104 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10105 ;; 10106 esac 10107 fi 10108 hardcode_libdir_flag_spec='-R$libdir' 10109 hardcode_shlibpath_var=no 10110 case $host_os in 10111 solaris2.[0-5] | solaris2.[0-5].*) ;; 10112 *) 10113 # The compiler driver will combine and reorder linker options, 10114 # but understands '-z linker_flag'. GCC discards it without '$wl', 10115 # but is careful enough not to reorder. 10116 # Supported since Solaris 2.6 (maybe 2.5.1?) 10117 if test yes = "$GCC"; then 10118 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10119 else 10120 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10121 fi 10122 ;; 10123 esac 10124 link_all_deplibs=yes 10125 ;; 10126 10127 sunos4*) 10128 if test sequent = "$host_vendor"; then 10129 # Use $CC to link under sequent, because it throws in some extra .o 10130 # files that make .init and .fini sections work. 10131 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10132 else 10133 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10134 fi 10135 hardcode_libdir_flag_spec='-L$libdir' 10136 hardcode_direct=yes 10137 hardcode_minus_L=yes 10138 hardcode_shlibpath_var=no 10139 ;; 10140 10141 sysv4) 10142 case $host_vendor in 10143 sni) 10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10145 hardcode_direct=yes # is this really true??? 10146 ;; 10147 siemens) 10148 ## LD is ld it makes a PLAMLIB 10149 ## CC just makes a GrossModule. 10150 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10151 reload_cmds='$CC -r -o $output$reload_objs' 10152 hardcode_direct=no 10153 ;; 10154 motorola) 10155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10156 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10157 ;; 10158 esac 10159 runpath_var='LD_RUN_PATH' 10160 hardcode_shlibpath_var=no 10161 ;; 10162 10163 sysv4.3*) 10164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10165 hardcode_shlibpath_var=no 10166 export_dynamic_flag_spec='-Bexport' 10167 ;; 10168 10169 sysv4*MP*) 10170 if test -d /usr/nec; then 10171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10172 hardcode_shlibpath_var=no 10173 runpath_var=LD_RUN_PATH 10174 hardcode_runpath_var=yes 10175 ld_shlibs=yes 10176 fi 10177 ;; 10178 10179 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10180 no_undefined_flag='$wl-z,text' 10181 archive_cmds_need_lc=no 10182 hardcode_shlibpath_var=no 10183 runpath_var='LD_RUN_PATH' 10184 10185 if test yes = "$GCC"; then 10186 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10187 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10188 else 10189 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10190 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10191 fi 10192 ;; 10193 10194 sysv5* | sco3.2v5* | sco5v6*) 10195 # Note: We CANNOT use -z defs as we might desire, because we do not 10196 # link with -lc, and that would cause any symbols used from libc to 10197 # always be unresolved, which means just about no library would 10198 # ever link correctly. If we're not using GNU ld we use -z text 10199 # though, which does catch some bad symbols but isn't as heavy-handed 10200 # as -z defs. 10201 no_undefined_flag='$wl-z,text' 10202 allow_undefined_flag='$wl-z,nodefs' 10203 archive_cmds_need_lc=no 10204 hardcode_shlibpath_var=no 10205 hardcode_libdir_flag_spec='$wl-R,$libdir' 10206 hardcode_libdir_separator=':' 10207 link_all_deplibs=yes 10208 export_dynamic_flag_spec='$wl-Bexport' 10209 runpath_var='LD_RUN_PATH' 10210 10211 if test yes = "$GCC"; then 10212 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10213 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10214 else 10215 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10216 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10217 fi 10218 ;; 10219 10220 uts4*) 10221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10222 hardcode_libdir_flag_spec='-L$libdir' 10223 hardcode_shlibpath_var=no 10224 ;; 10225 10226 *) 10227 ld_shlibs=no 10228 ;; 10229 esac 10230 10231 if test sni = "$host_vendor"; then 10232 case $host in 10233 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10234 export_dynamic_flag_spec='$wl-Blargedynsym' 10235 ;; 10236 esac 10237 fi 10238 fi 10239 10240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10241$as_echo "$ld_shlibs" >&6; } 10242test no = "$ld_shlibs" && can_build_shared=no 10243 10244with_gnu_ld=$with_gnu_ld 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260# 10261# Do we need to explicitly link libc? 10262# 10263case "x$archive_cmds_need_lc" in 10264x|xyes) 10265 # Assume -lc should be added 10266 archive_cmds_need_lc=yes 10267 10268 if test yes,yes = "$GCC,$enable_shared"; then 10269 case $archive_cmds in 10270 *'~'*) 10271 # FIXME: we may have to deal with multi-command sequences. 10272 ;; 10273 '$CC '*) 10274 # Test whether the compiler implicitly links with -lc since on some 10275 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10276 # to ld, don't add -lc before -lgcc. 10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10278$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10279if ${lt_cv_archive_cmds_need_lc+:} false; then : 10280 $as_echo_n "(cached) " >&6 10281else 10282 $RM conftest* 10283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10284 10285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10286 (eval $ac_compile) 2>&5 10287 ac_status=$? 10288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10289 test $ac_status = 0; } 2>conftest.err; then 10290 soname=conftest 10291 lib=conftest 10292 libobjs=conftest.$ac_objext 10293 deplibs= 10294 wl=$lt_prog_compiler_wl 10295 pic_flag=$lt_prog_compiler_pic 10296 compiler_flags=-v 10297 linker_flags=-v 10298 verstring= 10299 output_objdir=. 10300 libname=conftest 10301 lt_save_allow_undefined_flag=$allow_undefined_flag 10302 allow_undefined_flag= 10303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10304 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10305 ac_status=$? 10306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10307 test $ac_status = 0; } 10308 then 10309 lt_cv_archive_cmds_need_lc=no 10310 else 10311 lt_cv_archive_cmds_need_lc=yes 10312 fi 10313 allow_undefined_flag=$lt_save_allow_undefined_flag 10314 else 10315 cat conftest.err 1>&5 10316 fi 10317 $RM conftest* 10318 10319fi 10320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10321$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10322 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10323 ;; 10324 esac 10325 fi 10326 ;; 10327esac 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10481$as_echo_n "checking dynamic linker characteristics... " >&6; } 10482 10483if test yes = "$GCC"; then 10484 case $host_os in 10485 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10486 *) lt_awk_arg='/^libraries:/' ;; 10487 esac 10488 case $host_os in 10489 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10490 *) lt_sed_strip_eq='s|=/|/|g' ;; 10491 esac 10492 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10493 case $lt_search_path_spec in 10494 *\;*) 10495 # if the path contains ";" then we assume it to be the separator 10496 # otherwise default to the standard path separator (i.e. ":") - it is 10497 # assumed that no part of a normal pathname contains ";" but that should 10498 # okay in the real world where ";" in dirpaths is itself problematic. 10499 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10500 ;; 10501 *) 10502 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10503 ;; 10504 esac 10505 # Ok, now we have the path, separated by spaces, we can step through it 10506 # and add multilib dir if necessary... 10507 lt_tmp_lt_search_path_spec= 10508 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10509 # ...but if some path component already ends with the multilib dir we assume 10510 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10511 case "$lt_multi_os_dir; $lt_search_path_spec " in 10512 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10513 lt_multi_os_dir= 10514 ;; 10515 esac 10516 for lt_sys_path in $lt_search_path_spec; do 10517 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10518 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10519 elif test -n "$lt_multi_os_dir"; then 10520 test -d "$lt_sys_path" && \ 10521 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10522 fi 10523 done 10524 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10525BEGIN {RS = " "; FS = "/|\n";} { 10526 lt_foo = ""; 10527 lt_count = 0; 10528 for (lt_i = NF; lt_i > 0; lt_i--) { 10529 if ($lt_i != "" && $lt_i != ".") { 10530 if ($lt_i == "..") { 10531 lt_count++; 10532 } else { 10533 if (lt_count == 0) { 10534 lt_foo = "/" $lt_i lt_foo; 10535 } else { 10536 lt_count--; 10537 } 10538 } 10539 } 10540 } 10541 if (lt_foo != "") { lt_freq[lt_foo]++; } 10542 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10543}'` 10544 # AWK program above erroneously prepends '/' to C:/dos/paths 10545 # for these hosts. 10546 case $host_os in 10547 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10548 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10549 esac 10550 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10551else 10552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10553fi 10554library_names_spec= 10555libname_spec='lib$name' 10556soname_spec= 10557shrext_cmds=.so 10558postinstall_cmds= 10559postuninstall_cmds= 10560finish_cmds= 10561finish_eval= 10562shlibpath_var= 10563shlibpath_overrides_runpath=unknown 10564version_type=none 10565dynamic_linker="$host_os ld.so" 10566sys_lib_dlsearch_path_spec="/lib /usr/lib" 10567need_lib_prefix=unknown 10568hardcode_into_libs=no 10569 10570# when you set need_version to no, make sure it does not cause -set_version 10571# flags to be left without arguments 10572need_version=unknown 10573 10574 10575 10576case $host_os in 10577aix3*) 10578 version_type=linux # correct to gnu/linux during the next big refactor 10579 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10580 shlibpath_var=LIBPATH 10581 10582 # AIX 3 has no versioning support, so we append a major version to the name. 10583 soname_spec='$libname$release$shared_ext$major' 10584 ;; 10585 10586aix[4-9]*) 10587 version_type=linux # correct to gnu/linux during the next big refactor 10588 need_lib_prefix=no 10589 need_version=no 10590 hardcode_into_libs=yes 10591 if test ia64 = "$host_cpu"; then 10592 # AIX 5 supports IA64 10593 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10594 shlibpath_var=LD_LIBRARY_PATH 10595 else 10596 # With GCC up to 2.95.x, collect2 would create an import file 10597 # for dependence libraries. The import file would start with 10598 # the line '#! .'. This would cause the generated library to 10599 # depend on '.', always an invalid library. This was fixed in 10600 # development snapshots of GCC prior to 3.0. 10601 case $host_os in 10602 aix4 | aix4.[01] | aix4.[01].*) 10603 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10604 echo ' yes ' 10605 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10606 : 10607 else 10608 can_build_shared=no 10609 fi 10610 ;; 10611 esac 10612 # Using Import Files as archive members, it is possible to support 10613 # filename-based versioning of shared library archives on AIX. While 10614 # this would work for both with and without runtime linking, it will 10615 # prevent static linking of such archives. So we do filename-based 10616 # shared library versioning with .so extension only, which is used 10617 # when both runtime linking and shared linking is enabled. 10618 # Unfortunately, runtime linking may impact performance, so we do 10619 # not want this to be the default eventually. Also, we use the 10620 # versioned .so libs for executables only if there is the -brtl 10621 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10622 # To allow for filename-based versioning support, we need to create 10623 # libNAME.so.V as an archive file, containing: 10624 # *) an Import File, referring to the versioned filename of the 10625 # archive as well as the shared archive member, telling the 10626 # bitwidth (32 or 64) of that shared object, and providing the 10627 # list of exported symbols of that shared object, eventually 10628 # decorated with the 'weak' keyword 10629 # *) the shared object with the F_LOADONLY flag set, to really avoid 10630 # it being seen by the linker. 10631 # At run time we better use the real file rather than another symlink, 10632 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10633 10634 case $with_aix_soname,$aix_use_runtimelinking in 10635 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10636 # soname into executable. Probably we can add versioning support to 10637 # collect2, so additional links can be useful in future. 10638 aix,yes) # traditional libtool 10639 dynamic_linker='AIX unversionable lib.so' 10640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10641 # instead of lib<name>.a to let people know that these are not 10642 # typical AIX shared libraries. 10643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10644 ;; 10645 aix,no) # traditional AIX only 10646 dynamic_linker='AIX lib.a(lib.so.V)' 10647 # We preserve .a as extension for shared libraries through AIX4.2 10648 # and later when we are not doing run time linking. 10649 library_names_spec='$libname$release.a $libname.a' 10650 soname_spec='$libname$release$shared_ext$major' 10651 ;; 10652 svr4,*) # full svr4 only 10653 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10654 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10655 # We do not specify a path in Import Files, so LIBPATH fires. 10656 shlibpath_overrides_runpath=yes 10657 ;; 10658 *,yes) # both, prefer svr4 10659 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10660 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10661 # unpreferred sharedlib libNAME.a needs extra handling 10662 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"' 10663 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"' 10664 # We do not specify a path in Import Files, so LIBPATH fires. 10665 shlibpath_overrides_runpath=yes 10666 ;; 10667 *,no) # both, prefer aix 10668 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10669 library_names_spec='$libname$release.a $libname.a' 10670 soname_spec='$libname$release$shared_ext$major' 10671 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10672 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)' 10673 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"' 10674 ;; 10675 esac 10676 shlibpath_var=LIBPATH 10677 fi 10678 ;; 10679 10680amigaos*) 10681 case $host_cpu in 10682 powerpc) 10683 # Since July 2007 AmigaOS4 officially supports .so libraries. 10684 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10686 ;; 10687 m68k) 10688 library_names_spec='$libname.ixlibrary $libname.a' 10689 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10690 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' 10691 ;; 10692 esac 10693 ;; 10694 10695beos*) 10696 library_names_spec='$libname$shared_ext' 10697 dynamic_linker="$host_os ld.so" 10698 shlibpath_var=LIBRARY_PATH 10699 ;; 10700 10701bsdi[45]*) 10702 version_type=linux # correct to gnu/linux during the next big refactor 10703 need_version=no 10704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10705 soname_spec='$libname$release$shared_ext$major' 10706 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10707 shlibpath_var=LD_LIBRARY_PATH 10708 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10709 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10710 # the default ld.so.conf also contains /usr/contrib/lib and 10711 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10712 # libtool to hard-code these into programs 10713 ;; 10714 10715cygwin* | mingw* | pw32* | cegcc*) 10716 version_type=windows 10717 shrext_cmds=.dll 10718 need_version=no 10719 need_lib_prefix=no 10720 10721 case $GCC,$cc_basename in 10722 yes,*) 10723 # gcc 10724 library_names_spec='$libname.dll.a' 10725 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10726 postinstall_cmds='base_file=`basename \$file`~ 10727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10728 dldir=$destdir/`dirname \$dlpath`~ 10729 test -d \$dldir || mkdir -p \$dldir~ 10730 $install_prog $dir/$dlname \$dldir/$dlname~ 10731 chmod a+x \$dldir/$dlname~ 10732 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10733 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10734 fi' 10735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10736 dlpath=$dir/\$dldll~ 10737 $RM \$dlpath' 10738 shlibpath_overrides_runpath=yes 10739 10740 case $host_os in 10741 cygwin*) 10742 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10743 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10744 10745 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10746 ;; 10747 mingw* | cegcc*) 10748 # MinGW DLLs use traditional 'lib' prefix 10749 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10750 ;; 10751 pw32*) 10752 # pw32 DLLs use 'pw' prefix rather than 'lib' 10753 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10754 ;; 10755 esac 10756 dynamic_linker='Win32 ld.exe' 10757 ;; 10758 10759 *,cl*) 10760 # Native MSVC 10761 libname_spec='$name' 10762 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10763 library_names_spec='$libname.dll.lib' 10764 10765 case $build_os in 10766 mingw*) 10767 sys_lib_search_path_spec= 10768 lt_save_ifs=$IFS 10769 IFS=';' 10770 for lt_path in $LIB 10771 do 10772 IFS=$lt_save_ifs 10773 # Let DOS variable expansion print the short 8.3 style file name. 10774 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10775 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10776 done 10777 IFS=$lt_save_ifs 10778 # Convert to MSYS style. 10779 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10780 ;; 10781 cygwin*) 10782 # Convert to unix form, then to dos form, then back to unix form 10783 # but this time dos style (no spaces!) so that the unix form looks 10784 # like /cygdrive/c/PROGRA~1:/cygdr... 10785 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10786 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10787 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10788 ;; 10789 *) 10790 sys_lib_search_path_spec=$LIB 10791 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10792 # It is most probably a Windows format PATH. 10793 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10794 else 10795 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10796 fi 10797 # FIXME: find the short name or the path components, as spaces are 10798 # common. (e.g. "Program Files" -> "PROGRA~1") 10799 ;; 10800 esac 10801 10802 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10803 postinstall_cmds='base_file=`basename \$file`~ 10804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10805 dldir=$destdir/`dirname \$dlpath`~ 10806 test -d \$dldir || mkdir -p \$dldir~ 10807 $install_prog $dir/$dlname \$dldir/$dlname' 10808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10809 dlpath=$dir/\$dldll~ 10810 $RM \$dlpath' 10811 shlibpath_overrides_runpath=yes 10812 dynamic_linker='Win32 link.exe' 10813 ;; 10814 10815 *) 10816 # Assume MSVC wrapper 10817 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10818 dynamic_linker='Win32 ld.exe' 10819 ;; 10820 esac 10821 # FIXME: first we should search . and the directory the executable is in 10822 shlibpath_var=PATH 10823 ;; 10824 10825darwin* | rhapsody*) 10826 dynamic_linker="$host_os dyld" 10827 version_type=darwin 10828 need_lib_prefix=no 10829 need_version=no 10830 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10831 soname_spec='$libname$release$major$shared_ext' 10832 shlibpath_overrides_runpath=yes 10833 shlibpath_var=DYLD_LIBRARY_PATH 10834 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10835 10836 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10838 ;; 10839 10840dgux*) 10841 version_type=linux # correct to gnu/linux during the next big refactor 10842 need_lib_prefix=no 10843 need_version=no 10844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10845 soname_spec='$libname$release$shared_ext$major' 10846 shlibpath_var=LD_LIBRARY_PATH 10847 ;; 10848 10849freebsd* | dragonfly*) 10850 # DragonFly does not have aout. When/if they implement a new 10851 # versioning mechanism, adjust this. 10852 if test -x /usr/bin/objformat; then 10853 objformat=`/usr/bin/objformat` 10854 else 10855 case $host_os in 10856 freebsd[23].*) objformat=aout ;; 10857 *) objformat=elf ;; 10858 esac 10859 fi 10860 # Handle Gentoo/FreeBSD as it was Linux 10861 case $host_vendor in 10862 gentoo) 10863 version_type=linux ;; 10864 *) 10865 version_type=freebsd-$objformat ;; 10866 esac 10867 10868 case $version_type in 10869 freebsd-elf*) 10870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10871 soname_spec='$libname$release$shared_ext$major' 10872 need_version=no 10873 need_lib_prefix=no 10874 ;; 10875 freebsd-*) 10876 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10877 need_version=yes 10878 ;; 10879 linux) 10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10881 soname_spec='${libname}${release}${shared_ext}$major' 10882 need_lib_prefix=no 10883 need_version=no 10884 ;; 10885 esac 10886 shlibpath_var=LD_LIBRARY_PATH 10887 case $host_os in 10888 freebsd2.*) 10889 shlibpath_overrides_runpath=yes 10890 ;; 10891 freebsd3.[01]* | freebsdelf3.[01]*) 10892 shlibpath_overrides_runpath=yes 10893 hardcode_into_libs=yes 10894 ;; 10895 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10896 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10897 shlibpath_overrides_runpath=no 10898 hardcode_into_libs=yes 10899 ;; 10900 *) # from 4.6 on, and DragonFly 10901 shlibpath_overrides_runpath=yes 10902 hardcode_into_libs=yes 10903 ;; 10904 esac 10905 ;; 10906 10907haiku*) 10908 version_type=linux # correct to gnu/linux during the next big refactor 10909 need_lib_prefix=no 10910 need_version=no 10911 dynamic_linker="$host_os runtime_loader" 10912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10913 soname_spec='$libname$release$shared_ext$major' 10914 shlibpath_var=LIBRARY_PATH 10915 shlibpath_overrides_runpath=no 10916 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10917 hardcode_into_libs=yes 10918 ;; 10919 10920hpux9* | hpux10* | hpux11*) 10921 # Give a soname corresponding to the major version so that dld.sl refuses to 10922 # link against other versions. 10923 version_type=sunos 10924 need_lib_prefix=no 10925 need_version=no 10926 case $host_cpu in 10927 ia64*) 10928 shrext_cmds='.so' 10929 hardcode_into_libs=yes 10930 dynamic_linker="$host_os dld.so" 10931 shlibpath_var=LD_LIBRARY_PATH 10932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10934 soname_spec='$libname$release$shared_ext$major' 10935 if test 32 = "$HPUX_IA64_MODE"; then 10936 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10937 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10938 else 10939 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10940 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10941 fi 10942 ;; 10943 hppa*64*) 10944 shrext_cmds='.sl' 10945 hardcode_into_libs=yes 10946 dynamic_linker="$host_os dld.sl" 10947 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10950 soname_spec='$libname$release$shared_ext$major' 10951 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10953 ;; 10954 *) 10955 shrext_cmds='.sl' 10956 dynamic_linker="$host_os dld.sl" 10957 shlibpath_var=SHLIB_PATH 10958 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10960 soname_spec='$libname$release$shared_ext$major' 10961 ;; 10962 esac 10963 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10964 postinstall_cmds='chmod 555 $lib' 10965 # or fails outright, so override atomically: 10966 install_override_mode=555 10967 ;; 10968 10969interix[3-9]*) 10970 version_type=linux # correct to gnu/linux during the next big refactor 10971 need_lib_prefix=no 10972 need_version=no 10973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10974 soname_spec='$libname$release$shared_ext$major' 10975 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10976 shlibpath_var=LD_LIBRARY_PATH 10977 shlibpath_overrides_runpath=no 10978 hardcode_into_libs=yes 10979 ;; 10980 10981irix5* | irix6* | nonstopux*) 10982 case $host_os in 10983 nonstopux*) version_type=nonstopux ;; 10984 *) 10985 if test yes = "$lt_cv_prog_gnu_ld"; then 10986 version_type=linux # correct to gnu/linux during the next big refactor 10987 else 10988 version_type=irix 10989 fi ;; 10990 esac 10991 need_lib_prefix=no 10992 need_version=no 10993 soname_spec='$libname$release$shared_ext$major' 10994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10995 case $host_os in 10996 irix5* | nonstopux*) 10997 libsuff= shlibsuff= 10998 ;; 10999 *) 11000 case $LD in # libtool.m4 will add one of these switches to LD 11001 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11002 libsuff= shlibsuff= libmagic=32-bit;; 11003 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11004 libsuff=32 shlibsuff=N32 libmagic=N32;; 11005 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11006 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11007 *) libsuff= shlibsuff= libmagic=never-match;; 11008 esac 11009 ;; 11010 esac 11011 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11012 shlibpath_overrides_runpath=no 11013 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11014 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11015 hardcode_into_libs=yes 11016 ;; 11017 11018# No shared lib support for Linux oldld, aout, or coff. 11019linux*oldld* | linux*aout* | linux*coff*) 11020 dynamic_linker=no 11021 ;; 11022 11023linux*android*) 11024 version_type=none # Android doesn't support versioned libraries. 11025 need_lib_prefix=no 11026 need_version=no 11027 library_names_spec='$libname$release$shared_ext' 11028 soname_spec='$libname$release$shared_ext' 11029 finish_cmds= 11030 shlibpath_var=LD_LIBRARY_PATH 11031 shlibpath_overrides_runpath=yes 11032 11033 # This implies no fast_install, which is unacceptable. 11034 # Some rework will be needed to allow for fast_install 11035 # before this can be enabled. 11036 hardcode_into_libs=yes 11037 11038 dynamic_linker='Android linker' 11039 # Don't embed -rpath directories since the linker doesn't support them. 11040 hardcode_libdir_flag_spec='-L$libdir' 11041 ;; 11042 11043# This must be glibc/ELF. 11044linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11045 version_type=linux # correct to gnu/linux during the next big refactor 11046 need_lib_prefix=no 11047 need_version=no 11048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11049 soname_spec='$libname$release$shared_ext$major' 11050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11051 shlibpath_var=LD_LIBRARY_PATH 11052 shlibpath_overrides_runpath=no 11053 11054 # Some binutils ld are patched to set DT_RUNPATH 11055 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11056 $as_echo_n "(cached) " >&6 11057else 11058 lt_cv_shlibpath_overrides_runpath=no 11059 save_LDFLAGS=$LDFLAGS 11060 save_libdir=$libdir 11061 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11062 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11064/* end confdefs.h. */ 11065 11066int 11067main () 11068{ 11069 11070 ; 11071 return 0; 11072} 11073_ACEOF 11074if ac_fn_c_try_link "$LINENO"; then : 11075 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11076 lt_cv_shlibpath_overrides_runpath=yes 11077fi 11078fi 11079rm -f core conftest.err conftest.$ac_objext \ 11080 conftest$ac_exeext conftest.$ac_ext 11081 LDFLAGS=$save_LDFLAGS 11082 libdir=$save_libdir 11083 11084fi 11085 11086 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11087 11088 # This implies no fast_install, which is unacceptable. 11089 # Some rework will be needed to allow for fast_install 11090 # before this can be enabled. 11091 hardcode_into_libs=yes 11092 11093 # Ideally, we could use ldconfig to report *all* directores which are 11094 # searched for libraries, however this is still not possible. Aside from not 11095 # being certain /sbin/ldconfig is available, command 11096 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11097 # even though it is searched at run-time. Try to do the best guess by 11098 # appending ld.so.conf contents (and includes) to the search path. 11099 if test -f /etc/ld.so.conf; then 11100 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' ' '` 11101 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11102 fi 11103 11104 # We used to test for /lib/ld.so.1 and disable shared libraries on 11105 # powerpc, because MkLinux only supported shared libraries with the 11106 # GNU dynamic linker. Since this was broken with cross compilers, 11107 # most powerpc-linux boxes support dynamic linking these days and 11108 # people can always --disable-shared, the test was removed, and we 11109 # assume the GNU/Linux dynamic linker is in use. 11110 dynamic_linker='GNU/Linux ld.so' 11111 ;; 11112 11113netbsd*) 11114 version_type=sunos 11115 need_lib_prefix=no 11116 need_version=no 11117 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11118 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11120 dynamic_linker='NetBSD (a.out) ld.so' 11121 else 11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11123 soname_spec='$libname$release$shared_ext$major' 11124 dynamic_linker='NetBSD ld.elf_so' 11125 fi 11126 shlibpath_var=LD_LIBRARY_PATH 11127 shlibpath_overrides_runpath=yes 11128 hardcode_into_libs=yes 11129 ;; 11130 11131newsos6) 11132 version_type=linux # correct to gnu/linux during the next big refactor 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=yes 11136 ;; 11137 11138*nto* | *qnx*) 11139 version_type=qnx 11140 need_lib_prefix=no 11141 need_version=no 11142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11143 soname_spec='$libname$release$shared_ext$major' 11144 shlibpath_var=LD_LIBRARY_PATH 11145 shlibpath_overrides_runpath=no 11146 hardcode_into_libs=yes 11147 dynamic_linker='ldqnx.so' 11148 ;; 11149 11150openbsd* | bitrig*) 11151 version_type=sunos 11152 sys_lib_dlsearch_path_spec=/usr/lib 11153 need_lib_prefix=no 11154 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11155 need_version=no 11156 else 11157 need_version=yes 11158 fi 11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11161 shlibpath_var=LD_LIBRARY_PATH 11162 shlibpath_overrides_runpath=yes 11163 ;; 11164 11165os2*) 11166 libname_spec='$name' 11167 version_type=windows 11168 shrext_cmds=.dll 11169 need_version=no 11170 need_lib_prefix=no 11171 # OS/2 can only load a DLL with a base name of 8 characters or less. 11172 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11173 v=$($ECHO $release$versuffix | tr -d .-); 11174 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11175 $ECHO $n$v`$shared_ext' 11176 library_names_spec='${libname}_dll.$libext' 11177 dynamic_linker='OS/2 ld.exe' 11178 shlibpath_var=BEGINLIBPATH 11179 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11181 postinstall_cmds='base_file=`basename \$file`~ 11182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11183 dldir=$destdir/`dirname \$dlpath`~ 11184 test -d \$dldir || mkdir -p \$dldir~ 11185 $install_prog $dir/$dlname \$dldir/$dlname~ 11186 chmod a+x \$dldir/$dlname~ 11187 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11188 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11189 fi' 11190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11191 dlpath=$dir/\$dldll~ 11192 $RM \$dlpath' 11193 ;; 11194 11195osf3* | osf4* | osf5*) 11196 version_type=osf 11197 need_lib_prefix=no 11198 need_version=no 11199 soname_spec='$libname$release$shared_ext$major' 11200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11201 shlibpath_var=LD_LIBRARY_PATH 11202 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11203 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11204 ;; 11205 11206rdos*) 11207 dynamic_linker=no 11208 ;; 11209 11210solaris*) 11211 version_type=linux # correct to gnu/linux during the next big refactor 11212 need_lib_prefix=no 11213 need_version=no 11214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11215 soname_spec='$libname$release$shared_ext$major' 11216 shlibpath_var=LD_LIBRARY_PATH 11217 shlibpath_overrides_runpath=yes 11218 hardcode_into_libs=yes 11219 # ldd complains unless libraries are executable 11220 postinstall_cmds='chmod +x $lib' 11221 ;; 11222 11223sunos4*) 11224 version_type=sunos 11225 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11226 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11227 shlibpath_var=LD_LIBRARY_PATH 11228 shlibpath_overrides_runpath=yes 11229 if test yes = "$with_gnu_ld"; then 11230 need_lib_prefix=no 11231 fi 11232 need_version=yes 11233 ;; 11234 11235sysv4 | sysv4.3*) 11236 version_type=linux # correct to gnu/linux during the next big refactor 11237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11238 soname_spec='$libname$release$shared_ext$major' 11239 shlibpath_var=LD_LIBRARY_PATH 11240 case $host_vendor in 11241 sni) 11242 shlibpath_overrides_runpath=no 11243 need_lib_prefix=no 11244 runpath_var=LD_RUN_PATH 11245 ;; 11246 siemens) 11247 need_lib_prefix=no 11248 ;; 11249 motorola) 11250 need_lib_prefix=no 11251 need_version=no 11252 shlibpath_overrides_runpath=no 11253 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11254 ;; 11255 esac 11256 ;; 11257 11258sysv4*MP*) 11259 if test -d /usr/nec; then 11260 version_type=linux # correct to gnu/linux during the next big refactor 11261 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11262 soname_spec='$libname$shared_ext.$major' 11263 shlibpath_var=LD_LIBRARY_PATH 11264 fi 11265 ;; 11266 11267sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11268 version_type=sco 11269 need_lib_prefix=no 11270 need_version=no 11271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11272 soname_spec='$libname$release$shared_ext$major' 11273 shlibpath_var=LD_LIBRARY_PATH 11274 shlibpath_overrides_runpath=yes 11275 hardcode_into_libs=yes 11276 if test yes = "$with_gnu_ld"; then 11277 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11278 else 11279 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11280 case $host_os in 11281 sco3.2v5*) 11282 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11283 ;; 11284 esac 11285 fi 11286 sys_lib_dlsearch_path_spec='/usr/lib' 11287 ;; 11288 11289tpf*) 11290 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11291 version_type=linux # correct to gnu/linux during the next big refactor 11292 need_lib_prefix=no 11293 need_version=no 11294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11295 shlibpath_var=LD_LIBRARY_PATH 11296 shlibpath_overrides_runpath=no 11297 hardcode_into_libs=yes 11298 ;; 11299 11300uts4*) 11301 version_type=linux # correct to gnu/linux during the next big refactor 11302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11303 soname_spec='$libname$release$shared_ext$major' 11304 shlibpath_var=LD_LIBRARY_PATH 11305 ;; 11306 11307*) 11308 dynamic_linker=no 11309 ;; 11310esac 11311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11312$as_echo "$dynamic_linker" >&6; } 11313test no = "$dynamic_linker" && can_build_shared=no 11314 11315variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11316if test yes = "$GCC"; then 11317 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11318fi 11319 11320if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11321 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11322fi 11323 11324if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11325 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11326fi 11327 11328# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11329configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11330 11331# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11332func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11333 11334# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11335configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11434$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11435hardcode_action= 11436if test -n "$hardcode_libdir_flag_spec" || 11437 test -n "$runpath_var" || 11438 test yes = "$hardcode_automatic"; then 11439 11440 # We can hardcode non-existent directories. 11441 if test no != "$hardcode_direct" && 11442 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11443 # have to relink, otherwise we might link with an installed library 11444 # when we should be linking with a yet-to-be-installed one 11445 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11446 test no != "$hardcode_minus_L"; then 11447 # Linking always hardcodes the temporary library directory. 11448 hardcode_action=relink 11449 else 11450 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11451 hardcode_action=immediate 11452 fi 11453else 11454 # We cannot hardcode anything, or else we can only hardcode existing 11455 # directories. 11456 hardcode_action=unsupported 11457fi 11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11459$as_echo "$hardcode_action" >&6; } 11460 11461if test relink = "$hardcode_action" || 11462 test yes = "$inherit_rpath"; then 11463 # Fast installation is not supported 11464 enable_fast_install=no 11465elif test yes = "$shlibpath_overrides_runpath" || 11466 test no = "$enable_shared"; then 11467 # Fast installation is not necessary 11468 enable_fast_install=needless 11469fi 11470 11471 11472 11473 11474 11475 11476 if test yes != "$enable_dlopen"; then 11477 enable_dlopen=unknown 11478 enable_dlopen_self=unknown 11479 enable_dlopen_self_static=unknown 11480else 11481 lt_cv_dlopen=no 11482 lt_cv_dlopen_libs= 11483 11484 case $host_os in 11485 beos*) 11486 lt_cv_dlopen=load_add_on 11487 lt_cv_dlopen_libs= 11488 lt_cv_dlopen_self=yes 11489 ;; 11490 11491 mingw* | pw32* | cegcc*) 11492 lt_cv_dlopen=LoadLibrary 11493 lt_cv_dlopen_libs= 11494 ;; 11495 11496 cygwin*) 11497 lt_cv_dlopen=dlopen 11498 lt_cv_dlopen_libs= 11499 ;; 11500 11501 darwin*) 11502 # if libdl is installed we need to link against it 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11504$as_echo_n "checking for dlopen in -ldl... " >&6; } 11505if ${ac_cv_lib_dl_dlopen+:} false; then : 11506 $as_echo_n "(cached) " >&6 11507else 11508 ac_check_lib_save_LIBS=$LIBS 11509LIBS="-ldl $LIBS" 11510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11511/* end confdefs.h. */ 11512 11513/* Override any GCC internal prototype to avoid an error. 11514 Use char because int might match the return type of a GCC 11515 builtin and then its argument prototype would still apply. */ 11516#ifdef __cplusplus 11517extern "C" 11518#endif 11519char dlopen (); 11520int 11521main () 11522{ 11523return dlopen (); 11524 ; 11525 return 0; 11526} 11527_ACEOF 11528if ac_fn_c_try_link "$LINENO"; then : 11529 ac_cv_lib_dl_dlopen=yes 11530else 11531 ac_cv_lib_dl_dlopen=no 11532fi 11533rm -f core conftest.err conftest.$ac_objext \ 11534 conftest$ac_exeext conftest.$ac_ext 11535LIBS=$ac_check_lib_save_LIBS 11536fi 11537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11538$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11539if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11540 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11541else 11542 11543 lt_cv_dlopen=dyld 11544 lt_cv_dlopen_libs= 11545 lt_cv_dlopen_self=yes 11546 11547fi 11548 11549 ;; 11550 11551 tpf*) 11552 # Don't try to run any link tests for TPF. We know it's impossible 11553 # because TPF is a cross-compiler, and we know how we open DSOs. 11554 lt_cv_dlopen=dlopen 11555 lt_cv_dlopen_libs= 11556 lt_cv_dlopen_self=no 11557 ;; 11558 11559 *) 11560 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11561if test "x$ac_cv_func_shl_load" = xyes; then : 11562 lt_cv_dlopen=shl_load 11563else 11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11565$as_echo_n "checking for shl_load in -ldld... " >&6; } 11566if ${ac_cv_lib_dld_shl_load+:} false; then : 11567 $as_echo_n "(cached) " >&6 11568else 11569 ac_check_lib_save_LIBS=$LIBS 11570LIBS="-ldld $LIBS" 11571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11572/* end confdefs.h. */ 11573 11574/* Override any GCC internal prototype to avoid an error. 11575 Use char because int might match the return type of a GCC 11576 builtin and then its argument prototype would still apply. */ 11577#ifdef __cplusplus 11578extern "C" 11579#endif 11580char shl_load (); 11581int 11582main () 11583{ 11584return shl_load (); 11585 ; 11586 return 0; 11587} 11588_ACEOF 11589if ac_fn_c_try_link "$LINENO"; then : 11590 ac_cv_lib_dld_shl_load=yes 11591else 11592 ac_cv_lib_dld_shl_load=no 11593fi 11594rm -f core conftest.err conftest.$ac_objext \ 11595 conftest$ac_exeext conftest.$ac_ext 11596LIBS=$ac_check_lib_save_LIBS 11597fi 11598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11599$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11600if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11601 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11602else 11603 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11604if test "x$ac_cv_func_dlopen" = xyes; then : 11605 lt_cv_dlopen=dlopen 11606else 11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11608$as_echo_n "checking for dlopen in -ldl... " >&6; } 11609if ${ac_cv_lib_dl_dlopen+:} false; then : 11610 $as_echo_n "(cached) " >&6 11611else 11612 ac_check_lib_save_LIBS=$LIBS 11613LIBS="-ldl $LIBS" 11614cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11615/* end confdefs.h. */ 11616 11617/* Override any GCC internal prototype to avoid an error. 11618 Use char because int might match the return type of a GCC 11619 builtin and then its argument prototype would still apply. */ 11620#ifdef __cplusplus 11621extern "C" 11622#endif 11623char dlopen (); 11624int 11625main () 11626{ 11627return dlopen (); 11628 ; 11629 return 0; 11630} 11631_ACEOF 11632if ac_fn_c_try_link "$LINENO"; then : 11633 ac_cv_lib_dl_dlopen=yes 11634else 11635 ac_cv_lib_dl_dlopen=no 11636fi 11637rm -f core conftest.err conftest.$ac_objext \ 11638 conftest$ac_exeext conftest.$ac_ext 11639LIBS=$ac_check_lib_save_LIBS 11640fi 11641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11642$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11643if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11644 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11645else 11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11647$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11648if ${ac_cv_lib_svld_dlopen+:} false; then : 11649 $as_echo_n "(cached) " >&6 11650else 11651 ac_check_lib_save_LIBS=$LIBS 11652LIBS="-lsvld $LIBS" 11653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11654/* end confdefs.h. */ 11655 11656/* Override any GCC internal prototype to avoid an error. 11657 Use char because int might match the return type of a GCC 11658 builtin and then its argument prototype would still apply. */ 11659#ifdef __cplusplus 11660extern "C" 11661#endif 11662char dlopen (); 11663int 11664main () 11665{ 11666return dlopen (); 11667 ; 11668 return 0; 11669} 11670_ACEOF 11671if ac_fn_c_try_link "$LINENO"; then : 11672 ac_cv_lib_svld_dlopen=yes 11673else 11674 ac_cv_lib_svld_dlopen=no 11675fi 11676rm -f core conftest.err conftest.$ac_objext \ 11677 conftest$ac_exeext conftest.$ac_ext 11678LIBS=$ac_check_lib_save_LIBS 11679fi 11680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11681$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11682if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11683 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11684else 11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11686$as_echo_n "checking for dld_link in -ldld... " >&6; } 11687if ${ac_cv_lib_dld_dld_link+:} false; then : 11688 $as_echo_n "(cached) " >&6 11689else 11690 ac_check_lib_save_LIBS=$LIBS 11691LIBS="-ldld $LIBS" 11692cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11693/* end confdefs.h. */ 11694 11695/* Override any GCC internal prototype to avoid an error. 11696 Use char because int might match the return type of a GCC 11697 builtin and then its argument prototype would still apply. */ 11698#ifdef __cplusplus 11699extern "C" 11700#endif 11701char dld_link (); 11702int 11703main () 11704{ 11705return dld_link (); 11706 ; 11707 return 0; 11708} 11709_ACEOF 11710if ac_fn_c_try_link "$LINENO"; then : 11711 ac_cv_lib_dld_dld_link=yes 11712else 11713 ac_cv_lib_dld_dld_link=no 11714fi 11715rm -f core conftest.err conftest.$ac_objext \ 11716 conftest$ac_exeext conftest.$ac_ext 11717LIBS=$ac_check_lib_save_LIBS 11718fi 11719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11720$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11721if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11722 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11723fi 11724 11725 11726fi 11727 11728 11729fi 11730 11731 11732fi 11733 11734 11735fi 11736 11737 11738fi 11739 11740 ;; 11741 esac 11742 11743 if test no = "$lt_cv_dlopen"; then 11744 enable_dlopen=no 11745 else 11746 enable_dlopen=yes 11747 fi 11748 11749 case $lt_cv_dlopen in 11750 dlopen) 11751 save_CPPFLAGS=$CPPFLAGS 11752 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11753 11754 save_LDFLAGS=$LDFLAGS 11755 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11756 11757 save_LIBS=$LIBS 11758 LIBS="$lt_cv_dlopen_libs $LIBS" 11759 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11761$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11762if ${lt_cv_dlopen_self+:} false; then : 11763 $as_echo_n "(cached) " >&6 11764else 11765 if test yes = "$cross_compiling"; then : 11766 lt_cv_dlopen_self=cross 11767else 11768 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11769 lt_status=$lt_dlunknown 11770 cat > conftest.$ac_ext <<_LT_EOF 11771#line $LINENO "configure" 11772#include "confdefs.h" 11773 11774#if HAVE_DLFCN_H 11775#include <dlfcn.h> 11776#endif 11777 11778#include <stdio.h> 11779 11780#ifdef RTLD_GLOBAL 11781# define LT_DLGLOBAL RTLD_GLOBAL 11782#else 11783# ifdef DL_GLOBAL 11784# define LT_DLGLOBAL DL_GLOBAL 11785# else 11786# define LT_DLGLOBAL 0 11787# endif 11788#endif 11789 11790/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11791 find out it does not work in some platform. */ 11792#ifndef LT_DLLAZY_OR_NOW 11793# ifdef RTLD_LAZY 11794# define LT_DLLAZY_OR_NOW RTLD_LAZY 11795# else 11796# ifdef DL_LAZY 11797# define LT_DLLAZY_OR_NOW DL_LAZY 11798# else 11799# ifdef RTLD_NOW 11800# define LT_DLLAZY_OR_NOW RTLD_NOW 11801# else 11802# ifdef DL_NOW 11803# define LT_DLLAZY_OR_NOW DL_NOW 11804# else 11805# define LT_DLLAZY_OR_NOW 0 11806# endif 11807# endif 11808# endif 11809# endif 11810#endif 11811 11812/* When -fvisibility=hidden is used, assume the code has been annotated 11813 correspondingly for the symbols needed. */ 11814#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11815int fnord () __attribute__((visibility("default"))); 11816#endif 11817 11818int fnord () { return 42; } 11819int main () 11820{ 11821 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11822 int status = $lt_dlunknown; 11823 11824 if (self) 11825 { 11826 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11827 else 11828 { 11829 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11830 else puts (dlerror ()); 11831 } 11832 /* dlclose (self); */ 11833 } 11834 else 11835 puts (dlerror ()); 11836 11837 return status; 11838} 11839_LT_EOF 11840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11841 (eval $ac_link) 2>&5 11842 ac_status=$? 11843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11844 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11845 (./conftest; exit; ) >&5 2>/dev/null 11846 lt_status=$? 11847 case x$lt_status in 11848 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11849 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11850 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11851 esac 11852 else : 11853 # compilation failed 11854 lt_cv_dlopen_self=no 11855 fi 11856fi 11857rm -fr conftest* 11858 11859 11860fi 11861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11862$as_echo "$lt_cv_dlopen_self" >&6; } 11863 11864 if test yes = "$lt_cv_dlopen_self"; then 11865 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11867$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11868if ${lt_cv_dlopen_self_static+:} false; then : 11869 $as_echo_n "(cached) " >&6 11870else 11871 if test yes = "$cross_compiling"; then : 11872 lt_cv_dlopen_self_static=cross 11873else 11874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11875 lt_status=$lt_dlunknown 11876 cat > conftest.$ac_ext <<_LT_EOF 11877#line $LINENO "configure" 11878#include "confdefs.h" 11879 11880#if HAVE_DLFCN_H 11881#include <dlfcn.h> 11882#endif 11883 11884#include <stdio.h> 11885 11886#ifdef RTLD_GLOBAL 11887# define LT_DLGLOBAL RTLD_GLOBAL 11888#else 11889# ifdef DL_GLOBAL 11890# define LT_DLGLOBAL DL_GLOBAL 11891# else 11892# define LT_DLGLOBAL 0 11893# endif 11894#endif 11895 11896/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11897 find out it does not work in some platform. */ 11898#ifndef LT_DLLAZY_OR_NOW 11899# ifdef RTLD_LAZY 11900# define LT_DLLAZY_OR_NOW RTLD_LAZY 11901# else 11902# ifdef DL_LAZY 11903# define LT_DLLAZY_OR_NOW DL_LAZY 11904# else 11905# ifdef RTLD_NOW 11906# define LT_DLLAZY_OR_NOW RTLD_NOW 11907# else 11908# ifdef DL_NOW 11909# define LT_DLLAZY_OR_NOW DL_NOW 11910# else 11911# define LT_DLLAZY_OR_NOW 0 11912# endif 11913# endif 11914# endif 11915# endif 11916#endif 11917 11918/* When -fvisibility=hidden is used, assume the code has been annotated 11919 correspondingly for the symbols needed. */ 11920#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11921int fnord () __attribute__((visibility("default"))); 11922#endif 11923 11924int fnord () { return 42; } 11925int main () 11926{ 11927 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11928 int status = $lt_dlunknown; 11929 11930 if (self) 11931 { 11932 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11933 else 11934 { 11935 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11936 else puts (dlerror ()); 11937 } 11938 /* dlclose (self); */ 11939 } 11940 else 11941 puts (dlerror ()); 11942 11943 return status; 11944} 11945_LT_EOF 11946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11947 (eval $ac_link) 2>&5 11948 ac_status=$? 11949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11950 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11951 (./conftest; exit; ) >&5 2>/dev/null 11952 lt_status=$? 11953 case x$lt_status in 11954 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11955 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11956 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11957 esac 11958 else : 11959 # compilation failed 11960 lt_cv_dlopen_self_static=no 11961 fi 11962fi 11963rm -fr conftest* 11964 11965 11966fi 11967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11968$as_echo "$lt_cv_dlopen_self_static" >&6; } 11969 fi 11970 11971 CPPFLAGS=$save_CPPFLAGS 11972 LDFLAGS=$save_LDFLAGS 11973 LIBS=$save_LIBS 11974 ;; 11975 esac 11976 11977 case $lt_cv_dlopen_self in 11978 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11979 *) enable_dlopen_self=unknown ;; 11980 esac 11981 11982 case $lt_cv_dlopen_self_static in 11983 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11984 *) enable_dlopen_self_static=unknown ;; 11985 esac 11986fi 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004striplib= 12005old_striplib= 12006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12007$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12008if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12009 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12010 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12012$as_echo "yes" >&6; } 12013else 12014# FIXME - insert some real tests, host_os isn't really good enough 12015 case $host_os in 12016 darwin*) 12017 if test -n "$STRIP"; then 12018 striplib="$STRIP -x" 12019 old_striplib="$STRIP -S" 12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12021$as_echo "yes" >&6; } 12022 else 12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12024$as_echo "no" >&6; } 12025 fi 12026 ;; 12027 *) 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12029$as_echo "no" >&6; } 12030 ;; 12031 esac 12032fi 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 # Report what library types will actually be built 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12047$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12049$as_echo "$can_build_shared" >&6; } 12050 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12052$as_echo_n "checking whether to build shared libraries... " >&6; } 12053 test no = "$can_build_shared" && enable_shared=no 12054 12055 # On AIX, shared libraries and static libraries use the same namespace, and 12056 # are all built from PIC. 12057 case $host_os in 12058 aix3*) 12059 test yes = "$enable_shared" && enable_static=no 12060 if test -n "$RANLIB"; then 12061 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12062 postinstall_cmds='$RANLIB $lib' 12063 fi 12064 ;; 12065 12066 aix[4-9]*) 12067 if test ia64 != "$host_cpu"; then 12068 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12069 yes,aix,yes) ;; # shared object as lib.so file only 12070 yes,svr4,*) ;; # shared object as lib.so archive member only 12071 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12072 esac 12073 fi 12074 ;; 12075 esac 12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12077$as_echo "$enable_shared" >&6; } 12078 12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12080$as_echo_n "checking whether to build static libraries... " >&6; } 12081 # Make sure either enable_shared or enable_static is yes. 12082 test yes = "$enable_shared" || enable_static=yes 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12084$as_echo "$enable_static" >&6; } 12085 12086 12087 12088 12089fi 12090ac_ext=c 12091ac_cpp='$CPP $CPPFLAGS' 12092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12094ac_compiler_gnu=$ac_cv_c_compiler_gnu 12095 12096CC=$lt_save_CC 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 ac_config_commands="$ac_config_commands libtool" 12113 12114 12115 12116 12117# Only expand once: 12118 12119 12120 12121# Initialize X.Org macros 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12134$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12135if ${ac_cv_prog_cc_c99+:} false; then : 12136 $as_echo_n "(cached) " >&6 12137else 12138 ac_cv_prog_cc_c99=no 12139ac_save_CC=$CC 12140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12141/* end confdefs.h. */ 12142#include <stdarg.h> 12143#include <stdbool.h> 12144#include <stdlib.h> 12145#include <wchar.h> 12146#include <stdio.h> 12147 12148// Check varargs macros. These examples are taken from C99 6.10.3.5. 12149#define debug(...) fprintf (stderr, __VA_ARGS__) 12150#define showlist(...) puts (#__VA_ARGS__) 12151#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12152static void 12153test_varargs_macros (void) 12154{ 12155 int x = 1234; 12156 int y = 5678; 12157 debug ("Flag"); 12158 debug ("X = %d\n", x); 12159 showlist (The first, second, and third items.); 12160 report (x>y, "x is %d but y is %d", x, y); 12161} 12162 12163// Check long long types. 12164#define BIG64 18446744073709551615ull 12165#define BIG32 4294967295ul 12166#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12167#if !BIG_OK 12168 your preprocessor is broken; 12169#endif 12170#if BIG_OK 12171#else 12172 your preprocessor is broken; 12173#endif 12174static long long int bignum = -9223372036854775807LL; 12175static unsigned long long int ubignum = BIG64; 12176 12177struct incomplete_array 12178{ 12179 int datasize; 12180 double data[]; 12181}; 12182 12183struct named_init { 12184 int number; 12185 const wchar_t *name; 12186 double average; 12187}; 12188 12189typedef const char *ccp; 12190 12191static inline int 12192test_restrict (ccp restrict text) 12193{ 12194 // See if C++-style comments work. 12195 // Iterate through items via the restricted pointer. 12196 // Also check for declarations in for loops. 12197 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12198 continue; 12199 return 0; 12200} 12201 12202// Check varargs and va_copy. 12203static void 12204test_varargs (const char *format, ...) 12205{ 12206 va_list args; 12207 va_start (args, format); 12208 va_list args_copy; 12209 va_copy (args_copy, args); 12210 12211 const char *str; 12212 int number; 12213 float fnumber; 12214 12215 while (*format) 12216 { 12217 switch (*format++) 12218 { 12219 case 's': // string 12220 str = va_arg (args_copy, const char *); 12221 break; 12222 case 'd': // int 12223 number = va_arg (args_copy, int); 12224 break; 12225 case 'f': // float 12226 fnumber = va_arg (args_copy, double); 12227 break; 12228 default: 12229 break; 12230 } 12231 } 12232 va_end (args_copy); 12233 va_end (args); 12234} 12235 12236int 12237main () 12238{ 12239 12240 // Check bool. 12241 _Bool success = false; 12242 12243 // Check restrict. 12244 if (test_restrict ("String literal") == 0) 12245 success = true; 12246 char *restrict newvar = "Another string"; 12247 12248 // Check varargs. 12249 test_varargs ("s, d' f .", "string", 65, 34.234); 12250 test_varargs_macros (); 12251 12252 // Check flexible array members. 12253 struct incomplete_array *ia = 12254 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12255 ia->datasize = 10; 12256 for (int i = 0; i < ia->datasize; ++i) 12257 ia->data[i] = i * 1.234; 12258 12259 // Check named initializers. 12260 struct named_init ni = { 12261 .number = 34, 12262 .name = L"Test wide string", 12263 .average = 543.34343, 12264 }; 12265 12266 ni.number = 58; 12267 12268 int dynamic_array[ni.number]; 12269 dynamic_array[ni.number - 1] = 543; 12270 12271 // work around unused variable warnings 12272 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12273 || dynamic_array[ni.number - 1] != 543); 12274 12275 ; 12276 return 0; 12277} 12278_ACEOF 12279for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12280do 12281 CC="$ac_save_CC $ac_arg" 12282 if ac_fn_c_try_compile "$LINENO"; then : 12283 ac_cv_prog_cc_c99=$ac_arg 12284fi 12285rm -f core conftest.err conftest.$ac_objext 12286 test "x$ac_cv_prog_cc_c99" != "xno" && break 12287done 12288rm -f conftest.$ac_ext 12289CC=$ac_save_CC 12290 12291fi 12292# AC_CACHE_VAL 12293case "x$ac_cv_prog_cc_c99" in 12294 x) 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12296$as_echo "none needed" >&6; } ;; 12297 xno) 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12299$as_echo "unsupported" >&6; } ;; 12300 *) 12301 CC="$CC $ac_cv_prog_cc_c99" 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12303$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12304esac 12305if test "x$ac_cv_prog_cc_c99" != xno; then : 12306 12307fi 12308 12309 12310 12311 12312 12313 12314ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12315if test "x$ac_cv_have_decl___clang__" = xyes; then : 12316 CLANGCC="yes" 12317else 12318 CLANGCC="no" 12319fi 12320 12321ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12322if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12323 INTELCC="yes" 12324else 12325 INTELCC="no" 12326fi 12327 12328ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12329if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12330 SUNCC="yes" 12331else 12332 SUNCC="no" 12333fi 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12344 if test -n "$ac_tool_prefix"; then 12345 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12346set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12348$as_echo_n "checking for $ac_word... " >&6; } 12349if ${ac_cv_path_PKG_CONFIG+:} false; then : 12350 $as_echo_n "(cached) " >&6 12351else 12352 case $PKG_CONFIG in 12353 [\\/]* | ?:[\\/]*) 12354 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12355 ;; 12356 *) 12357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12358for as_dir in $PATH 12359do 12360 IFS=$as_save_IFS 12361 test -z "$as_dir" && as_dir=. 12362 for ac_exec_ext in '' $ac_executable_extensions; do 12363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12364 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12366 break 2 12367 fi 12368done 12369 done 12370IFS=$as_save_IFS 12371 12372 ;; 12373esac 12374fi 12375PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12376if test -n "$PKG_CONFIG"; then 12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12378$as_echo "$PKG_CONFIG" >&6; } 12379else 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12381$as_echo "no" >&6; } 12382fi 12383 12384 12385fi 12386if test -z "$ac_cv_path_PKG_CONFIG"; then 12387 ac_pt_PKG_CONFIG=$PKG_CONFIG 12388 # Extract the first word of "pkg-config", so it can be a program name with args. 12389set dummy pkg-config; ac_word=$2 12390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12391$as_echo_n "checking for $ac_word... " >&6; } 12392if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12393 $as_echo_n "(cached) " >&6 12394else 12395 case $ac_pt_PKG_CONFIG in 12396 [\\/]* | ?:[\\/]*) 12397 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12398 ;; 12399 *) 12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12401for as_dir in $PATH 12402do 12403 IFS=$as_save_IFS 12404 test -z "$as_dir" && as_dir=. 12405 for ac_exec_ext in '' $ac_executable_extensions; do 12406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12407 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12409 break 2 12410 fi 12411done 12412 done 12413IFS=$as_save_IFS 12414 12415 ;; 12416esac 12417fi 12418ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12419if test -n "$ac_pt_PKG_CONFIG"; then 12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12421$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12422else 12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12424$as_echo "no" >&6; } 12425fi 12426 12427 if test "x$ac_pt_PKG_CONFIG" = x; then 12428 PKG_CONFIG="" 12429 else 12430 case $cross_compiling:$ac_tool_warned in 12431yes:) 12432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12434ac_tool_warned=yes ;; 12435esac 12436 PKG_CONFIG=$ac_pt_PKG_CONFIG 12437 fi 12438else 12439 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12440fi 12441 12442fi 12443if test -n "$PKG_CONFIG"; then 12444 _pkg_min_version=0.9.0 12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12446$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12447 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12449$as_echo "yes" >&6; } 12450 else 12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12452$as_echo "no" >&6; } 12453 PKG_CONFIG="" 12454 fi 12455fi 12456 12457 12458 12459 12460 12461# Check whether --enable-selective-werror was given. 12462if test "${enable_selective_werror+set}" = set; then : 12463 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12464else 12465 SELECTIVE_WERROR=yes 12466fi 12467 12468 12469 12470 12471 12472# -v is too short to test reliably with XORG_TESTSET_CFLAG 12473if test "x$SUNCC" = "xyes"; then 12474 BASE_CFLAGS="-v" 12475else 12476 BASE_CFLAGS="" 12477fi 12478 12479# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493xorg_testset_save_CFLAGS="$CFLAGS" 12494 12495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12500 $as_echo_n "(cached) " >&6 12501else 12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12503/* end confdefs.h. */ 12504int i; 12505_ACEOF 12506if ac_fn_c_try_compile "$LINENO"; then : 12507 xorg_cv_cc_flag_unknown_warning_option=yes 12508else 12509 xorg_cv_cc_flag_unknown_warning_option=no 12510fi 12511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12512fi 12513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12516 CFLAGS="$xorg_testset_save_CFLAGS" 12517fi 12518 12519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12522 fi 12523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12527 $as_echo_n "(cached) " >&6 12528else 12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12530/* end confdefs.h. */ 12531int i; 12532_ACEOF 12533if ac_fn_c_try_compile "$LINENO"; then : 12534 xorg_cv_cc_flag_unused_command_line_argument=yes 12535else 12536 xorg_cv_cc_flag_unused_command_line_argument=no 12537fi 12538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12539fi 12540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12543 CFLAGS="$xorg_testset_save_CFLAGS" 12544fi 12545 12546found="no" 12547 12548 if test $found = "no" ; then 12549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12551 fi 12552 12553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12555 fi 12556 12557 CFLAGS="$CFLAGS -Wall" 12558 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12560$as_echo_n "checking if $CC supports -Wall... " >&6; } 12561 cacheid=xorg_cv_cc_flag__Wall 12562 if eval \${$cacheid+:} false; then : 12563 $as_echo_n "(cached) " >&6 12564else 12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12566/* end confdefs.h. */ 12567int i; 12568int 12569main () 12570{ 12571 12572 ; 12573 return 0; 12574} 12575_ACEOF 12576if ac_fn_c_try_link "$LINENO"; then : 12577 eval $cacheid=yes 12578else 12579 eval $cacheid=no 12580fi 12581rm -f core conftest.err conftest.$ac_objext \ 12582 conftest$ac_exeext conftest.$ac_ext 12583fi 12584 12585 12586 CFLAGS="$xorg_testset_save_CFLAGS" 12587 12588 eval supported=\$$cacheid 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12590$as_echo "$supported" >&6; } 12591 if test "$supported" = "yes" ; then 12592 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12593 found="yes" 12594 fi 12595 fi 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611xorg_testset_save_CFLAGS="$CFLAGS" 12612 12613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12618 $as_echo_n "(cached) " >&6 12619else 12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12621/* end confdefs.h. */ 12622int i; 12623_ACEOF 12624if ac_fn_c_try_compile "$LINENO"; then : 12625 xorg_cv_cc_flag_unknown_warning_option=yes 12626else 12627 xorg_cv_cc_flag_unknown_warning_option=no 12628fi 12629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12630fi 12631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12634 CFLAGS="$xorg_testset_save_CFLAGS" 12635fi 12636 12637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12640 fi 12641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12645 $as_echo_n "(cached) " >&6 12646else 12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12648/* end confdefs.h. */ 12649int i; 12650_ACEOF 12651if ac_fn_c_try_compile "$LINENO"; then : 12652 xorg_cv_cc_flag_unused_command_line_argument=yes 12653else 12654 xorg_cv_cc_flag_unused_command_line_argument=no 12655fi 12656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12657fi 12658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12661 CFLAGS="$xorg_testset_save_CFLAGS" 12662fi 12663 12664found="no" 12665 12666 if test $found = "no" ; then 12667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12669 fi 12670 12671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12673 fi 12674 12675 CFLAGS="$CFLAGS -Wpointer-arith" 12676 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12678$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12679 cacheid=xorg_cv_cc_flag__Wpointer_arith 12680 if eval \${$cacheid+:} false; then : 12681 $as_echo_n "(cached) " >&6 12682else 12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12684/* end confdefs.h. */ 12685int i; 12686int 12687main () 12688{ 12689 12690 ; 12691 return 0; 12692} 12693_ACEOF 12694if ac_fn_c_try_link "$LINENO"; then : 12695 eval $cacheid=yes 12696else 12697 eval $cacheid=no 12698fi 12699rm -f core conftest.err conftest.$ac_objext \ 12700 conftest$ac_exeext conftest.$ac_ext 12701fi 12702 12703 12704 CFLAGS="$xorg_testset_save_CFLAGS" 12705 12706 eval supported=\$$cacheid 12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12708$as_echo "$supported" >&6; } 12709 if test "$supported" = "yes" ; then 12710 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12711 found="yes" 12712 fi 12713 fi 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729xorg_testset_save_CFLAGS="$CFLAGS" 12730 12731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12736 $as_echo_n "(cached) " >&6 12737else 12738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12739/* end confdefs.h. */ 12740int i; 12741_ACEOF 12742if ac_fn_c_try_compile "$LINENO"; then : 12743 xorg_cv_cc_flag_unknown_warning_option=yes 12744else 12745 xorg_cv_cc_flag_unknown_warning_option=no 12746fi 12747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12748fi 12749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12752 CFLAGS="$xorg_testset_save_CFLAGS" 12753fi 12754 12755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12758 fi 12759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12763 $as_echo_n "(cached) " >&6 12764else 12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12766/* end confdefs.h. */ 12767int i; 12768_ACEOF 12769if ac_fn_c_try_compile "$LINENO"; then : 12770 xorg_cv_cc_flag_unused_command_line_argument=yes 12771else 12772 xorg_cv_cc_flag_unused_command_line_argument=no 12773fi 12774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12775fi 12776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12779 CFLAGS="$xorg_testset_save_CFLAGS" 12780fi 12781 12782found="no" 12783 12784 if test $found = "no" ; then 12785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12787 fi 12788 12789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12791 fi 12792 12793 CFLAGS="$CFLAGS -Wmissing-declarations" 12794 12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12796$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12797 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12798 if eval \${$cacheid+:} false; then : 12799 $as_echo_n "(cached) " >&6 12800else 12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12802/* end confdefs.h. */ 12803int i; 12804int 12805main () 12806{ 12807 12808 ; 12809 return 0; 12810} 12811_ACEOF 12812if ac_fn_c_try_link "$LINENO"; then : 12813 eval $cacheid=yes 12814else 12815 eval $cacheid=no 12816fi 12817rm -f core conftest.err conftest.$ac_objext \ 12818 conftest$ac_exeext conftest.$ac_ext 12819fi 12820 12821 12822 CFLAGS="$xorg_testset_save_CFLAGS" 12823 12824 eval supported=\$$cacheid 12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12826$as_echo "$supported" >&6; } 12827 if test "$supported" = "yes" ; then 12828 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12829 found="yes" 12830 fi 12831 fi 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847xorg_testset_save_CFLAGS="$CFLAGS" 12848 12849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12854 $as_echo_n "(cached) " >&6 12855else 12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12857/* end confdefs.h. */ 12858int i; 12859_ACEOF 12860if ac_fn_c_try_compile "$LINENO"; then : 12861 xorg_cv_cc_flag_unknown_warning_option=yes 12862else 12863 xorg_cv_cc_flag_unknown_warning_option=no 12864fi 12865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12866fi 12867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12870 CFLAGS="$xorg_testset_save_CFLAGS" 12871fi 12872 12873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12876 fi 12877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12881 $as_echo_n "(cached) " >&6 12882else 12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12884/* end confdefs.h. */ 12885int i; 12886_ACEOF 12887if ac_fn_c_try_compile "$LINENO"; then : 12888 xorg_cv_cc_flag_unused_command_line_argument=yes 12889else 12890 xorg_cv_cc_flag_unused_command_line_argument=no 12891fi 12892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12893fi 12894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12897 CFLAGS="$xorg_testset_save_CFLAGS" 12898fi 12899 12900found="no" 12901 12902 if test $found = "no" ; then 12903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12905 fi 12906 12907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12909 fi 12910 12911 CFLAGS="$CFLAGS -Wformat=2" 12912 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12914$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12915 cacheid=xorg_cv_cc_flag__Wformat_2 12916 if eval \${$cacheid+:} false; then : 12917 $as_echo_n "(cached) " >&6 12918else 12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12920/* end confdefs.h. */ 12921int i; 12922int 12923main () 12924{ 12925 12926 ; 12927 return 0; 12928} 12929_ACEOF 12930if ac_fn_c_try_link "$LINENO"; then : 12931 eval $cacheid=yes 12932else 12933 eval $cacheid=no 12934fi 12935rm -f core conftest.err conftest.$ac_objext \ 12936 conftest$ac_exeext conftest.$ac_ext 12937fi 12938 12939 12940 CFLAGS="$xorg_testset_save_CFLAGS" 12941 12942 eval supported=\$$cacheid 12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12944$as_echo "$supported" >&6; } 12945 if test "$supported" = "yes" ; then 12946 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12947 found="yes" 12948 fi 12949 fi 12950 12951 if test $found = "no" ; then 12952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12954 fi 12955 12956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12958 fi 12959 12960 CFLAGS="$CFLAGS -Wformat" 12961 12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12963$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12964 cacheid=xorg_cv_cc_flag__Wformat 12965 if eval \${$cacheid+:} false; then : 12966 $as_echo_n "(cached) " >&6 12967else 12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12969/* end confdefs.h. */ 12970int i; 12971int 12972main () 12973{ 12974 12975 ; 12976 return 0; 12977} 12978_ACEOF 12979if ac_fn_c_try_link "$LINENO"; then : 12980 eval $cacheid=yes 12981else 12982 eval $cacheid=no 12983fi 12984rm -f core conftest.err conftest.$ac_objext \ 12985 conftest$ac_exeext conftest.$ac_ext 12986fi 12987 12988 12989 CFLAGS="$xorg_testset_save_CFLAGS" 12990 12991 eval supported=\$$cacheid 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12993$as_echo "$supported" >&6; } 12994 if test "$supported" = "yes" ; then 12995 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12996 found="yes" 12997 fi 12998 fi 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016xorg_testset_save_CFLAGS="$CFLAGS" 13017 13018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13021$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13022if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13023 $as_echo_n "(cached) " >&6 13024else 13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13026/* end confdefs.h. */ 13027int i; 13028_ACEOF 13029if ac_fn_c_try_compile "$LINENO"; then : 13030 xorg_cv_cc_flag_unknown_warning_option=yes 13031else 13032 xorg_cv_cc_flag_unknown_warning_option=no 13033fi 13034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13035fi 13036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13037$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13039 CFLAGS="$xorg_testset_save_CFLAGS" 13040fi 13041 13042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13045 fi 13046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13048$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13049if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13050 $as_echo_n "(cached) " >&6 13051else 13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13053/* end confdefs.h. */ 13054int i; 13055_ACEOF 13056if ac_fn_c_try_compile "$LINENO"; then : 13057 xorg_cv_cc_flag_unused_command_line_argument=yes 13058else 13059 xorg_cv_cc_flag_unused_command_line_argument=no 13060fi 13061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13062fi 13063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13064$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13066 CFLAGS="$xorg_testset_save_CFLAGS" 13067fi 13068 13069found="no" 13070 13071 if test $found = "no" ; then 13072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13074 fi 13075 13076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13078 fi 13079 13080 CFLAGS="$CFLAGS -Wstrict-prototypes" 13081 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13083$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13084 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13085 if eval \${$cacheid+:} false; then : 13086 $as_echo_n "(cached) " >&6 13087else 13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13089/* end confdefs.h. */ 13090int i; 13091int 13092main () 13093{ 13094 13095 ; 13096 return 0; 13097} 13098_ACEOF 13099if ac_fn_c_try_link "$LINENO"; then : 13100 eval $cacheid=yes 13101else 13102 eval $cacheid=no 13103fi 13104rm -f core conftest.err conftest.$ac_objext \ 13105 conftest$ac_exeext conftest.$ac_ext 13106fi 13107 13108 13109 CFLAGS="$xorg_testset_save_CFLAGS" 13110 13111 eval supported=\$$cacheid 13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13113$as_echo "$supported" >&6; } 13114 if test "$supported" = "yes" ; then 13115 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13116 found="yes" 13117 fi 13118 fi 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134xorg_testset_save_CFLAGS="$CFLAGS" 13135 13136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13141 $as_echo_n "(cached) " >&6 13142else 13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13144/* end confdefs.h. */ 13145int i; 13146_ACEOF 13147if ac_fn_c_try_compile "$LINENO"; then : 13148 xorg_cv_cc_flag_unknown_warning_option=yes 13149else 13150 xorg_cv_cc_flag_unknown_warning_option=no 13151fi 13152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13153fi 13154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13157 CFLAGS="$xorg_testset_save_CFLAGS" 13158fi 13159 13160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13163 fi 13164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13168 $as_echo_n "(cached) " >&6 13169else 13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13171/* end confdefs.h. */ 13172int i; 13173_ACEOF 13174if ac_fn_c_try_compile "$LINENO"; then : 13175 xorg_cv_cc_flag_unused_command_line_argument=yes 13176else 13177 xorg_cv_cc_flag_unused_command_line_argument=no 13178fi 13179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13180fi 13181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13184 CFLAGS="$xorg_testset_save_CFLAGS" 13185fi 13186 13187found="no" 13188 13189 if test $found = "no" ; then 13190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13192 fi 13193 13194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13196 fi 13197 13198 CFLAGS="$CFLAGS -Wmissing-prototypes" 13199 13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13201$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13202 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13203 if eval \${$cacheid+:} false; then : 13204 $as_echo_n "(cached) " >&6 13205else 13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13207/* end confdefs.h. */ 13208int i; 13209int 13210main () 13211{ 13212 13213 ; 13214 return 0; 13215} 13216_ACEOF 13217if ac_fn_c_try_link "$LINENO"; then : 13218 eval $cacheid=yes 13219else 13220 eval $cacheid=no 13221fi 13222rm -f core conftest.err conftest.$ac_objext \ 13223 conftest$ac_exeext conftest.$ac_ext 13224fi 13225 13226 13227 CFLAGS="$xorg_testset_save_CFLAGS" 13228 13229 eval supported=\$$cacheid 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13231$as_echo "$supported" >&6; } 13232 if test "$supported" = "yes" ; then 13233 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13234 found="yes" 13235 fi 13236 fi 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252xorg_testset_save_CFLAGS="$CFLAGS" 13253 13254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13259 $as_echo_n "(cached) " >&6 13260else 13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13262/* end confdefs.h. */ 13263int i; 13264_ACEOF 13265if ac_fn_c_try_compile "$LINENO"; then : 13266 xorg_cv_cc_flag_unknown_warning_option=yes 13267else 13268 xorg_cv_cc_flag_unknown_warning_option=no 13269fi 13270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13271fi 13272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13275 CFLAGS="$xorg_testset_save_CFLAGS" 13276fi 13277 13278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13281 fi 13282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13286 $as_echo_n "(cached) " >&6 13287else 13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13289/* end confdefs.h. */ 13290int i; 13291_ACEOF 13292if ac_fn_c_try_compile "$LINENO"; then : 13293 xorg_cv_cc_flag_unused_command_line_argument=yes 13294else 13295 xorg_cv_cc_flag_unused_command_line_argument=no 13296fi 13297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13298fi 13299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13302 CFLAGS="$xorg_testset_save_CFLAGS" 13303fi 13304 13305found="no" 13306 13307 if test $found = "no" ; then 13308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13310 fi 13311 13312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13314 fi 13315 13316 CFLAGS="$CFLAGS -Wnested-externs" 13317 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13319$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13320 cacheid=xorg_cv_cc_flag__Wnested_externs 13321 if eval \${$cacheid+:} false; then : 13322 $as_echo_n "(cached) " >&6 13323else 13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13325/* end confdefs.h. */ 13326int i; 13327int 13328main () 13329{ 13330 13331 ; 13332 return 0; 13333} 13334_ACEOF 13335if ac_fn_c_try_link "$LINENO"; then : 13336 eval $cacheid=yes 13337else 13338 eval $cacheid=no 13339fi 13340rm -f core conftest.err conftest.$ac_objext \ 13341 conftest$ac_exeext conftest.$ac_ext 13342fi 13343 13344 13345 CFLAGS="$xorg_testset_save_CFLAGS" 13346 13347 eval supported=\$$cacheid 13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13349$as_echo "$supported" >&6; } 13350 if test "$supported" = "yes" ; then 13351 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13352 found="yes" 13353 fi 13354 fi 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370xorg_testset_save_CFLAGS="$CFLAGS" 13371 13372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13375$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13376if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13377 $as_echo_n "(cached) " >&6 13378else 13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13380/* end confdefs.h. */ 13381int i; 13382_ACEOF 13383if ac_fn_c_try_compile "$LINENO"; then : 13384 xorg_cv_cc_flag_unknown_warning_option=yes 13385else 13386 xorg_cv_cc_flag_unknown_warning_option=no 13387fi 13388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13389fi 13390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13391$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13393 CFLAGS="$xorg_testset_save_CFLAGS" 13394fi 13395 13396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13399 fi 13400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13402$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13403if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13404 $as_echo_n "(cached) " >&6 13405else 13406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13407/* end confdefs.h. */ 13408int i; 13409_ACEOF 13410if ac_fn_c_try_compile "$LINENO"; then : 13411 xorg_cv_cc_flag_unused_command_line_argument=yes 13412else 13413 xorg_cv_cc_flag_unused_command_line_argument=no 13414fi 13415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13416fi 13417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13418$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13420 CFLAGS="$xorg_testset_save_CFLAGS" 13421fi 13422 13423found="no" 13424 13425 if test $found = "no" ; then 13426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13428 fi 13429 13430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13432 fi 13433 13434 CFLAGS="$CFLAGS -Wbad-function-cast" 13435 13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13437$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13438 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13439 if eval \${$cacheid+:} false; then : 13440 $as_echo_n "(cached) " >&6 13441else 13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13443/* end confdefs.h. */ 13444int i; 13445int 13446main () 13447{ 13448 13449 ; 13450 return 0; 13451} 13452_ACEOF 13453if ac_fn_c_try_link "$LINENO"; then : 13454 eval $cacheid=yes 13455else 13456 eval $cacheid=no 13457fi 13458rm -f core conftest.err conftest.$ac_objext \ 13459 conftest$ac_exeext conftest.$ac_ext 13460fi 13461 13462 13463 CFLAGS="$xorg_testset_save_CFLAGS" 13464 13465 eval supported=\$$cacheid 13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13467$as_echo "$supported" >&6; } 13468 if test "$supported" = "yes" ; then 13469 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13470 found="yes" 13471 fi 13472 fi 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488xorg_testset_save_CFLAGS="$CFLAGS" 13489 13490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13493$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13494if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13495 $as_echo_n "(cached) " >&6 13496else 13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13498/* end confdefs.h. */ 13499int i; 13500_ACEOF 13501if ac_fn_c_try_compile "$LINENO"; then : 13502 xorg_cv_cc_flag_unknown_warning_option=yes 13503else 13504 xorg_cv_cc_flag_unknown_warning_option=no 13505fi 13506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13507fi 13508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13509$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13511 CFLAGS="$xorg_testset_save_CFLAGS" 13512fi 13513 13514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13517 fi 13518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13521if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13522 $as_echo_n "(cached) " >&6 13523else 13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13525/* end confdefs.h. */ 13526int i; 13527_ACEOF 13528if ac_fn_c_try_compile "$LINENO"; then : 13529 xorg_cv_cc_flag_unused_command_line_argument=yes 13530else 13531 xorg_cv_cc_flag_unused_command_line_argument=no 13532fi 13533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13534fi 13535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13536$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13538 CFLAGS="$xorg_testset_save_CFLAGS" 13539fi 13540 13541found="no" 13542 13543 if test $found = "no" ; then 13544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13546 fi 13547 13548 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13550 fi 13551 13552 CFLAGS="$CFLAGS -Wold-style-definition" 13553 13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13555$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13556 cacheid=xorg_cv_cc_flag__Wold_style_definition 13557 if eval \${$cacheid+:} false; then : 13558 $as_echo_n "(cached) " >&6 13559else 13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13561/* end confdefs.h. */ 13562int i; 13563int 13564main () 13565{ 13566 13567 ; 13568 return 0; 13569} 13570_ACEOF 13571if ac_fn_c_try_link "$LINENO"; then : 13572 eval $cacheid=yes 13573else 13574 eval $cacheid=no 13575fi 13576rm -f core conftest.err conftest.$ac_objext \ 13577 conftest$ac_exeext conftest.$ac_ext 13578fi 13579 13580 13581 CFLAGS="$xorg_testset_save_CFLAGS" 13582 13583 eval supported=\$$cacheid 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13585$as_echo "$supported" >&6; } 13586 if test "$supported" = "yes" ; then 13587 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13588 found="yes" 13589 fi 13590 fi 13591 13592 if test $found = "no" ; then 13593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13595 fi 13596 13597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13599 fi 13600 13601 CFLAGS="$CFLAGS -fd" 13602 13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13604$as_echo_n "checking if $CC supports -fd... " >&6; } 13605 cacheid=xorg_cv_cc_flag__fd 13606 if eval \${$cacheid+:} false; then : 13607 $as_echo_n "(cached) " >&6 13608else 13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13610/* end confdefs.h. */ 13611int i; 13612int 13613main () 13614{ 13615 13616 ; 13617 return 0; 13618} 13619_ACEOF 13620if ac_fn_c_try_link "$LINENO"; then : 13621 eval $cacheid=yes 13622else 13623 eval $cacheid=no 13624fi 13625rm -f core conftest.err conftest.$ac_objext \ 13626 conftest$ac_exeext conftest.$ac_ext 13627fi 13628 13629 13630 CFLAGS="$xorg_testset_save_CFLAGS" 13631 13632 eval supported=\$$cacheid 13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13634$as_echo "$supported" >&6; } 13635 if test "$supported" = "yes" ; then 13636 BASE_CFLAGS="$BASE_CFLAGS -fd" 13637 found="yes" 13638 fi 13639 fi 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655xorg_testset_save_CFLAGS="$CFLAGS" 13656 13657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13660$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13661if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13662 $as_echo_n "(cached) " >&6 13663else 13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13665/* end confdefs.h. */ 13666int i; 13667_ACEOF 13668if ac_fn_c_try_compile "$LINENO"; then : 13669 xorg_cv_cc_flag_unknown_warning_option=yes 13670else 13671 xorg_cv_cc_flag_unknown_warning_option=no 13672fi 13673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13674fi 13675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13676$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13678 CFLAGS="$xorg_testset_save_CFLAGS" 13679fi 13680 13681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13684 fi 13685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13687$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13688if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13689 $as_echo_n "(cached) " >&6 13690else 13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13692/* end confdefs.h. */ 13693int i; 13694_ACEOF 13695if ac_fn_c_try_compile "$LINENO"; then : 13696 xorg_cv_cc_flag_unused_command_line_argument=yes 13697else 13698 xorg_cv_cc_flag_unused_command_line_argument=no 13699fi 13700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13701fi 13702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13703$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13705 CFLAGS="$xorg_testset_save_CFLAGS" 13706fi 13707 13708found="no" 13709 13710 if test $found = "no" ; then 13711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13713 fi 13714 13715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13717 fi 13718 13719 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13720 13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13722$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13723 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13724 if eval \${$cacheid+:} false; then : 13725 $as_echo_n "(cached) " >&6 13726else 13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13728/* end confdefs.h. */ 13729int i; 13730int 13731main () 13732{ 13733 13734 ; 13735 return 0; 13736} 13737_ACEOF 13738if ac_fn_c_try_link "$LINENO"; then : 13739 eval $cacheid=yes 13740else 13741 eval $cacheid=no 13742fi 13743rm -f core conftest.err conftest.$ac_objext \ 13744 conftest$ac_exeext conftest.$ac_ext 13745fi 13746 13747 13748 CFLAGS="$xorg_testset_save_CFLAGS" 13749 13750 eval supported=\$$cacheid 13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13752$as_echo "$supported" >&6; } 13753 if test "$supported" = "yes" ; then 13754 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13755 found="yes" 13756 fi 13757 fi 13758 13759 13760 13761 13762 13763# This chunk adds additional warnings that could catch undesired effects. 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777xorg_testset_save_CFLAGS="$CFLAGS" 13778 13779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13784 $as_echo_n "(cached) " >&6 13785else 13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13787/* end confdefs.h. */ 13788int i; 13789_ACEOF 13790if ac_fn_c_try_compile "$LINENO"; then : 13791 xorg_cv_cc_flag_unknown_warning_option=yes 13792else 13793 xorg_cv_cc_flag_unknown_warning_option=no 13794fi 13795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13796fi 13797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13800 CFLAGS="$xorg_testset_save_CFLAGS" 13801fi 13802 13803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13806 fi 13807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13811 $as_echo_n "(cached) " >&6 13812else 13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13814/* end confdefs.h. */ 13815int i; 13816_ACEOF 13817if ac_fn_c_try_compile "$LINENO"; then : 13818 xorg_cv_cc_flag_unused_command_line_argument=yes 13819else 13820 xorg_cv_cc_flag_unused_command_line_argument=no 13821fi 13822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13823fi 13824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13827 CFLAGS="$xorg_testset_save_CFLAGS" 13828fi 13829 13830found="no" 13831 13832 if test $found = "no" ; then 13833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13835 fi 13836 13837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13839 fi 13840 13841 CFLAGS="$CFLAGS -Wunused" 13842 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13844$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13845 cacheid=xorg_cv_cc_flag__Wunused 13846 if eval \${$cacheid+:} false; then : 13847 $as_echo_n "(cached) " >&6 13848else 13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13850/* end confdefs.h. */ 13851int i; 13852int 13853main () 13854{ 13855 13856 ; 13857 return 0; 13858} 13859_ACEOF 13860if ac_fn_c_try_link "$LINENO"; then : 13861 eval $cacheid=yes 13862else 13863 eval $cacheid=no 13864fi 13865rm -f core conftest.err conftest.$ac_objext \ 13866 conftest$ac_exeext conftest.$ac_ext 13867fi 13868 13869 13870 CFLAGS="$xorg_testset_save_CFLAGS" 13871 13872 eval supported=\$$cacheid 13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13874$as_echo "$supported" >&6; } 13875 if test "$supported" = "yes" ; then 13876 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13877 found="yes" 13878 fi 13879 fi 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895xorg_testset_save_CFLAGS="$CFLAGS" 13896 13897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13902 $as_echo_n "(cached) " >&6 13903else 13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13905/* end confdefs.h. */ 13906int i; 13907_ACEOF 13908if ac_fn_c_try_compile "$LINENO"; then : 13909 xorg_cv_cc_flag_unknown_warning_option=yes 13910else 13911 xorg_cv_cc_flag_unknown_warning_option=no 13912fi 13913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13914fi 13915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13918 CFLAGS="$xorg_testset_save_CFLAGS" 13919fi 13920 13921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13924 fi 13925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13929 $as_echo_n "(cached) " >&6 13930else 13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13932/* end confdefs.h. */ 13933int i; 13934_ACEOF 13935if ac_fn_c_try_compile "$LINENO"; then : 13936 xorg_cv_cc_flag_unused_command_line_argument=yes 13937else 13938 xorg_cv_cc_flag_unused_command_line_argument=no 13939fi 13940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13941fi 13942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13945 CFLAGS="$xorg_testset_save_CFLAGS" 13946fi 13947 13948found="no" 13949 13950 if test $found = "no" ; then 13951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13953 fi 13954 13955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13957 fi 13958 13959 CFLAGS="$CFLAGS -Wuninitialized" 13960 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13962$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13963 cacheid=xorg_cv_cc_flag__Wuninitialized 13964 if eval \${$cacheid+:} false; then : 13965 $as_echo_n "(cached) " >&6 13966else 13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13968/* end confdefs.h. */ 13969int i; 13970int 13971main () 13972{ 13973 13974 ; 13975 return 0; 13976} 13977_ACEOF 13978if ac_fn_c_try_link "$LINENO"; then : 13979 eval $cacheid=yes 13980else 13981 eval $cacheid=no 13982fi 13983rm -f core conftest.err conftest.$ac_objext \ 13984 conftest$ac_exeext conftest.$ac_ext 13985fi 13986 13987 13988 CFLAGS="$xorg_testset_save_CFLAGS" 13989 13990 eval supported=\$$cacheid 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13992$as_echo "$supported" >&6; } 13993 if test "$supported" = "yes" ; then 13994 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13995 found="yes" 13996 fi 13997 fi 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013xorg_testset_save_CFLAGS="$CFLAGS" 14014 14015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14020 $as_echo_n "(cached) " >&6 14021else 14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14023/* end confdefs.h. */ 14024int i; 14025_ACEOF 14026if ac_fn_c_try_compile "$LINENO"; then : 14027 xorg_cv_cc_flag_unknown_warning_option=yes 14028else 14029 xorg_cv_cc_flag_unknown_warning_option=no 14030fi 14031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14032fi 14033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14036 CFLAGS="$xorg_testset_save_CFLAGS" 14037fi 14038 14039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14042 fi 14043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14047 $as_echo_n "(cached) " >&6 14048else 14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14050/* end confdefs.h. */ 14051int i; 14052_ACEOF 14053if ac_fn_c_try_compile "$LINENO"; then : 14054 xorg_cv_cc_flag_unused_command_line_argument=yes 14055else 14056 xorg_cv_cc_flag_unused_command_line_argument=no 14057fi 14058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14059fi 14060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14063 CFLAGS="$xorg_testset_save_CFLAGS" 14064fi 14065 14066found="no" 14067 14068 if test $found = "no" ; then 14069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14071 fi 14072 14073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14075 fi 14076 14077 CFLAGS="$CFLAGS -Wshadow" 14078 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14080$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14081 cacheid=xorg_cv_cc_flag__Wshadow 14082 if eval \${$cacheid+:} false; then : 14083 $as_echo_n "(cached) " >&6 14084else 14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14086/* end confdefs.h. */ 14087int i; 14088int 14089main () 14090{ 14091 14092 ; 14093 return 0; 14094} 14095_ACEOF 14096if ac_fn_c_try_link "$LINENO"; then : 14097 eval $cacheid=yes 14098else 14099 eval $cacheid=no 14100fi 14101rm -f core conftest.err conftest.$ac_objext \ 14102 conftest$ac_exeext conftest.$ac_ext 14103fi 14104 14105 14106 CFLAGS="$xorg_testset_save_CFLAGS" 14107 14108 eval supported=\$$cacheid 14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14110$as_echo "$supported" >&6; } 14111 if test "$supported" = "yes" ; then 14112 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14113 found="yes" 14114 fi 14115 fi 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131xorg_testset_save_CFLAGS="$CFLAGS" 14132 14133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14138 $as_echo_n "(cached) " >&6 14139else 14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14141/* end confdefs.h. */ 14142int i; 14143_ACEOF 14144if ac_fn_c_try_compile "$LINENO"; then : 14145 xorg_cv_cc_flag_unknown_warning_option=yes 14146else 14147 xorg_cv_cc_flag_unknown_warning_option=no 14148fi 14149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14150fi 14151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14154 CFLAGS="$xorg_testset_save_CFLAGS" 14155fi 14156 14157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14160 fi 14161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14165 $as_echo_n "(cached) " >&6 14166else 14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14168/* end confdefs.h. */ 14169int i; 14170_ACEOF 14171if ac_fn_c_try_compile "$LINENO"; then : 14172 xorg_cv_cc_flag_unused_command_line_argument=yes 14173else 14174 xorg_cv_cc_flag_unused_command_line_argument=no 14175fi 14176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14177fi 14178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14181 CFLAGS="$xorg_testset_save_CFLAGS" 14182fi 14183 14184found="no" 14185 14186 if test $found = "no" ; then 14187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14189 fi 14190 14191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14193 fi 14194 14195 CFLAGS="$CFLAGS -Wmissing-noreturn" 14196 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14198$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14199 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14200 if eval \${$cacheid+:} false; then : 14201 $as_echo_n "(cached) " >&6 14202else 14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14204/* end confdefs.h. */ 14205int i; 14206int 14207main () 14208{ 14209 14210 ; 14211 return 0; 14212} 14213_ACEOF 14214if ac_fn_c_try_link "$LINENO"; then : 14215 eval $cacheid=yes 14216else 14217 eval $cacheid=no 14218fi 14219rm -f core conftest.err conftest.$ac_objext \ 14220 conftest$ac_exeext conftest.$ac_ext 14221fi 14222 14223 14224 CFLAGS="$xorg_testset_save_CFLAGS" 14225 14226 eval supported=\$$cacheid 14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14228$as_echo "$supported" >&6; } 14229 if test "$supported" = "yes" ; then 14230 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14231 found="yes" 14232 fi 14233 fi 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249xorg_testset_save_CFLAGS="$CFLAGS" 14250 14251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14254$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14255if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14256 $as_echo_n "(cached) " >&6 14257else 14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14259/* end confdefs.h. */ 14260int i; 14261_ACEOF 14262if ac_fn_c_try_compile "$LINENO"; then : 14263 xorg_cv_cc_flag_unknown_warning_option=yes 14264else 14265 xorg_cv_cc_flag_unknown_warning_option=no 14266fi 14267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14268fi 14269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14270$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14272 CFLAGS="$xorg_testset_save_CFLAGS" 14273fi 14274 14275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14278 fi 14279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14281$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14282if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14283 $as_echo_n "(cached) " >&6 14284else 14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14286/* end confdefs.h. */ 14287int i; 14288_ACEOF 14289if ac_fn_c_try_compile "$LINENO"; then : 14290 xorg_cv_cc_flag_unused_command_line_argument=yes 14291else 14292 xorg_cv_cc_flag_unused_command_line_argument=no 14293fi 14294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14295fi 14296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14297$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14299 CFLAGS="$xorg_testset_save_CFLAGS" 14300fi 14301 14302found="no" 14303 14304 if test $found = "no" ; then 14305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14307 fi 14308 14309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14311 fi 14312 14313 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14314 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14316$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14317 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14318 if eval \${$cacheid+:} false; then : 14319 $as_echo_n "(cached) " >&6 14320else 14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14322/* end confdefs.h. */ 14323int i; 14324int 14325main () 14326{ 14327 14328 ; 14329 return 0; 14330} 14331_ACEOF 14332if ac_fn_c_try_link "$LINENO"; then : 14333 eval $cacheid=yes 14334else 14335 eval $cacheid=no 14336fi 14337rm -f core conftest.err conftest.$ac_objext \ 14338 conftest$ac_exeext conftest.$ac_ext 14339fi 14340 14341 14342 CFLAGS="$xorg_testset_save_CFLAGS" 14343 14344 eval supported=\$$cacheid 14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14346$as_echo "$supported" >&6; } 14347 if test "$supported" = "yes" ; then 14348 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14349 found="yes" 14350 fi 14351 fi 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367xorg_testset_save_CFLAGS="$CFLAGS" 14368 14369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14372$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14373if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14374 $as_echo_n "(cached) " >&6 14375else 14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14377/* end confdefs.h. */ 14378int i; 14379_ACEOF 14380if ac_fn_c_try_compile "$LINENO"; then : 14381 xorg_cv_cc_flag_unknown_warning_option=yes 14382else 14383 xorg_cv_cc_flag_unknown_warning_option=no 14384fi 14385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14386fi 14387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14388$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14390 CFLAGS="$xorg_testset_save_CFLAGS" 14391fi 14392 14393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14396 fi 14397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14399$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14400if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14401 $as_echo_n "(cached) " >&6 14402else 14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14404/* end confdefs.h. */ 14405int i; 14406_ACEOF 14407if ac_fn_c_try_compile "$LINENO"; then : 14408 xorg_cv_cc_flag_unused_command_line_argument=yes 14409else 14410 xorg_cv_cc_flag_unused_command_line_argument=no 14411fi 14412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14413fi 14414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14415$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14416 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14417 CFLAGS="$xorg_testset_save_CFLAGS" 14418fi 14419 14420found="no" 14421 14422 if test $found = "no" ; then 14423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14425 fi 14426 14427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14429 fi 14430 14431 CFLAGS="$CFLAGS -Wredundant-decls" 14432 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14434$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14435 cacheid=xorg_cv_cc_flag__Wredundant_decls 14436 if eval \${$cacheid+:} false; then : 14437 $as_echo_n "(cached) " >&6 14438else 14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14440/* end confdefs.h. */ 14441int i; 14442int 14443main () 14444{ 14445 14446 ; 14447 return 0; 14448} 14449_ACEOF 14450if ac_fn_c_try_link "$LINENO"; then : 14451 eval $cacheid=yes 14452else 14453 eval $cacheid=no 14454fi 14455rm -f core conftest.err conftest.$ac_objext \ 14456 conftest$ac_exeext conftest.$ac_ext 14457fi 14458 14459 14460 CFLAGS="$xorg_testset_save_CFLAGS" 14461 14462 eval supported=\$$cacheid 14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14464$as_echo "$supported" >&6; } 14465 if test "$supported" = "yes" ; then 14466 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14467 found="yes" 14468 fi 14469 fi 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485xorg_testset_save_CFLAGS="$CFLAGS" 14486 14487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14492 $as_echo_n "(cached) " >&6 14493else 14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14495/* end confdefs.h. */ 14496int i; 14497_ACEOF 14498if ac_fn_c_try_compile "$LINENO"; then : 14499 xorg_cv_cc_flag_unknown_warning_option=yes 14500else 14501 xorg_cv_cc_flag_unknown_warning_option=no 14502fi 14503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14504fi 14505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14508 CFLAGS="$xorg_testset_save_CFLAGS" 14509fi 14510 14511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14514 fi 14515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14519 $as_echo_n "(cached) " >&6 14520else 14521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14522/* end confdefs.h. */ 14523int i; 14524_ACEOF 14525if ac_fn_c_try_compile "$LINENO"; then : 14526 xorg_cv_cc_flag_unused_command_line_argument=yes 14527else 14528 xorg_cv_cc_flag_unused_command_line_argument=no 14529fi 14530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14531fi 14532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14535 CFLAGS="$xorg_testset_save_CFLAGS" 14536fi 14537 14538found="no" 14539 14540 if test $found = "no" ; then 14541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14543 fi 14544 14545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14547 fi 14548 14549 CFLAGS="$CFLAGS -Wlogical-op" 14550 14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14552$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14553 cacheid=xorg_cv_cc_flag__Wlogical_op 14554 if eval \${$cacheid+:} false; then : 14555 $as_echo_n "(cached) " >&6 14556else 14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14558/* end confdefs.h. */ 14559int i; 14560int 14561main () 14562{ 14563 14564 ; 14565 return 0; 14566} 14567_ACEOF 14568if ac_fn_c_try_link "$LINENO"; then : 14569 eval $cacheid=yes 14570else 14571 eval $cacheid=no 14572fi 14573rm -f core conftest.err conftest.$ac_objext \ 14574 conftest$ac_exeext conftest.$ac_ext 14575fi 14576 14577 14578 CFLAGS="$xorg_testset_save_CFLAGS" 14579 14580 eval supported=\$$cacheid 14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14582$as_echo "$supported" >&6; } 14583 if test "$supported" = "yes" ; then 14584 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14585 found="yes" 14586 fi 14587 fi 14588 14589 14590 14591# These are currently disabled because they are noisy. They will be enabled 14592# in the future once the codebase is sufficiently modernized to silence 14593# them. For now, I don't want them to drown out the other warnings. 14594# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14595# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14596# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14597 14598# Turn some warnings into errors, so we don't accidently get successful builds 14599# when there are problems that should be fixed. 14600 14601if test "x$SELECTIVE_WERROR" = "xyes" ; then 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615xorg_testset_save_CFLAGS="$CFLAGS" 14616 14617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14622 $as_echo_n "(cached) " >&6 14623else 14624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14625/* end confdefs.h. */ 14626int i; 14627_ACEOF 14628if ac_fn_c_try_compile "$LINENO"; then : 14629 xorg_cv_cc_flag_unknown_warning_option=yes 14630else 14631 xorg_cv_cc_flag_unknown_warning_option=no 14632fi 14633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14634fi 14635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14638 CFLAGS="$xorg_testset_save_CFLAGS" 14639fi 14640 14641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14644 fi 14645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14649 $as_echo_n "(cached) " >&6 14650else 14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14652/* end confdefs.h. */ 14653int i; 14654_ACEOF 14655if ac_fn_c_try_compile "$LINENO"; then : 14656 xorg_cv_cc_flag_unused_command_line_argument=yes 14657else 14658 xorg_cv_cc_flag_unused_command_line_argument=no 14659fi 14660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14661fi 14662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14665 CFLAGS="$xorg_testset_save_CFLAGS" 14666fi 14667 14668found="no" 14669 14670 if test $found = "no" ; then 14671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14673 fi 14674 14675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14677 fi 14678 14679 CFLAGS="$CFLAGS -Werror=implicit" 14680 14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14682$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14683 cacheid=xorg_cv_cc_flag__Werror_implicit 14684 if eval \${$cacheid+:} false; then : 14685 $as_echo_n "(cached) " >&6 14686else 14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14688/* end confdefs.h. */ 14689int i; 14690int 14691main () 14692{ 14693 14694 ; 14695 return 0; 14696} 14697_ACEOF 14698if ac_fn_c_try_link "$LINENO"; then : 14699 eval $cacheid=yes 14700else 14701 eval $cacheid=no 14702fi 14703rm -f core conftest.err conftest.$ac_objext \ 14704 conftest$ac_exeext conftest.$ac_ext 14705fi 14706 14707 14708 CFLAGS="$xorg_testset_save_CFLAGS" 14709 14710 eval supported=\$$cacheid 14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14712$as_echo "$supported" >&6; } 14713 if test "$supported" = "yes" ; then 14714 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14715 found="yes" 14716 fi 14717 fi 14718 14719 if test $found = "no" ; then 14720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14722 fi 14723 14724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14726 fi 14727 14728 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14729 14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14731$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14732 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14733 if eval \${$cacheid+:} false; then : 14734 $as_echo_n "(cached) " >&6 14735else 14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14737/* end confdefs.h. */ 14738int i; 14739int 14740main () 14741{ 14742 14743 ; 14744 return 0; 14745} 14746_ACEOF 14747if ac_fn_c_try_link "$LINENO"; then : 14748 eval $cacheid=yes 14749else 14750 eval $cacheid=no 14751fi 14752rm -f core conftest.err conftest.$ac_objext \ 14753 conftest$ac_exeext conftest.$ac_ext 14754fi 14755 14756 14757 CFLAGS="$xorg_testset_save_CFLAGS" 14758 14759 eval supported=\$$cacheid 14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14761$as_echo "$supported" >&6; } 14762 if test "$supported" = "yes" ; then 14763 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14764 found="yes" 14765 fi 14766 fi 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782xorg_testset_save_CFLAGS="$CFLAGS" 14783 14784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14787$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14788if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14789 $as_echo_n "(cached) " >&6 14790else 14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14792/* end confdefs.h. */ 14793int i; 14794_ACEOF 14795if ac_fn_c_try_compile "$LINENO"; then : 14796 xorg_cv_cc_flag_unknown_warning_option=yes 14797else 14798 xorg_cv_cc_flag_unknown_warning_option=no 14799fi 14800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14801fi 14802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14803$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14805 CFLAGS="$xorg_testset_save_CFLAGS" 14806fi 14807 14808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14811 fi 14812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14814$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14815if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14816 $as_echo_n "(cached) " >&6 14817else 14818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14819/* end confdefs.h. */ 14820int i; 14821_ACEOF 14822if ac_fn_c_try_compile "$LINENO"; then : 14823 xorg_cv_cc_flag_unused_command_line_argument=yes 14824else 14825 xorg_cv_cc_flag_unused_command_line_argument=no 14826fi 14827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14828fi 14829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14830$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14832 CFLAGS="$xorg_testset_save_CFLAGS" 14833fi 14834 14835found="no" 14836 14837 if test $found = "no" ; then 14838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14840 fi 14841 14842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14844 fi 14845 14846 CFLAGS="$CFLAGS -Werror=nonnull" 14847 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14849$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14850 cacheid=xorg_cv_cc_flag__Werror_nonnull 14851 if eval \${$cacheid+:} false; then : 14852 $as_echo_n "(cached) " >&6 14853else 14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14855/* end confdefs.h. */ 14856int i; 14857int 14858main () 14859{ 14860 14861 ; 14862 return 0; 14863} 14864_ACEOF 14865if ac_fn_c_try_link "$LINENO"; then : 14866 eval $cacheid=yes 14867else 14868 eval $cacheid=no 14869fi 14870rm -f core conftest.err conftest.$ac_objext \ 14871 conftest$ac_exeext conftest.$ac_ext 14872fi 14873 14874 14875 CFLAGS="$xorg_testset_save_CFLAGS" 14876 14877 eval supported=\$$cacheid 14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14879$as_echo "$supported" >&6; } 14880 if test "$supported" = "yes" ; then 14881 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14882 found="yes" 14883 fi 14884 fi 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900xorg_testset_save_CFLAGS="$CFLAGS" 14901 14902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14907 $as_echo_n "(cached) " >&6 14908else 14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14910/* end confdefs.h. */ 14911int i; 14912_ACEOF 14913if ac_fn_c_try_compile "$LINENO"; then : 14914 xorg_cv_cc_flag_unknown_warning_option=yes 14915else 14916 xorg_cv_cc_flag_unknown_warning_option=no 14917fi 14918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14919fi 14920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14923 CFLAGS="$xorg_testset_save_CFLAGS" 14924fi 14925 14926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14929 fi 14930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14934 $as_echo_n "(cached) " >&6 14935else 14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14937/* end confdefs.h. */ 14938int i; 14939_ACEOF 14940if ac_fn_c_try_compile "$LINENO"; then : 14941 xorg_cv_cc_flag_unused_command_line_argument=yes 14942else 14943 xorg_cv_cc_flag_unused_command_line_argument=no 14944fi 14945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14946fi 14947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14950 CFLAGS="$xorg_testset_save_CFLAGS" 14951fi 14952 14953found="no" 14954 14955 if test $found = "no" ; then 14956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14958 fi 14959 14960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14962 fi 14963 14964 CFLAGS="$CFLAGS -Werror=init-self" 14965 14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14967$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14968 cacheid=xorg_cv_cc_flag__Werror_init_self 14969 if eval \${$cacheid+:} false; then : 14970 $as_echo_n "(cached) " >&6 14971else 14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14973/* end confdefs.h. */ 14974int i; 14975int 14976main () 14977{ 14978 14979 ; 14980 return 0; 14981} 14982_ACEOF 14983if ac_fn_c_try_link "$LINENO"; then : 14984 eval $cacheid=yes 14985else 14986 eval $cacheid=no 14987fi 14988rm -f core conftest.err conftest.$ac_objext \ 14989 conftest$ac_exeext conftest.$ac_ext 14990fi 14991 14992 14993 CFLAGS="$xorg_testset_save_CFLAGS" 14994 14995 eval supported=\$$cacheid 14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14997$as_echo "$supported" >&6; } 14998 if test "$supported" = "yes" ; then 14999 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15000 found="yes" 15001 fi 15002 fi 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018xorg_testset_save_CFLAGS="$CFLAGS" 15019 15020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15023$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15024if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15025 $as_echo_n "(cached) " >&6 15026else 15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15028/* end confdefs.h. */ 15029int i; 15030_ACEOF 15031if ac_fn_c_try_compile "$LINENO"; then : 15032 xorg_cv_cc_flag_unknown_warning_option=yes 15033else 15034 xorg_cv_cc_flag_unknown_warning_option=no 15035fi 15036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15037fi 15038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15039$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15041 CFLAGS="$xorg_testset_save_CFLAGS" 15042fi 15043 15044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15047 fi 15048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15050$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15051if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15052 $as_echo_n "(cached) " >&6 15053else 15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15055/* end confdefs.h. */ 15056int i; 15057_ACEOF 15058if ac_fn_c_try_compile "$LINENO"; then : 15059 xorg_cv_cc_flag_unused_command_line_argument=yes 15060else 15061 xorg_cv_cc_flag_unused_command_line_argument=no 15062fi 15063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15064fi 15065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15066$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15068 CFLAGS="$xorg_testset_save_CFLAGS" 15069fi 15070 15071found="no" 15072 15073 if test $found = "no" ; then 15074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15076 fi 15077 15078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15080 fi 15081 15082 CFLAGS="$CFLAGS -Werror=main" 15083 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15085$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15086 cacheid=xorg_cv_cc_flag__Werror_main 15087 if eval \${$cacheid+:} false; then : 15088 $as_echo_n "(cached) " >&6 15089else 15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15091/* end confdefs.h. */ 15092int i; 15093int 15094main () 15095{ 15096 15097 ; 15098 return 0; 15099} 15100_ACEOF 15101if ac_fn_c_try_link "$LINENO"; then : 15102 eval $cacheid=yes 15103else 15104 eval $cacheid=no 15105fi 15106rm -f core conftest.err conftest.$ac_objext \ 15107 conftest$ac_exeext conftest.$ac_ext 15108fi 15109 15110 15111 CFLAGS="$xorg_testset_save_CFLAGS" 15112 15113 eval supported=\$$cacheid 15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15115$as_echo "$supported" >&6; } 15116 if test "$supported" = "yes" ; then 15117 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15118 found="yes" 15119 fi 15120 fi 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136xorg_testset_save_CFLAGS="$CFLAGS" 15137 15138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15141$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15142if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15143 $as_echo_n "(cached) " >&6 15144else 15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15146/* end confdefs.h. */ 15147int i; 15148_ACEOF 15149if ac_fn_c_try_compile "$LINENO"; then : 15150 xorg_cv_cc_flag_unknown_warning_option=yes 15151else 15152 xorg_cv_cc_flag_unknown_warning_option=no 15153fi 15154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15155fi 15156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15157$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15159 CFLAGS="$xorg_testset_save_CFLAGS" 15160fi 15161 15162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15165 fi 15166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15168$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15169if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15170 $as_echo_n "(cached) " >&6 15171else 15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15173/* end confdefs.h. */ 15174int i; 15175_ACEOF 15176if ac_fn_c_try_compile "$LINENO"; then : 15177 xorg_cv_cc_flag_unused_command_line_argument=yes 15178else 15179 xorg_cv_cc_flag_unused_command_line_argument=no 15180fi 15181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15182fi 15183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15184$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15186 CFLAGS="$xorg_testset_save_CFLAGS" 15187fi 15188 15189found="no" 15190 15191 if test $found = "no" ; then 15192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15194 fi 15195 15196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15198 fi 15199 15200 CFLAGS="$CFLAGS -Werror=missing-braces" 15201 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15203$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15204 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15205 if eval \${$cacheid+:} false; then : 15206 $as_echo_n "(cached) " >&6 15207else 15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15209/* end confdefs.h. */ 15210int i; 15211int 15212main () 15213{ 15214 15215 ; 15216 return 0; 15217} 15218_ACEOF 15219if ac_fn_c_try_link "$LINENO"; then : 15220 eval $cacheid=yes 15221else 15222 eval $cacheid=no 15223fi 15224rm -f core conftest.err conftest.$ac_objext \ 15225 conftest$ac_exeext conftest.$ac_ext 15226fi 15227 15228 15229 CFLAGS="$xorg_testset_save_CFLAGS" 15230 15231 eval supported=\$$cacheid 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15233$as_echo "$supported" >&6; } 15234 if test "$supported" = "yes" ; then 15235 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15236 found="yes" 15237 fi 15238 fi 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254xorg_testset_save_CFLAGS="$CFLAGS" 15255 15256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15259$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15260if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15261 $as_echo_n "(cached) " >&6 15262else 15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15264/* end confdefs.h. */ 15265int i; 15266_ACEOF 15267if ac_fn_c_try_compile "$LINENO"; then : 15268 xorg_cv_cc_flag_unknown_warning_option=yes 15269else 15270 xorg_cv_cc_flag_unknown_warning_option=no 15271fi 15272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15273fi 15274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15275$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15277 CFLAGS="$xorg_testset_save_CFLAGS" 15278fi 15279 15280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15283 fi 15284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15286$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15287if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15288 $as_echo_n "(cached) " >&6 15289else 15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15291/* end confdefs.h. */ 15292int i; 15293_ACEOF 15294if ac_fn_c_try_compile "$LINENO"; then : 15295 xorg_cv_cc_flag_unused_command_line_argument=yes 15296else 15297 xorg_cv_cc_flag_unused_command_line_argument=no 15298fi 15299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15300fi 15301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15302$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15304 CFLAGS="$xorg_testset_save_CFLAGS" 15305fi 15306 15307found="no" 15308 15309 if test $found = "no" ; then 15310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15312 fi 15313 15314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15316 fi 15317 15318 CFLAGS="$CFLAGS -Werror=sequence-point" 15319 15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15321$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15322 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15323 if eval \${$cacheid+:} false; then : 15324 $as_echo_n "(cached) " >&6 15325else 15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15327/* end confdefs.h. */ 15328int i; 15329int 15330main () 15331{ 15332 15333 ; 15334 return 0; 15335} 15336_ACEOF 15337if ac_fn_c_try_link "$LINENO"; then : 15338 eval $cacheid=yes 15339else 15340 eval $cacheid=no 15341fi 15342rm -f core conftest.err conftest.$ac_objext \ 15343 conftest$ac_exeext conftest.$ac_ext 15344fi 15345 15346 15347 CFLAGS="$xorg_testset_save_CFLAGS" 15348 15349 eval supported=\$$cacheid 15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15351$as_echo "$supported" >&6; } 15352 if test "$supported" = "yes" ; then 15353 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15354 found="yes" 15355 fi 15356 fi 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372xorg_testset_save_CFLAGS="$CFLAGS" 15373 15374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15379 $as_echo_n "(cached) " >&6 15380else 15381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15382/* end confdefs.h. */ 15383int i; 15384_ACEOF 15385if ac_fn_c_try_compile "$LINENO"; then : 15386 xorg_cv_cc_flag_unknown_warning_option=yes 15387else 15388 xorg_cv_cc_flag_unknown_warning_option=no 15389fi 15390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15391fi 15392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15395 CFLAGS="$xorg_testset_save_CFLAGS" 15396fi 15397 15398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15401 fi 15402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15406 $as_echo_n "(cached) " >&6 15407else 15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15409/* end confdefs.h. */ 15410int i; 15411_ACEOF 15412if ac_fn_c_try_compile "$LINENO"; then : 15413 xorg_cv_cc_flag_unused_command_line_argument=yes 15414else 15415 xorg_cv_cc_flag_unused_command_line_argument=no 15416fi 15417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15418fi 15419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15422 CFLAGS="$xorg_testset_save_CFLAGS" 15423fi 15424 15425found="no" 15426 15427 if test $found = "no" ; then 15428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15430 fi 15431 15432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15434 fi 15435 15436 CFLAGS="$CFLAGS -Werror=return-type" 15437 15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15439$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15440 cacheid=xorg_cv_cc_flag__Werror_return_type 15441 if eval \${$cacheid+:} false; then : 15442 $as_echo_n "(cached) " >&6 15443else 15444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15445/* end confdefs.h. */ 15446int i; 15447int 15448main () 15449{ 15450 15451 ; 15452 return 0; 15453} 15454_ACEOF 15455if ac_fn_c_try_link "$LINENO"; then : 15456 eval $cacheid=yes 15457else 15458 eval $cacheid=no 15459fi 15460rm -f core conftest.err conftest.$ac_objext \ 15461 conftest$ac_exeext conftest.$ac_ext 15462fi 15463 15464 15465 CFLAGS="$xorg_testset_save_CFLAGS" 15466 15467 eval supported=\$$cacheid 15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15469$as_echo "$supported" >&6; } 15470 if test "$supported" = "yes" ; then 15471 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15472 found="yes" 15473 fi 15474 fi 15475 15476 if test $found = "no" ; then 15477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15479 fi 15480 15481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15483 fi 15484 15485 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15486 15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15488$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15489 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15490 if eval \${$cacheid+:} false; then : 15491 $as_echo_n "(cached) " >&6 15492else 15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15494/* end confdefs.h. */ 15495int i; 15496int 15497main () 15498{ 15499 15500 ; 15501 return 0; 15502} 15503_ACEOF 15504if ac_fn_c_try_link "$LINENO"; then : 15505 eval $cacheid=yes 15506else 15507 eval $cacheid=no 15508fi 15509rm -f core conftest.err conftest.$ac_objext \ 15510 conftest$ac_exeext conftest.$ac_ext 15511fi 15512 15513 15514 CFLAGS="$xorg_testset_save_CFLAGS" 15515 15516 eval supported=\$$cacheid 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15518$as_echo "$supported" >&6; } 15519 if test "$supported" = "yes" ; then 15520 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15521 found="yes" 15522 fi 15523 fi 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539xorg_testset_save_CFLAGS="$CFLAGS" 15540 15541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15544$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15545if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15546 $as_echo_n "(cached) " >&6 15547else 15548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15549/* end confdefs.h. */ 15550int i; 15551_ACEOF 15552if ac_fn_c_try_compile "$LINENO"; then : 15553 xorg_cv_cc_flag_unknown_warning_option=yes 15554else 15555 xorg_cv_cc_flag_unknown_warning_option=no 15556fi 15557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15558fi 15559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15560$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15562 CFLAGS="$xorg_testset_save_CFLAGS" 15563fi 15564 15565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15568 fi 15569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15572if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15573 $as_echo_n "(cached) " >&6 15574else 15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15576/* end confdefs.h. */ 15577int i; 15578_ACEOF 15579if ac_fn_c_try_compile "$LINENO"; then : 15580 xorg_cv_cc_flag_unused_command_line_argument=yes 15581else 15582 xorg_cv_cc_flag_unused_command_line_argument=no 15583fi 15584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15585fi 15586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15587$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15589 CFLAGS="$xorg_testset_save_CFLAGS" 15590fi 15591 15592found="no" 15593 15594 if test $found = "no" ; then 15595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15597 fi 15598 15599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15601 fi 15602 15603 CFLAGS="$CFLAGS -Werror=trigraphs" 15604 15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15606$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15607 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15608 if eval \${$cacheid+:} false; then : 15609 $as_echo_n "(cached) " >&6 15610else 15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15612/* end confdefs.h. */ 15613int i; 15614int 15615main () 15616{ 15617 15618 ; 15619 return 0; 15620} 15621_ACEOF 15622if ac_fn_c_try_link "$LINENO"; then : 15623 eval $cacheid=yes 15624else 15625 eval $cacheid=no 15626fi 15627rm -f core conftest.err conftest.$ac_objext \ 15628 conftest$ac_exeext conftest.$ac_ext 15629fi 15630 15631 15632 CFLAGS="$xorg_testset_save_CFLAGS" 15633 15634 eval supported=\$$cacheid 15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15636$as_echo "$supported" >&6; } 15637 if test "$supported" = "yes" ; then 15638 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15639 found="yes" 15640 fi 15641 fi 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657xorg_testset_save_CFLAGS="$CFLAGS" 15658 15659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15664 $as_echo_n "(cached) " >&6 15665else 15666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15667/* end confdefs.h. */ 15668int i; 15669_ACEOF 15670if ac_fn_c_try_compile "$LINENO"; then : 15671 xorg_cv_cc_flag_unknown_warning_option=yes 15672else 15673 xorg_cv_cc_flag_unknown_warning_option=no 15674fi 15675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15676fi 15677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15680 CFLAGS="$xorg_testset_save_CFLAGS" 15681fi 15682 15683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15686 fi 15687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15691 $as_echo_n "(cached) " >&6 15692else 15693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15694/* end confdefs.h. */ 15695int i; 15696_ACEOF 15697if ac_fn_c_try_compile "$LINENO"; then : 15698 xorg_cv_cc_flag_unused_command_line_argument=yes 15699else 15700 xorg_cv_cc_flag_unused_command_line_argument=no 15701fi 15702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15703fi 15704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15707 CFLAGS="$xorg_testset_save_CFLAGS" 15708fi 15709 15710found="no" 15711 15712 if test $found = "no" ; then 15713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15715 fi 15716 15717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15719 fi 15720 15721 CFLAGS="$CFLAGS -Werror=array-bounds" 15722 15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15724$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15725 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15726 if eval \${$cacheid+:} false; then : 15727 $as_echo_n "(cached) " >&6 15728else 15729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15730/* end confdefs.h. */ 15731int i; 15732int 15733main () 15734{ 15735 15736 ; 15737 return 0; 15738} 15739_ACEOF 15740if ac_fn_c_try_link "$LINENO"; then : 15741 eval $cacheid=yes 15742else 15743 eval $cacheid=no 15744fi 15745rm -f core conftest.err conftest.$ac_objext \ 15746 conftest$ac_exeext conftest.$ac_ext 15747fi 15748 15749 15750 CFLAGS="$xorg_testset_save_CFLAGS" 15751 15752 eval supported=\$$cacheid 15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15754$as_echo "$supported" >&6; } 15755 if test "$supported" = "yes" ; then 15756 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15757 found="yes" 15758 fi 15759 fi 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775xorg_testset_save_CFLAGS="$CFLAGS" 15776 15777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15782 $as_echo_n "(cached) " >&6 15783else 15784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15785/* end confdefs.h. */ 15786int i; 15787_ACEOF 15788if ac_fn_c_try_compile "$LINENO"; then : 15789 xorg_cv_cc_flag_unknown_warning_option=yes 15790else 15791 xorg_cv_cc_flag_unknown_warning_option=no 15792fi 15793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15794fi 15795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15798 CFLAGS="$xorg_testset_save_CFLAGS" 15799fi 15800 15801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15804 fi 15805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15809 $as_echo_n "(cached) " >&6 15810else 15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15812/* end confdefs.h. */ 15813int i; 15814_ACEOF 15815if ac_fn_c_try_compile "$LINENO"; then : 15816 xorg_cv_cc_flag_unused_command_line_argument=yes 15817else 15818 xorg_cv_cc_flag_unused_command_line_argument=no 15819fi 15820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15821fi 15822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15825 CFLAGS="$xorg_testset_save_CFLAGS" 15826fi 15827 15828found="no" 15829 15830 if test $found = "no" ; then 15831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15833 fi 15834 15835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15837 fi 15838 15839 CFLAGS="$CFLAGS -Werror=write-strings" 15840 15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15842$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15843 cacheid=xorg_cv_cc_flag__Werror_write_strings 15844 if eval \${$cacheid+:} false; then : 15845 $as_echo_n "(cached) " >&6 15846else 15847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15848/* end confdefs.h. */ 15849int i; 15850int 15851main () 15852{ 15853 15854 ; 15855 return 0; 15856} 15857_ACEOF 15858if ac_fn_c_try_link "$LINENO"; then : 15859 eval $cacheid=yes 15860else 15861 eval $cacheid=no 15862fi 15863rm -f core conftest.err conftest.$ac_objext \ 15864 conftest$ac_exeext conftest.$ac_ext 15865fi 15866 15867 15868 CFLAGS="$xorg_testset_save_CFLAGS" 15869 15870 eval supported=\$$cacheid 15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15872$as_echo "$supported" >&6; } 15873 if test "$supported" = "yes" ; then 15874 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15875 found="yes" 15876 fi 15877 fi 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893xorg_testset_save_CFLAGS="$CFLAGS" 15894 15895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15900 $as_echo_n "(cached) " >&6 15901else 15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15903/* end confdefs.h. */ 15904int i; 15905_ACEOF 15906if ac_fn_c_try_compile "$LINENO"; then : 15907 xorg_cv_cc_flag_unknown_warning_option=yes 15908else 15909 xorg_cv_cc_flag_unknown_warning_option=no 15910fi 15911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15912fi 15913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15916 CFLAGS="$xorg_testset_save_CFLAGS" 15917fi 15918 15919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15922 fi 15923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15927 $as_echo_n "(cached) " >&6 15928else 15929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15930/* end confdefs.h. */ 15931int i; 15932_ACEOF 15933if ac_fn_c_try_compile "$LINENO"; then : 15934 xorg_cv_cc_flag_unused_command_line_argument=yes 15935else 15936 xorg_cv_cc_flag_unused_command_line_argument=no 15937fi 15938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15939fi 15940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15943 CFLAGS="$xorg_testset_save_CFLAGS" 15944fi 15945 15946found="no" 15947 15948 if test $found = "no" ; then 15949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15951 fi 15952 15953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15955 fi 15956 15957 CFLAGS="$CFLAGS -Werror=address" 15958 15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15960$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15961 cacheid=xorg_cv_cc_flag__Werror_address 15962 if eval \${$cacheid+:} false; then : 15963 $as_echo_n "(cached) " >&6 15964else 15965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15966/* end confdefs.h. */ 15967int i; 15968int 15969main () 15970{ 15971 15972 ; 15973 return 0; 15974} 15975_ACEOF 15976if ac_fn_c_try_link "$LINENO"; then : 15977 eval $cacheid=yes 15978else 15979 eval $cacheid=no 15980fi 15981rm -f core conftest.err conftest.$ac_objext \ 15982 conftest$ac_exeext conftest.$ac_ext 15983fi 15984 15985 15986 CFLAGS="$xorg_testset_save_CFLAGS" 15987 15988 eval supported=\$$cacheid 15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15990$as_echo "$supported" >&6; } 15991 if test "$supported" = "yes" ; then 15992 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15993 found="yes" 15994 fi 15995 fi 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011xorg_testset_save_CFLAGS="$CFLAGS" 16012 16013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16018 $as_echo_n "(cached) " >&6 16019else 16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16021/* end confdefs.h. */ 16022int i; 16023_ACEOF 16024if ac_fn_c_try_compile "$LINENO"; then : 16025 xorg_cv_cc_flag_unknown_warning_option=yes 16026else 16027 xorg_cv_cc_flag_unknown_warning_option=no 16028fi 16029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16030fi 16031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16034 CFLAGS="$xorg_testset_save_CFLAGS" 16035fi 16036 16037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16040 fi 16041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16045 $as_echo_n "(cached) " >&6 16046else 16047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16048/* end confdefs.h. */ 16049int i; 16050_ACEOF 16051if ac_fn_c_try_compile "$LINENO"; then : 16052 xorg_cv_cc_flag_unused_command_line_argument=yes 16053else 16054 xorg_cv_cc_flag_unused_command_line_argument=no 16055fi 16056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16057fi 16058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16061 CFLAGS="$xorg_testset_save_CFLAGS" 16062fi 16063 16064found="no" 16065 16066 if test $found = "no" ; then 16067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16069 fi 16070 16071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16073 fi 16074 16075 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16076 16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16078$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16079 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16080 if eval \${$cacheid+:} false; then : 16081 $as_echo_n "(cached) " >&6 16082else 16083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16084/* end confdefs.h. */ 16085int i; 16086int 16087main () 16088{ 16089 16090 ; 16091 return 0; 16092} 16093_ACEOF 16094if ac_fn_c_try_link "$LINENO"; then : 16095 eval $cacheid=yes 16096else 16097 eval $cacheid=no 16098fi 16099rm -f core conftest.err conftest.$ac_objext \ 16100 conftest$ac_exeext conftest.$ac_ext 16101fi 16102 16103 16104 CFLAGS="$xorg_testset_save_CFLAGS" 16105 16106 eval supported=\$$cacheid 16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16108$as_echo "$supported" >&6; } 16109 if test "$supported" = "yes" ; then 16110 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16111 found="yes" 16112 fi 16113 fi 16114 16115 if test $found = "no" ; then 16116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16118 fi 16119 16120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16122 fi 16123 16124 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16125 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16127$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16128 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16129 if eval \${$cacheid+:} false; then : 16130 $as_echo_n "(cached) " >&6 16131else 16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16133/* end confdefs.h. */ 16134int i; 16135int 16136main () 16137{ 16138 16139 ; 16140 return 0; 16141} 16142_ACEOF 16143if ac_fn_c_try_link "$LINENO"; then : 16144 eval $cacheid=yes 16145else 16146 eval $cacheid=no 16147fi 16148rm -f core conftest.err conftest.$ac_objext \ 16149 conftest$ac_exeext conftest.$ac_ext 16150fi 16151 16152 16153 CFLAGS="$xorg_testset_save_CFLAGS" 16154 16155 eval supported=\$$cacheid 16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16157$as_echo "$supported" >&6; } 16158 if test "$supported" = "yes" ; then 16159 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16160 found="yes" 16161 fi 16162 fi 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178xorg_testset_save_CFLAGS="$CFLAGS" 16179 16180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16183$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16184if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16185 $as_echo_n "(cached) " >&6 16186else 16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16188/* end confdefs.h. */ 16189int i; 16190_ACEOF 16191if ac_fn_c_try_compile "$LINENO"; then : 16192 xorg_cv_cc_flag_unknown_warning_option=yes 16193else 16194 xorg_cv_cc_flag_unknown_warning_option=no 16195fi 16196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16197fi 16198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16199$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16201 CFLAGS="$xorg_testset_save_CFLAGS" 16202fi 16203 16204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16207 fi 16208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16210$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16211if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16212 $as_echo_n "(cached) " >&6 16213else 16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16215/* end confdefs.h. */ 16216int i; 16217_ACEOF 16218if ac_fn_c_try_compile "$LINENO"; then : 16219 xorg_cv_cc_flag_unused_command_line_argument=yes 16220else 16221 xorg_cv_cc_flag_unused_command_line_argument=no 16222fi 16223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16224fi 16225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16226$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16228 CFLAGS="$xorg_testset_save_CFLAGS" 16229fi 16230 16231found="no" 16232 16233 if test $found = "no" ; then 16234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16236 fi 16237 16238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16240 fi 16241 16242 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16243 16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16245$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16246 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16247 if eval \${$cacheid+:} false; then : 16248 $as_echo_n "(cached) " >&6 16249else 16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16251/* end confdefs.h. */ 16252int i; 16253int 16254main () 16255{ 16256 16257 ; 16258 return 0; 16259} 16260_ACEOF 16261if ac_fn_c_try_link "$LINENO"; then : 16262 eval $cacheid=yes 16263else 16264 eval $cacheid=no 16265fi 16266rm -f core conftest.err conftest.$ac_objext \ 16267 conftest$ac_exeext conftest.$ac_ext 16268fi 16269 16270 16271 CFLAGS="$xorg_testset_save_CFLAGS" 16272 16273 eval supported=\$$cacheid 16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16275$as_echo "$supported" >&6; } 16276 if test "$supported" = "yes" ; then 16277 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16278 found="yes" 16279 fi 16280 fi 16281 16282 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16283else 16284{ $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 16285$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;} 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299xorg_testset_save_CFLAGS="$CFLAGS" 16300 16301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16306 $as_echo_n "(cached) " >&6 16307else 16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16309/* end confdefs.h. */ 16310int i; 16311_ACEOF 16312if ac_fn_c_try_compile "$LINENO"; then : 16313 xorg_cv_cc_flag_unknown_warning_option=yes 16314else 16315 xorg_cv_cc_flag_unknown_warning_option=no 16316fi 16317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16318fi 16319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16322 CFLAGS="$xorg_testset_save_CFLAGS" 16323fi 16324 16325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16328 fi 16329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16333 $as_echo_n "(cached) " >&6 16334else 16335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16336/* end confdefs.h. */ 16337int i; 16338_ACEOF 16339if ac_fn_c_try_compile "$LINENO"; then : 16340 xorg_cv_cc_flag_unused_command_line_argument=yes 16341else 16342 xorg_cv_cc_flag_unused_command_line_argument=no 16343fi 16344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16345fi 16346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16349 CFLAGS="$xorg_testset_save_CFLAGS" 16350fi 16351 16352found="no" 16353 16354 if test $found = "no" ; then 16355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16357 fi 16358 16359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16361 fi 16362 16363 CFLAGS="$CFLAGS -Wimplicit" 16364 16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16366$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16367 cacheid=xorg_cv_cc_flag__Wimplicit 16368 if eval \${$cacheid+:} false; then : 16369 $as_echo_n "(cached) " >&6 16370else 16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16372/* end confdefs.h. */ 16373int i; 16374int 16375main () 16376{ 16377 16378 ; 16379 return 0; 16380} 16381_ACEOF 16382if ac_fn_c_try_link "$LINENO"; then : 16383 eval $cacheid=yes 16384else 16385 eval $cacheid=no 16386fi 16387rm -f core conftest.err conftest.$ac_objext \ 16388 conftest$ac_exeext conftest.$ac_ext 16389fi 16390 16391 16392 CFLAGS="$xorg_testset_save_CFLAGS" 16393 16394 eval supported=\$$cacheid 16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16396$as_echo "$supported" >&6; } 16397 if test "$supported" = "yes" ; then 16398 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16399 found="yes" 16400 fi 16401 fi 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417xorg_testset_save_CFLAGS="$CFLAGS" 16418 16419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16424 $as_echo_n "(cached) " >&6 16425else 16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16427/* end confdefs.h. */ 16428int i; 16429_ACEOF 16430if ac_fn_c_try_compile "$LINENO"; then : 16431 xorg_cv_cc_flag_unknown_warning_option=yes 16432else 16433 xorg_cv_cc_flag_unknown_warning_option=no 16434fi 16435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16436fi 16437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16440 CFLAGS="$xorg_testset_save_CFLAGS" 16441fi 16442 16443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16446 fi 16447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16451 $as_echo_n "(cached) " >&6 16452else 16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16454/* end confdefs.h. */ 16455int i; 16456_ACEOF 16457if ac_fn_c_try_compile "$LINENO"; then : 16458 xorg_cv_cc_flag_unused_command_line_argument=yes 16459else 16460 xorg_cv_cc_flag_unused_command_line_argument=no 16461fi 16462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16463fi 16464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16467 CFLAGS="$xorg_testset_save_CFLAGS" 16468fi 16469 16470found="no" 16471 16472 if test $found = "no" ; then 16473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16475 fi 16476 16477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16479 fi 16480 16481 CFLAGS="$CFLAGS -Wnonnull" 16482 16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16484$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16485 cacheid=xorg_cv_cc_flag__Wnonnull 16486 if eval \${$cacheid+:} false; then : 16487 $as_echo_n "(cached) " >&6 16488else 16489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16490/* end confdefs.h. */ 16491int i; 16492int 16493main () 16494{ 16495 16496 ; 16497 return 0; 16498} 16499_ACEOF 16500if ac_fn_c_try_link "$LINENO"; then : 16501 eval $cacheid=yes 16502else 16503 eval $cacheid=no 16504fi 16505rm -f core conftest.err conftest.$ac_objext \ 16506 conftest$ac_exeext conftest.$ac_ext 16507fi 16508 16509 16510 CFLAGS="$xorg_testset_save_CFLAGS" 16511 16512 eval supported=\$$cacheid 16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16514$as_echo "$supported" >&6; } 16515 if test "$supported" = "yes" ; then 16516 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16517 found="yes" 16518 fi 16519 fi 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535xorg_testset_save_CFLAGS="$CFLAGS" 16536 16537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16542 $as_echo_n "(cached) " >&6 16543else 16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16545/* end confdefs.h. */ 16546int i; 16547_ACEOF 16548if ac_fn_c_try_compile "$LINENO"; then : 16549 xorg_cv_cc_flag_unknown_warning_option=yes 16550else 16551 xorg_cv_cc_flag_unknown_warning_option=no 16552fi 16553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16554fi 16555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16558 CFLAGS="$xorg_testset_save_CFLAGS" 16559fi 16560 16561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16564 fi 16565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16569 $as_echo_n "(cached) " >&6 16570else 16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16572/* end confdefs.h. */ 16573int i; 16574_ACEOF 16575if ac_fn_c_try_compile "$LINENO"; then : 16576 xorg_cv_cc_flag_unused_command_line_argument=yes 16577else 16578 xorg_cv_cc_flag_unused_command_line_argument=no 16579fi 16580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16581fi 16582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16585 CFLAGS="$xorg_testset_save_CFLAGS" 16586fi 16587 16588found="no" 16589 16590 if test $found = "no" ; then 16591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16593 fi 16594 16595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16597 fi 16598 16599 CFLAGS="$CFLAGS -Winit-self" 16600 16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16602$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16603 cacheid=xorg_cv_cc_flag__Winit_self 16604 if eval \${$cacheid+:} false; then : 16605 $as_echo_n "(cached) " >&6 16606else 16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16608/* end confdefs.h. */ 16609int i; 16610int 16611main () 16612{ 16613 16614 ; 16615 return 0; 16616} 16617_ACEOF 16618if ac_fn_c_try_link "$LINENO"; then : 16619 eval $cacheid=yes 16620else 16621 eval $cacheid=no 16622fi 16623rm -f core conftest.err conftest.$ac_objext \ 16624 conftest$ac_exeext conftest.$ac_ext 16625fi 16626 16627 16628 CFLAGS="$xorg_testset_save_CFLAGS" 16629 16630 eval supported=\$$cacheid 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16632$as_echo "$supported" >&6; } 16633 if test "$supported" = "yes" ; then 16634 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16635 found="yes" 16636 fi 16637 fi 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653xorg_testset_save_CFLAGS="$CFLAGS" 16654 16655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16658$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16659if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16660 $as_echo_n "(cached) " >&6 16661else 16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16663/* end confdefs.h. */ 16664int i; 16665_ACEOF 16666if ac_fn_c_try_compile "$LINENO"; then : 16667 xorg_cv_cc_flag_unknown_warning_option=yes 16668else 16669 xorg_cv_cc_flag_unknown_warning_option=no 16670fi 16671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16672fi 16673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16674$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16676 CFLAGS="$xorg_testset_save_CFLAGS" 16677fi 16678 16679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16682 fi 16683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16685$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16686if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16687 $as_echo_n "(cached) " >&6 16688else 16689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16690/* end confdefs.h. */ 16691int i; 16692_ACEOF 16693if ac_fn_c_try_compile "$LINENO"; then : 16694 xorg_cv_cc_flag_unused_command_line_argument=yes 16695else 16696 xorg_cv_cc_flag_unused_command_line_argument=no 16697fi 16698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16699fi 16700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16701$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16703 CFLAGS="$xorg_testset_save_CFLAGS" 16704fi 16705 16706found="no" 16707 16708 if test $found = "no" ; then 16709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16711 fi 16712 16713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16715 fi 16716 16717 CFLAGS="$CFLAGS -Wmain" 16718 16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16720$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16721 cacheid=xorg_cv_cc_flag__Wmain 16722 if eval \${$cacheid+:} false; then : 16723 $as_echo_n "(cached) " >&6 16724else 16725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16726/* end confdefs.h. */ 16727int i; 16728int 16729main () 16730{ 16731 16732 ; 16733 return 0; 16734} 16735_ACEOF 16736if ac_fn_c_try_link "$LINENO"; then : 16737 eval $cacheid=yes 16738else 16739 eval $cacheid=no 16740fi 16741rm -f core conftest.err conftest.$ac_objext \ 16742 conftest$ac_exeext conftest.$ac_ext 16743fi 16744 16745 16746 CFLAGS="$xorg_testset_save_CFLAGS" 16747 16748 eval supported=\$$cacheid 16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16750$as_echo "$supported" >&6; } 16751 if test "$supported" = "yes" ; then 16752 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16753 found="yes" 16754 fi 16755 fi 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771xorg_testset_save_CFLAGS="$CFLAGS" 16772 16773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16776$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16777if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16778 $as_echo_n "(cached) " >&6 16779else 16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16781/* end confdefs.h. */ 16782int i; 16783_ACEOF 16784if ac_fn_c_try_compile "$LINENO"; then : 16785 xorg_cv_cc_flag_unknown_warning_option=yes 16786else 16787 xorg_cv_cc_flag_unknown_warning_option=no 16788fi 16789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16790fi 16791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16792$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16794 CFLAGS="$xorg_testset_save_CFLAGS" 16795fi 16796 16797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16800 fi 16801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16803$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16804if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16805 $as_echo_n "(cached) " >&6 16806else 16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16808/* end confdefs.h. */ 16809int i; 16810_ACEOF 16811if ac_fn_c_try_compile "$LINENO"; then : 16812 xorg_cv_cc_flag_unused_command_line_argument=yes 16813else 16814 xorg_cv_cc_flag_unused_command_line_argument=no 16815fi 16816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16817fi 16818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16819$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16821 CFLAGS="$xorg_testset_save_CFLAGS" 16822fi 16823 16824found="no" 16825 16826 if test $found = "no" ; then 16827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16829 fi 16830 16831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16833 fi 16834 16835 CFLAGS="$CFLAGS -Wmissing-braces" 16836 16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16838$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16839 cacheid=xorg_cv_cc_flag__Wmissing_braces 16840 if eval \${$cacheid+:} false; then : 16841 $as_echo_n "(cached) " >&6 16842else 16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16844/* end confdefs.h. */ 16845int i; 16846int 16847main () 16848{ 16849 16850 ; 16851 return 0; 16852} 16853_ACEOF 16854if ac_fn_c_try_link "$LINENO"; then : 16855 eval $cacheid=yes 16856else 16857 eval $cacheid=no 16858fi 16859rm -f core conftest.err conftest.$ac_objext \ 16860 conftest$ac_exeext conftest.$ac_ext 16861fi 16862 16863 16864 CFLAGS="$xorg_testset_save_CFLAGS" 16865 16866 eval supported=\$$cacheid 16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16868$as_echo "$supported" >&6; } 16869 if test "$supported" = "yes" ; then 16870 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16871 found="yes" 16872 fi 16873 fi 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889xorg_testset_save_CFLAGS="$CFLAGS" 16890 16891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16896 $as_echo_n "(cached) " >&6 16897else 16898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16899/* end confdefs.h. */ 16900int i; 16901_ACEOF 16902if ac_fn_c_try_compile "$LINENO"; then : 16903 xorg_cv_cc_flag_unknown_warning_option=yes 16904else 16905 xorg_cv_cc_flag_unknown_warning_option=no 16906fi 16907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16908fi 16909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16912 CFLAGS="$xorg_testset_save_CFLAGS" 16913fi 16914 16915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16918 fi 16919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16923 $as_echo_n "(cached) " >&6 16924else 16925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16926/* end confdefs.h. */ 16927int i; 16928_ACEOF 16929if ac_fn_c_try_compile "$LINENO"; then : 16930 xorg_cv_cc_flag_unused_command_line_argument=yes 16931else 16932 xorg_cv_cc_flag_unused_command_line_argument=no 16933fi 16934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16935fi 16936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16939 CFLAGS="$xorg_testset_save_CFLAGS" 16940fi 16941 16942found="no" 16943 16944 if test $found = "no" ; then 16945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16947 fi 16948 16949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16951 fi 16952 16953 CFLAGS="$CFLAGS -Wsequence-point" 16954 16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16956$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16957 cacheid=xorg_cv_cc_flag__Wsequence_point 16958 if eval \${$cacheid+:} false; then : 16959 $as_echo_n "(cached) " >&6 16960else 16961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16962/* end confdefs.h. */ 16963int i; 16964int 16965main () 16966{ 16967 16968 ; 16969 return 0; 16970} 16971_ACEOF 16972if ac_fn_c_try_link "$LINENO"; then : 16973 eval $cacheid=yes 16974else 16975 eval $cacheid=no 16976fi 16977rm -f core conftest.err conftest.$ac_objext \ 16978 conftest$ac_exeext conftest.$ac_ext 16979fi 16980 16981 16982 CFLAGS="$xorg_testset_save_CFLAGS" 16983 16984 eval supported=\$$cacheid 16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16986$as_echo "$supported" >&6; } 16987 if test "$supported" = "yes" ; then 16988 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16989 found="yes" 16990 fi 16991 fi 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007xorg_testset_save_CFLAGS="$CFLAGS" 17008 17009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17014 $as_echo_n "(cached) " >&6 17015else 17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17017/* end confdefs.h. */ 17018int i; 17019_ACEOF 17020if ac_fn_c_try_compile "$LINENO"; then : 17021 xorg_cv_cc_flag_unknown_warning_option=yes 17022else 17023 xorg_cv_cc_flag_unknown_warning_option=no 17024fi 17025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17026fi 17027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17030 CFLAGS="$xorg_testset_save_CFLAGS" 17031fi 17032 17033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17036 fi 17037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17041 $as_echo_n "(cached) " >&6 17042else 17043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17044/* end confdefs.h. */ 17045int i; 17046_ACEOF 17047if ac_fn_c_try_compile "$LINENO"; then : 17048 xorg_cv_cc_flag_unused_command_line_argument=yes 17049else 17050 xorg_cv_cc_flag_unused_command_line_argument=no 17051fi 17052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17053fi 17054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17057 CFLAGS="$xorg_testset_save_CFLAGS" 17058fi 17059 17060found="no" 17061 17062 if test $found = "no" ; then 17063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17065 fi 17066 17067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17069 fi 17070 17071 CFLAGS="$CFLAGS -Wreturn-type" 17072 17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17074$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 17075 cacheid=xorg_cv_cc_flag__Wreturn_type 17076 if eval \${$cacheid+:} false; then : 17077 $as_echo_n "(cached) " >&6 17078else 17079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17080/* end confdefs.h. */ 17081int i; 17082int 17083main () 17084{ 17085 17086 ; 17087 return 0; 17088} 17089_ACEOF 17090if ac_fn_c_try_link "$LINENO"; then : 17091 eval $cacheid=yes 17092else 17093 eval $cacheid=no 17094fi 17095rm -f core conftest.err conftest.$ac_objext \ 17096 conftest$ac_exeext conftest.$ac_ext 17097fi 17098 17099 17100 CFLAGS="$xorg_testset_save_CFLAGS" 17101 17102 eval supported=\$$cacheid 17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17104$as_echo "$supported" >&6; } 17105 if test "$supported" = "yes" ; then 17106 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17107 found="yes" 17108 fi 17109 fi 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125xorg_testset_save_CFLAGS="$CFLAGS" 17126 17127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17132 $as_echo_n "(cached) " >&6 17133else 17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17135/* end confdefs.h. */ 17136int i; 17137_ACEOF 17138if ac_fn_c_try_compile "$LINENO"; then : 17139 xorg_cv_cc_flag_unknown_warning_option=yes 17140else 17141 xorg_cv_cc_flag_unknown_warning_option=no 17142fi 17143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17144fi 17145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17148 CFLAGS="$xorg_testset_save_CFLAGS" 17149fi 17150 17151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17154 fi 17155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17159 $as_echo_n "(cached) " >&6 17160else 17161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17162/* end confdefs.h. */ 17163int i; 17164_ACEOF 17165if ac_fn_c_try_compile "$LINENO"; then : 17166 xorg_cv_cc_flag_unused_command_line_argument=yes 17167else 17168 xorg_cv_cc_flag_unused_command_line_argument=no 17169fi 17170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17171fi 17172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17175 CFLAGS="$xorg_testset_save_CFLAGS" 17176fi 17177 17178found="no" 17179 17180 if test $found = "no" ; then 17181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17183 fi 17184 17185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17187 fi 17188 17189 CFLAGS="$CFLAGS -Wtrigraphs" 17190 17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17192$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17193 cacheid=xorg_cv_cc_flag__Wtrigraphs 17194 if eval \${$cacheid+:} false; then : 17195 $as_echo_n "(cached) " >&6 17196else 17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17198/* end confdefs.h. */ 17199int i; 17200int 17201main () 17202{ 17203 17204 ; 17205 return 0; 17206} 17207_ACEOF 17208if ac_fn_c_try_link "$LINENO"; then : 17209 eval $cacheid=yes 17210else 17211 eval $cacheid=no 17212fi 17213rm -f core conftest.err conftest.$ac_objext \ 17214 conftest$ac_exeext conftest.$ac_ext 17215fi 17216 17217 17218 CFLAGS="$xorg_testset_save_CFLAGS" 17219 17220 eval supported=\$$cacheid 17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17222$as_echo "$supported" >&6; } 17223 if test "$supported" = "yes" ; then 17224 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17225 found="yes" 17226 fi 17227 fi 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243xorg_testset_save_CFLAGS="$CFLAGS" 17244 17245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17250 $as_echo_n "(cached) " >&6 17251else 17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17253/* end confdefs.h. */ 17254int i; 17255_ACEOF 17256if ac_fn_c_try_compile "$LINENO"; then : 17257 xorg_cv_cc_flag_unknown_warning_option=yes 17258else 17259 xorg_cv_cc_flag_unknown_warning_option=no 17260fi 17261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17262fi 17263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17266 CFLAGS="$xorg_testset_save_CFLAGS" 17267fi 17268 17269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17272 fi 17273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17277 $as_echo_n "(cached) " >&6 17278else 17279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17280/* end confdefs.h. */ 17281int i; 17282_ACEOF 17283if ac_fn_c_try_compile "$LINENO"; then : 17284 xorg_cv_cc_flag_unused_command_line_argument=yes 17285else 17286 xorg_cv_cc_flag_unused_command_line_argument=no 17287fi 17288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17289fi 17290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17293 CFLAGS="$xorg_testset_save_CFLAGS" 17294fi 17295 17296found="no" 17297 17298 if test $found = "no" ; then 17299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17301 fi 17302 17303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17305 fi 17306 17307 CFLAGS="$CFLAGS -Warray-bounds" 17308 17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17310$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17311 cacheid=xorg_cv_cc_flag__Warray_bounds 17312 if eval \${$cacheid+:} false; then : 17313 $as_echo_n "(cached) " >&6 17314else 17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17316/* end confdefs.h. */ 17317int i; 17318int 17319main () 17320{ 17321 17322 ; 17323 return 0; 17324} 17325_ACEOF 17326if ac_fn_c_try_link "$LINENO"; then : 17327 eval $cacheid=yes 17328else 17329 eval $cacheid=no 17330fi 17331rm -f core conftest.err conftest.$ac_objext \ 17332 conftest$ac_exeext conftest.$ac_ext 17333fi 17334 17335 17336 CFLAGS="$xorg_testset_save_CFLAGS" 17337 17338 eval supported=\$$cacheid 17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17340$as_echo "$supported" >&6; } 17341 if test "$supported" = "yes" ; then 17342 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17343 found="yes" 17344 fi 17345 fi 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361xorg_testset_save_CFLAGS="$CFLAGS" 17362 17363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17368 $as_echo_n "(cached) " >&6 17369else 17370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17371/* end confdefs.h. */ 17372int i; 17373_ACEOF 17374if ac_fn_c_try_compile "$LINENO"; then : 17375 xorg_cv_cc_flag_unknown_warning_option=yes 17376else 17377 xorg_cv_cc_flag_unknown_warning_option=no 17378fi 17379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17380fi 17381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17384 CFLAGS="$xorg_testset_save_CFLAGS" 17385fi 17386 17387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17390 fi 17391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17395 $as_echo_n "(cached) " >&6 17396else 17397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17398/* end confdefs.h. */ 17399int i; 17400_ACEOF 17401if ac_fn_c_try_compile "$LINENO"; then : 17402 xorg_cv_cc_flag_unused_command_line_argument=yes 17403else 17404 xorg_cv_cc_flag_unused_command_line_argument=no 17405fi 17406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17407fi 17408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17411 CFLAGS="$xorg_testset_save_CFLAGS" 17412fi 17413 17414found="no" 17415 17416 if test $found = "no" ; then 17417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17419 fi 17420 17421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17423 fi 17424 17425 CFLAGS="$CFLAGS -Wwrite-strings" 17426 17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17428$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17429 cacheid=xorg_cv_cc_flag__Wwrite_strings 17430 if eval \${$cacheid+:} false; then : 17431 $as_echo_n "(cached) " >&6 17432else 17433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17434/* end confdefs.h. */ 17435int i; 17436int 17437main () 17438{ 17439 17440 ; 17441 return 0; 17442} 17443_ACEOF 17444if ac_fn_c_try_link "$LINENO"; then : 17445 eval $cacheid=yes 17446else 17447 eval $cacheid=no 17448fi 17449rm -f core conftest.err conftest.$ac_objext \ 17450 conftest$ac_exeext conftest.$ac_ext 17451fi 17452 17453 17454 CFLAGS="$xorg_testset_save_CFLAGS" 17455 17456 eval supported=\$$cacheid 17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17458$as_echo "$supported" >&6; } 17459 if test "$supported" = "yes" ; then 17460 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17461 found="yes" 17462 fi 17463 fi 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479xorg_testset_save_CFLAGS="$CFLAGS" 17480 17481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17486 $as_echo_n "(cached) " >&6 17487else 17488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17489/* end confdefs.h. */ 17490int i; 17491_ACEOF 17492if ac_fn_c_try_compile "$LINENO"; then : 17493 xorg_cv_cc_flag_unknown_warning_option=yes 17494else 17495 xorg_cv_cc_flag_unknown_warning_option=no 17496fi 17497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17498fi 17499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17502 CFLAGS="$xorg_testset_save_CFLAGS" 17503fi 17504 17505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17508 fi 17509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17513 $as_echo_n "(cached) " >&6 17514else 17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17516/* end confdefs.h. */ 17517int i; 17518_ACEOF 17519if ac_fn_c_try_compile "$LINENO"; then : 17520 xorg_cv_cc_flag_unused_command_line_argument=yes 17521else 17522 xorg_cv_cc_flag_unused_command_line_argument=no 17523fi 17524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17525fi 17526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17529 CFLAGS="$xorg_testset_save_CFLAGS" 17530fi 17531 17532found="no" 17533 17534 if test $found = "no" ; then 17535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17537 fi 17538 17539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17541 fi 17542 17543 CFLAGS="$CFLAGS -Waddress" 17544 17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17546$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17547 cacheid=xorg_cv_cc_flag__Waddress 17548 if eval \${$cacheid+:} false; then : 17549 $as_echo_n "(cached) " >&6 17550else 17551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17552/* end confdefs.h. */ 17553int i; 17554int 17555main () 17556{ 17557 17558 ; 17559 return 0; 17560} 17561_ACEOF 17562if ac_fn_c_try_link "$LINENO"; then : 17563 eval $cacheid=yes 17564else 17565 eval $cacheid=no 17566fi 17567rm -f core conftest.err conftest.$ac_objext \ 17568 conftest$ac_exeext conftest.$ac_ext 17569fi 17570 17571 17572 CFLAGS="$xorg_testset_save_CFLAGS" 17573 17574 eval supported=\$$cacheid 17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17576$as_echo "$supported" >&6; } 17577 if test "$supported" = "yes" ; then 17578 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17579 found="yes" 17580 fi 17581 fi 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597xorg_testset_save_CFLAGS="$CFLAGS" 17598 17599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17604 $as_echo_n "(cached) " >&6 17605else 17606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17607/* end confdefs.h. */ 17608int i; 17609_ACEOF 17610if ac_fn_c_try_compile "$LINENO"; then : 17611 xorg_cv_cc_flag_unknown_warning_option=yes 17612else 17613 xorg_cv_cc_flag_unknown_warning_option=no 17614fi 17615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17616fi 17617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17620 CFLAGS="$xorg_testset_save_CFLAGS" 17621fi 17622 17623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17626 fi 17627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17631 $as_echo_n "(cached) " >&6 17632else 17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17634/* end confdefs.h. */ 17635int i; 17636_ACEOF 17637if ac_fn_c_try_compile "$LINENO"; then : 17638 xorg_cv_cc_flag_unused_command_line_argument=yes 17639else 17640 xorg_cv_cc_flag_unused_command_line_argument=no 17641fi 17642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17643fi 17644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17647 CFLAGS="$xorg_testset_save_CFLAGS" 17648fi 17649 17650found="no" 17651 17652 if test $found = "no" ; then 17653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17655 fi 17656 17657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17659 fi 17660 17661 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17662 17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17664$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17665 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17666 if eval \${$cacheid+:} false; then : 17667 $as_echo_n "(cached) " >&6 17668else 17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17670/* end confdefs.h. */ 17671int i; 17672int 17673main () 17674{ 17675 17676 ; 17677 return 0; 17678} 17679_ACEOF 17680if ac_fn_c_try_link "$LINENO"; then : 17681 eval $cacheid=yes 17682else 17683 eval $cacheid=no 17684fi 17685rm -f core conftest.err conftest.$ac_objext \ 17686 conftest$ac_exeext conftest.$ac_ext 17687fi 17688 17689 17690 CFLAGS="$xorg_testset_save_CFLAGS" 17691 17692 eval supported=\$$cacheid 17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17694$as_echo "$supported" >&6; } 17695 if test "$supported" = "yes" ; then 17696 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17697 found="yes" 17698 fi 17699 fi 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715xorg_testset_save_CFLAGS="$CFLAGS" 17716 17717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17722 $as_echo_n "(cached) " >&6 17723else 17724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17725/* end confdefs.h. */ 17726int i; 17727_ACEOF 17728if ac_fn_c_try_compile "$LINENO"; then : 17729 xorg_cv_cc_flag_unknown_warning_option=yes 17730else 17731 xorg_cv_cc_flag_unknown_warning_option=no 17732fi 17733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17734fi 17735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17738 CFLAGS="$xorg_testset_save_CFLAGS" 17739fi 17740 17741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17744 fi 17745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17749 $as_echo_n "(cached) " >&6 17750else 17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17752/* end confdefs.h. */ 17753int i; 17754_ACEOF 17755if ac_fn_c_try_compile "$LINENO"; then : 17756 xorg_cv_cc_flag_unused_command_line_argument=yes 17757else 17758 xorg_cv_cc_flag_unused_command_line_argument=no 17759fi 17760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17761fi 17762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17765 CFLAGS="$xorg_testset_save_CFLAGS" 17766fi 17767 17768found="no" 17769 17770 if test $found = "no" ; then 17771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17773 fi 17774 17775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17777 fi 17778 17779 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17780 17781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17782$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17783 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17784 if eval \${$cacheid+:} false; then : 17785 $as_echo_n "(cached) " >&6 17786else 17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17788/* end confdefs.h. */ 17789int i; 17790int 17791main () 17792{ 17793 17794 ; 17795 return 0; 17796} 17797_ACEOF 17798if ac_fn_c_try_link "$LINENO"; then : 17799 eval $cacheid=yes 17800else 17801 eval $cacheid=no 17802fi 17803rm -f core conftest.err conftest.$ac_objext \ 17804 conftest$ac_exeext conftest.$ac_ext 17805fi 17806 17807 17808 CFLAGS="$xorg_testset_save_CFLAGS" 17809 17810 eval supported=\$$cacheid 17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17812$as_echo "$supported" >&6; } 17813 if test "$supported" = "yes" ; then 17814 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17815 found="yes" 17816 fi 17817 fi 17818 17819 17820fi 17821 17822 17823 17824 17825 17826 17827 17828 CWARNFLAGS="$BASE_CFLAGS" 17829 if test "x$GCC" = xyes ; then 17830 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17831 fi 17832 17833 17834 17835 17836 17837 17838 17839 17840# Check whether --enable-strict-compilation was given. 17841if test "${enable_strict_compilation+set}" = set; then : 17842 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17843else 17844 STRICT_COMPILE=no 17845fi 17846 17847 17848 17849 17850 17851 17852STRICT_CFLAGS="" 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866xorg_testset_save_CFLAGS="$CFLAGS" 17867 17868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17871$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17872if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17873 $as_echo_n "(cached) " >&6 17874else 17875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17876/* end confdefs.h. */ 17877int i; 17878_ACEOF 17879if ac_fn_c_try_compile "$LINENO"; then : 17880 xorg_cv_cc_flag_unknown_warning_option=yes 17881else 17882 xorg_cv_cc_flag_unknown_warning_option=no 17883fi 17884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17885fi 17886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17887$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17889 CFLAGS="$xorg_testset_save_CFLAGS" 17890fi 17891 17892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17895 fi 17896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17898$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17899if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17900 $as_echo_n "(cached) " >&6 17901else 17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17903/* end confdefs.h. */ 17904int i; 17905_ACEOF 17906if ac_fn_c_try_compile "$LINENO"; then : 17907 xorg_cv_cc_flag_unused_command_line_argument=yes 17908else 17909 xorg_cv_cc_flag_unused_command_line_argument=no 17910fi 17911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17912fi 17913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17914$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17916 CFLAGS="$xorg_testset_save_CFLAGS" 17917fi 17918 17919found="no" 17920 17921 if test $found = "no" ; then 17922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17924 fi 17925 17926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17928 fi 17929 17930 CFLAGS="$CFLAGS -pedantic" 17931 17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17933$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17934 cacheid=xorg_cv_cc_flag__pedantic 17935 if eval \${$cacheid+:} false; then : 17936 $as_echo_n "(cached) " >&6 17937else 17938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17939/* end confdefs.h. */ 17940int i; 17941int 17942main () 17943{ 17944 17945 ; 17946 return 0; 17947} 17948_ACEOF 17949if ac_fn_c_try_link "$LINENO"; then : 17950 eval $cacheid=yes 17951else 17952 eval $cacheid=no 17953fi 17954rm -f core conftest.err conftest.$ac_objext \ 17955 conftest$ac_exeext conftest.$ac_ext 17956fi 17957 17958 17959 CFLAGS="$xorg_testset_save_CFLAGS" 17960 17961 eval supported=\$$cacheid 17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17963$as_echo "$supported" >&6; } 17964 if test "$supported" = "yes" ; then 17965 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17966 found="yes" 17967 fi 17968 fi 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984xorg_testset_save_CFLAGS="$CFLAGS" 17985 17986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17989$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17990if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17991 $as_echo_n "(cached) " >&6 17992else 17993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17994/* end confdefs.h. */ 17995int i; 17996_ACEOF 17997if ac_fn_c_try_compile "$LINENO"; then : 17998 xorg_cv_cc_flag_unknown_warning_option=yes 17999else 18000 xorg_cv_cc_flag_unknown_warning_option=no 18001fi 18002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18003fi 18004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18005$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18007 CFLAGS="$xorg_testset_save_CFLAGS" 18008fi 18009 18010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18013 fi 18014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18016$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18017if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18018 $as_echo_n "(cached) " >&6 18019else 18020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18021/* end confdefs.h. */ 18022int i; 18023_ACEOF 18024if ac_fn_c_try_compile "$LINENO"; then : 18025 xorg_cv_cc_flag_unused_command_line_argument=yes 18026else 18027 xorg_cv_cc_flag_unused_command_line_argument=no 18028fi 18029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18030fi 18031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18032$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18034 CFLAGS="$xorg_testset_save_CFLAGS" 18035fi 18036 18037found="no" 18038 18039 if test $found = "no" ; then 18040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18042 fi 18043 18044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18046 fi 18047 18048 CFLAGS="$CFLAGS -Werror" 18049 18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18051$as_echo_n "checking if $CC supports -Werror... " >&6; } 18052 cacheid=xorg_cv_cc_flag__Werror 18053 if eval \${$cacheid+:} false; then : 18054 $as_echo_n "(cached) " >&6 18055else 18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18057/* end confdefs.h. */ 18058int i; 18059int 18060main () 18061{ 18062 18063 ; 18064 return 0; 18065} 18066_ACEOF 18067if ac_fn_c_try_link "$LINENO"; then : 18068 eval $cacheid=yes 18069else 18070 eval $cacheid=no 18071fi 18072rm -f core conftest.err conftest.$ac_objext \ 18073 conftest$ac_exeext conftest.$ac_ext 18074fi 18075 18076 18077 CFLAGS="$xorg_testset_save_CFLAGS" 18078 18079 eval supported=\$$cacheid 18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18081$as_echo "$supported" >&6; } 18082 if test "$supported" = "yes" ; then 18083 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18084 found="yes" 18085 fi 18086 fi 18087 18088 if test $found = "no" ; then 18089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18091 fi 18092 18093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18095 fi 18096 18097 CFLAGS="$CFLAGS -errwarn" 18098 18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18100$as_echo_n "checking if $CC supports -errwarn... " >&6; } 18101 cacheid=xorg_cv_cc_flag__errwarn 18102 if eval \${$cacheid+:} false; then : 18103 $as_echo_n "(cached) " >&6 18104else 18105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18106/* end confdefs.h. */ 18107int i; 18108int 18109main () 18110{ 18111 18112 ; 18113 return 0; 18114} 18115_ACEOF 18116if ac_fn_c_try_link "$LINENO"; then : 18117 eval $cacheid=yes 18118else 18119 eval $cacheid=no 18120fi 18121rm -f core conftest.err conftest.$ac_objext \ 18122 conftest$ac_exeext conftest.$ac_ext 18123fi 18124 18125 18126 CFLAGS="$xorg_testset_save_CFLAGS" 18127 18128 eval supported=\$$cacheid 18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18130$as_echo "$supported" >&6; } 18131 if test "$supported" = "yes" ; then 18132 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18133 found="yes" 18134 fi 18135 fi 18136 18137 18138 18139# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18140# activate it with -Werror, so we add it here explicitly. 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154xorg_testset_save_CFLAGS="$CFLAGS" 18155 18156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18159$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18160if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18161 $as_echo_n "(cached) " >&6 18162else 18163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18164/* end confdefs.h. */ 18165int i; 18166_ACEOF 18167if ac_fn_c_try_compile "$LINENO"; then : 18168 xorg_cv_cc_flag_unknown_warning_option=yes 18169else 18170 xorg_cv_cc_flag_unknown_warning_option=no 18171fi 18172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18173fi 18174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18175$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18177 CFLAGS="$xorg_testset_save_CFLAGS" 18178fi 18179 18180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18183 fi 18184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18186$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18187if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18188 $as_echo_n "(cached) " >&6 18189else 18190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18191/* end confdefs.h. */ 18192int i; 18193_ACEOF 18194if ac_fn_c_try_compile "$LINENO"; then : 18195 xorg_cv_cc_flag_unused_command_line_argument=yes 18196else 18197 xorg_cv_cc_flag_unused_command_line_argument=no 18198fi 18199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18200fi 18201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18202$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18204 CFLAGS="$xorg_testset_save_CFLAGS" 18205fi 18206 18207found="no" 18208 18209 if test $found = "no" ; then 18210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18212 fi 18213 18214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18216 fi 18217 18218 CFLAGS="$CFLAGS -Werror=attributes" 18219 18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18221$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18222 cacheid=xorg_cv_cc_flag__Werror_attributes 18223 if eval \${$cacheid+:} false; then : 18224 $as_echo_n "(cached) " >&6 18225else 18226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18227/* end confdefs.h. */ 18228int i; 18229int 18230main () 18231{ 18232 18233 ; 18234 return 0; 18235} 18236_ACEOF 18237if ac_fn_c_try_link "$LINENO"; then : 18238 eval $cacheid=yes 18239else 18240 eval $cacheid=no 18241fi 18242rm -f core conftest.err conftest.$ac_objext \ 18243 conftest$ac_exeext conftest.$ac_ext 18244fi 18245 18246 18247 CFLAGS="$xorg_testset_save_CFLAGS" 18248 18249 eval supported=\$$cacheid 18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18251$as_echo "$supported" >&6; } 18252 if test "$supported" = "yes" ; then 18253 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18254 found="yes" 18255 fi 18256 fi 18257 18258 18259 18260if test "x$STRICT_COMPILE" = "xyes"; then 18261 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18262 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18263fi 18264 18265 18266 18267 18268 18269 18270cat >>confdefs.h <<_ACEOF 18271#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18272_ACEOF 18273 18274 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18275 if test "x$PVM" = "x"; then 18276 PVM="0" 18277 fi 18278 18279cat >>confdefs.h <<_ACEOF 18280#define PACKAGE_VERSION_MINOR $PVM 18281_ACEOF 18282 18283 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18284 if test "x$PVP" = "x"; then 18285 PVP="0" 18286 fi 18287 18288cat >>confdefs.h <<_ACEOF 18289#define PACKAGE_VERSION_PATCHLEVEL $PVP 18290_ACEOF 18291 18292 18293 18294CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 18295mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18296|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 18297touch \$(top_srcdir)/ChangeLog; \ 18298echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 18299 18300 18301 18302 18303macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18304INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18305mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18306|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 18307touch \$(top_srcdir)/INSTALL; \ 18308echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 18309 18310 18311 18312 18313 18314 18315case $host_os in 18316 solaris*) 18317 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 18318 # check for a man page file found in later versions that use 18319 # traditional section numbers instead 18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 18321$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 18322if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 18323 $as_echo_n "(cached) " >&6 18324else 18325 test "$cross_compiling" = yes && 18326 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18327if test -r "/usr/share/man/man7/attributes.7"; then 18328 ac_cv_file__usr_share_man_man7_attributes_7=yes 18329else 18330 ac_cv_file__usr_share_man_man7_attributes_7=no 18331fi 18332fi 18333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 18334$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 18335if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 18336 SYSV_MAN_SECTIONS=false 18337else 18338 SYSV_MAN_SECTIONS=true 18339fi 18340 18341 ;; 18342 *) SYSV_MAN_SECTIONS=false ;; 18343esac 18344 18345if test x$APP_MAN_SUFFIX = x ; then 18346 APP_MAN_SUFFIX=1 18347fi 18348if test x$APP_MAN_DIR = x ; then 18349 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18350fi 18351 18352if test x$LIB_MAN_SUFFIX = x ; then 18353 LIB_MAN_SUFFIX=3 18354fi 18355if test x$LIB_MAN_DIR = x ; then 18356 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18357fi 18358 18359if test x$FILE_MAN_SUFFIX = x ; then 18360 case $SYSV_MAN_SECTIONS in 18361 true) FILE_MAN_SUFFIX=4 ;; 18362 *) FILE_MAN_SUFFIX=5 ;; 18363 esac 18364fi 18365if test x$FILE_MAN_DIR = x ; then 18366 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18367fi 18368 18369if test x$MISC_MAN_SUFFIX = x ; then 18370 case $SYSV_MAN_SECTIONS in 18371 true) MISC_MAN_SUFFIX=5 ;; 18372 *) MISC_MAN_SUFFIX=7 ;; 18373 esac 18374fi 18375if test x$MISC_MAN_DIR = x ; then 18376 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18377fi 18378 18379if test x$DRIVER_MAN_SUFFIX = x ; then 18380 case $SYSV_MAN_SECTIONS in 18381 true) DRIVER_MAN_SUFFIX=7 ;; 18382 *) DRIVER_MAN_SUFFIX=4 ;; 18383 esac 18384fi 18385if test x$DRIVER_MAN_DIR = x ; then 18386 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18387fi 18388 18389if test x$ADMIN_MAN_SUFFIX = x ; then 18390 case $SYSV_MAN_SECTIONS in 18391 true) ADMIN_MAN_SUFFIX=1m ;; 18392 *) ADMIN_MAN_SUFFIX=8 ;; 18393 esac 18394fi 18395if test x$ADMIN_MAN_DIR = x ; then 18396 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18397fi 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413XORG_MAN_PAGE="X Version 11" 18414 18415MAN_SUBSTS="\ 18416 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18417 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18418 -e 's|__xservername__|Xorg|g' \ 18419 -e 's|__xconfigfile__|xorg.conf|g' \ 18420 -e 's|__projectroot__|\$(prefix)|g' \ 18421 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18422 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18423 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18424 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18425 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18426 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18427 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18428 18429 18430 18431# Check whether --enable-silent-rules was given. 18432if test "${enable_silent_rules+set}" = set; then : 18433 enableval=$enable_silent_rules; 18434fi 18435 18436case $enable_silent_rules in # ((( 18437 yes) AM_DEFAULT_VERBOSITY=0;; 18438 no) AM_DEFAULT_VERBOSITY=1;; 18439 *) AM_DEFAULT_VERBOSITY=0;; 18440esac 18441am_make=${MAKE-make} 18442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18443$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18444if ${am_cv_make_support_nested_variables+:} false; then : 18445 $as_echo_n "(cached) " >&6 18446else 18447 if $as_echo 'TRUE=$(BAR$(V)) 18448BAR0=false 18449BAR1=true 18450V=1 18451am__doit: 18452 @$(TRUE) 18453.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18454 am_cv_make_support_nested_variables=yes 18455else 18456 am_cv_make_support_nested_variables=no 18457fi 18458fi 18459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18460$as_echo "$am_cv_make_support_nested_variables" >&6; } 18461if test $am_cv_make_support_nested_variables = yes; then 18462 AM_V='$(V)' 18463 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18464else 18465 AM_V=$AM_DEFAULT_VERBOSITY 18466 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18467fi 18468AM_BACKSLASH='\' 18469 18470 18471 18472 18473 18474 18475 18476# Check whether --with-lint was given. 18477if test "${with_lint+set}" = set; then : 18478 withval=$with_lint; use_lint=$withval 18479else 18480 use_lint=no 18481fi 18482 18483 18484# Obtain platform specific info like program name and options 18485# The lint program on FreeBSD and NetBSD is different from the one on Solaris 18486case $host_os in 18487 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 18488 lint_name=splint 18489 lint_options="-badflag" 18490 ;; 18491 *freebsd* | *netbsd*) 18492 lint_name=lint 18493 lint_options="-u -b" 18494 ;; 18495 *solaris*) 18496 lint_name=lint 18497 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 18498 ;; 18499esac 18500 18501# Test for the presence of the program (either guessed by the code or spelled out by the user) 18502if test "x$use_lint" = x"yes" ; then 18503 # Extract the first word of "$lint_name", so it can be a program name with args. 18504set dummy $lint_name; ac_word=$2 18505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18506$as_echo_n "checking for $ac_word... " >&6; } 18507if ${ac_cv_path_LINT+:} false; then : 18508 $as_echo_n "(cached) " >&6 18509else 18510 case $LINT in 18511 [\\/]* | ?:[\\/]*) 18512 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 18513 ;; 18514 *) 18515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18516for as_dir in $PATH 18517do 18518 IFS=$as_save_IFS 18519 test -z "$as_dir" && as_dir=. 18520 for ac_exec_ext in '' $ac_executable_extensions; do 18521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18522 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 18523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18524 break 2 18525 fi 18526done 18527 done 18528IFS=$as_save_IFS 18529 18530 ;; 18531esac 18532fi 18533LINT=$ac_cv_path_LINT 18534if test -n "$LINT"; then 18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 18536$as_echo "$LINT" >&6; } 18537else 18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18539$as_echo "no" >&6; } 18540fi 18541 18542 18543 if test "x$LINT" = "x"; then 18544 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 18545 fi 18546elif test "x$use_lint" = x"no" ; then 18547 if test "x$LINT" != "x"; then 18548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 18549$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 18550 fi 18551else 18552 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 18553fi 18554 18555# User supplied flags override default flags 18556if test "x$LINT_FLAGS" != "x"; then 18557 lint_options=$LINT_FLAGS 18558fi 18559 18560LINT_FLAGS=$lint_options 18561 18562 if test "x$LINT" != x; then 18563 LINT_TRUE= 18564 LINT_FALSE='#' 18565else 18566 LINT_TRUE='#' 18567 LINT_FALSE= 18568fi 18569 18570 18571 18572 18573# Checks for library functions 18574for ac_func in asprintf 18575do : 18576 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 18577if test "x$ac_cv_func_asprintf" = xyes; then : 18578 cat >>confdefs.h <<_ACEOF 18579#define HAVE_ASPRINTF 1 18580_ACEOF 18581 18582fi 18583done 18584 18585 18586# Obtain compiler/linker options from server and required extensions 18587 18588pkg_failed=no 18589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xorg-server >= 1.7 xproto inputproto" >&5 18590$as_echo_n "checking for xorg-server >= 1.7 xproto inputproto... " >&6; } 18591 18592if test -n "$XORG_CFLAGS"; then 18593 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18594 elif test -n "$PKG_CONFIG"; then 18595 if test -n "$PKG_CONFIG" && \ 18596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto\""; } >&5 18597 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto") 2>&5 18598 ac_status=$? 18599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18600 test $ac_status = 0; }; then 18601 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.7 xproto inputproto" 2>/dev/null` 18602 test "x$?" != "x0" && pkg_failed=yes 18603else 18604 pkg_failed=yes 18605fi 18606 else 18607 pkg_failed=untried 18608fi 18609if test -n "$XORG_LIBS"; then 18610 pkg_cv_XORG_LIBS="$XORG_LIBS" 18611 elif test -n "$PKG_CONFIG"; then 18612 if test -n "$PKG_CONFIG" && \ 18613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto\""; } >&5 18614 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto") 2>&5 18615 ac_status=$? 18616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18617 test $ac_status = 0; }; then 18618 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.7 xproto inputproto" 2>/dev/null` 18619 test "x$?" != "x0" && pkg_failed=yes 18620else 18621 pkg_failed=yes 18622fi 18623 else 18624 pkg_failed=untried 18625fi 18626 18627 18628 18629if test $pkg_failed = yes; then 18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18631$as_echo "no" >&6; } 18632 18633if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18634 _pkg_short_errors_supported=yes 18635else 18636 _pkg_short_errors_supported=no 18637fi 18638 if test $_pkg_short_errors_supported = yes; then 18639 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto" 2>&1` 18640 else 18641 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto" 2>&1` 18642 fi 18643 # Put the nasty error message in config.log where it belongs 18644 echo "$XORG_PKG_ERRORS" >&5 18645 18646 as_fn_error $? "Package requirements (xorg-server >= 1.7 xproto inputproto) were not met: 18647 18648$XORG_PKG_ERRORS 18649 18650Consider adjusting the PKG_CONFIG_PATH environment variable if you 18651installed software in a non-standard prefix. 18652 18653Alternatively, you may set the environment variables XORG_CFLAGS 18654and XORG_LIBS to avoid the need to call pkg-config. 18655See the pkg-config man page for more details." "$LINENO" 5 18656elif test $pkg_failed = untried; then 18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18658$as_echo "no" >&6; } 18659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18661as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18662is in your PATH or set the PKG_CONFIG environment variable to the full 18663path to pkg-config. 18664 18665Alternatively, you may set the environment variables XORG_CFLAGS 18666and XORG_LIBS to avoid the need to call pkg-config. 18667See the pkg-config man page for more details. 18668 18669To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18670See \`config.log' for more details" "$LINENO" 5; } 18671else 18672 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18673 XORG_LIBS=$pkg_cv_XORG_LIBS 18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18675$as_echo "yes" >&6; } 18676 18677fi 18678 18679# Define a configure option for an alternate input module directory 18680 18681# Check whether --with-xorg-module-dir was given. 18682if test "${with_xorg_module_dir+set}" = set; then : 18683 withval=$with_xorg_module_dir; moduledir="$withval" 18684else 18685 moduledir="$libdir/xorg/modules" 18686fi 18687 18688inputdir=${moduledir}/input 18689 18690 18691# X Server SDK location is required to install xf86-mouse-properties.h 18692# This location is also relayed in the xorg-mouse.pc file 18693sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 18694 18695# Workaround overriding sdkdir to be able to create a tarball when user has no 18696# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am 18697 18698# Check whether --with-sdkdir was given. 18699if test "${with_sdkdir+set}" = set; then : 18700 withval=$with_sdkdir; sdkdir="$withval" 18701fi 18702 18703 18704 18705 18706# Work out which OS mouse driver we need to build 18707case $host_os in 18708 linux*) 18709 OS_MOUSE_NAME=lnx 18710 ;; 18711 freebsd*|kfreebsd*-gnu|dragonfly*|netbsd*|openbsd*) 18712 OS_MOUSE_NAME=bsd 18713 ;; 18714 solaris*) 18715 OS_MOUSE_NAME=sun 18716 ;; 18717 gnu*) 18718 OS_MOUSE_NAME=hurd 18719 ;; 18720esac 18721 18722 18723DRIVER_NAME=mouse 18724 18725 18726ac_config_files="$ac_config_files Makefile xorg-mouse.pc include/Makefile src/Makefile man/Makefile" 18727 18728cat >confcache <<\_ACEOF 18729# This file is a shell script that caches the results of configure 18730# tests run on this system so they can be shared between configure 18731# scripts and configure runs, see configure's option --config-cache. 18732# It is not useful on other systems. If it contains results you don't 18733# want to keep, you may remove or edit it. 18734# 18735# config.status only pays attention to the cache file if you give it 18736# the --recheck option to rerun configure. 18737# 18738# `ac_cv_env_foo' variables (set or unset) will be overridden when 18739# loading this file, other *unset* `ac_cv_foo' will be assigned the 18740# following values. 18741 18742_ACEOF 18743 18744# The following way of writing the cache mishandles newlines in values, 18745# but we know of no workaround that is simple, portable, and efficient. 18746# So, we kill variables containing newlines. 18747# Ultrix sh set writes to stderr and can't be redirected directly, 18748# and sets the high bit in the cache file unless we assign to the vars. 18749( 18750 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18751 eval ac_val=\$$ac_var 18752 case $ac_val in #( 18753 *${as_nl}*) 18754 case $ac_var in #( 18755 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18756$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18757 esac 18758 case $ac_var in #( 18759 _ | IFS | as_nl) ;; #( 18760 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18761 *) { eval $ac_var=; unset $ac_var;} ;; 18762 esac ;; 18763 esac 18764 done 18765 18766 (set) 2>&1 | 18767 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18768 *${as_nl}ac_space=\ *) 18769 # `set' does not quote correctly, so add quotes: double-quote 18770 # substitution turns \\\\ into \\, and sed turns \\ into \. 18771 sed -n \ 18772 "s/'/'\\\\''/g; 18773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18774 ;; #( 18775 *) 18776 # `set' quotes correctly as required by POSIX, so do not add quotes. 18777 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18778 ;; 18779 esac | 18780 sort 18781) | 18782 sed ' 18783 /^ac_cv_env_/b end 18784 t clear 18785 :clear 18786 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18787 t end 18788 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18789 :end' >>confcache 18790if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18791 if test -w "$cache_file"; then 18792 if test "x$cache_file" != "x/dev/null"; then 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18794$as_echo "$as_me: updating cache $cache_file" >&6;} 18795 if test ! -f "$cache_file" || test -h "$cache_file"; then 18796 cat confcache >"$cache_file" 18797 else 18798 case $cache_file in #( 18799 */* | ?:*) 18800 mv -f confcache "$cache_file"$$ && 18801 mv -f "$cache_file"$$ "$cache_file" ;; #( 18802 *) 18803 mv -f confcache "$cache_file" ;; 18804 esac 18805 fi 18806 fi 18807 else 18808 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18809$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18810 fi 18811fi 18812rm -f confcache 18813 18814test "x$prefix" = xNONE && prefix=$ac_default_prefix 18815# Let make expand exec_prefix. 18816test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18817 18818DEFS=-DHAVE_CONFIG_H 18819 18820ac_libobjs= 18821ac_ltlibobjs= 18822U= 18823for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18824 # 1. Remove the extension, and $U if already installed. 18825 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18826 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18827 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18828 # will be set to the directory where LIBOBJS objects are built. 18829 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18830 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18831done 18832LIBOBJS=$ac_libobjs 18833 18834LTLIBOBJS=$ac_ltlibobjs 18835 18836 18837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18838$as_echo_n "checking that generated files are newer than configure... " >&6; } 18839 if test -n "$am_sleep_pid"; then 18840 # Hide warnings about reused PIDs. 18841 wait $am_sleep_pid 2>/dev/null 18842 fi 18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18844$as_echo "done" >&6; } 18845if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18846 as_fn_error $? "conditional \"AMDEP\" was never defined. 18847Usually this means the macro was only invoked conditionally." "$LINENO" 5 18848fi 18849if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18850 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18851Usually this means the macro was only invoked conditionally." "$LINENO" 5 18852fi 18853 if test -n "$EXEEXT"; then 18854 am__EXEEXT_TRUE= 18855 am__EXEEXT_FALSE='#' 18856else 18857 am__EXEEXT_TRUE='#' 18858 am__EXEEXT_FALSE= 18859fi 18860 18861if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18862 as_fn_error $? "conditional \"LINT\" was never defined. 18863Usually this means the macro was only invoked conditionally." "$LINENO" 5 18864fi 18865 18866: "${CONFIG_STATUS=./config.status}" 18867ac_write_fail=0 18868ac_clean_files_save=$ac_clean_files 18869ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18870{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18871$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18872as_write_fail=0 18873cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18874#! $SHELL 18875# Generated by $as_me. 18876# Run this file to recreate the current configuration. 18877# Compiler output produced by configure, useful for debugging 18878# configure, is in config.log if it exists. 18879 18880debug=false 18881ac_cs_recheck=false 18882ac_cs_silent=false 18883 18884SHELL=\${CONFIG_SHELL-$SHELL} 18885export SHELL 18886_ASEOF 18887cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18888## -------------------- ## 18889## M4sh Initialization. ## 18890## -------------------- ## 18891 18892# Be more Bourne compatible 18893DUALCASE=1; export DUALCASE # for MKS sh 18894if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18895 emulate sh 18896 NULLCMD=: 18897 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18898 # is contrary to our usage. Disable this feature. 18899 alias -g '${1+"$@"}'='"$@"' 18900 setopt NO_GLOB_SUBST 18901else 18902 case `(set -o) 2>/dev/null` in #( 18903 *posix*) : 18904 set -o posix ;; #( 18905 *) : 18906 ;; 18907esac 18908fi 18909 18910 18911as_nl=' 18912' 18913export as_nl 18914# Printing a long string crashes Solaris 7 /usr/bin/printf. 18915as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18916as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18917as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18918# Prefer a ksh shell builtin over an external printf program on Solaris, 18919# but without wasting forks for bash or zsh. 18920if test -z "$BASH_VERSION$ZSH_VERSION" \ 18921 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18922 as_echo='print -r --' 18923 as_echo_n='print -rn --' 18924elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18925 as_echo='printf %s\n' 18926 as_echo_n='printf %s' 18927else 18928 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18929 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18930 as_echo_n='/usr/ucb/echo -n' 18931 else 18932 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18933 as_echo_n_body='eval 18934 arg=$1; 18935 case $arg in #( 18936 *"$as_nl"*) 18937 expr "X$arg" : "X\\(.*\\)$as_nl"; 18938 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18939 esac; 18940 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18941 ' 18942 export as_echo_n_body 18943 as_echo_n='sh -c $as_echo_n_body as_echo' 18944 fi 18945 export as_echo_body 18946 as_echo='sh -c $as_echo_body as_echo' 18947fi 18948 18949# The user is always right. 18950if test "${PATH_SEPARATOR+set}" != set; then 18951 PATH_SEPARATOR=: 18952 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18953 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18954 PATH_SEPARATOR=';' 18955 } 18956fi 18957 18958 18959# IFS 18960# We need space, tab and new line, in precisely that order. Quoting is 18961# there to prevent editors from complaining about space-tab. 18962# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18963# splitting by setting IFS to empty value.) 18964IFS=" "" $as_nl" 18965 18966# Find who we are. Look in the path if we contain no directory separator. 18967as_myself= 18968case $0 in #(( 18969 *[\\/]* ) as_myself=$0 ;; 18970 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18971for as_dir in $PATH 18972do 18973 IFS=$as_save_IFS 18974 test -z "$as_dir" && as_dir=. 18975 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18976 done 18977IFS=$as_save_IFS 18978 18979 ;; 18980esac 18981# We did not find ourselves, most probably we were run as `sh COMMAND' 18982# in which case we are not to be found in the path. 18983if test "x$as_myself" = x; then 18984 as_myself=$0 18985fi 18986if test ! -f "$as_myself"; then 18987 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18988 exit 1 18989fi 18990 18991# Unset variables that we do not need and which cause bugs (e.g. in 18992# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18993# suppresses any "Segmentation fault" message there. '((' could 18994# trigger a bug in pdksh 5.2.14. 18995for as_var in BASH_ENV ENV MAIL MAILPATH 18996do eval test x\${$as_var+set} = xset \ 18997 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18998done 18999PS1='$ ' 19000PS2='> ' 19001PS4='+ ' 19002 19003# NLS nuisances. 19004LC_ALL=C 19005export LC_ALL 19006LANGUAGE=C 19007export LANGUAGE 19008 19009# CDPATH. 19010(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19011 19012 19013# as_fn_error STATUS ERROR [LINENO LOG_FD] 19014# ---------------------------------------- 19015# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19016# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19017# script with STATUS, using 1 if that was 0. 19018as_fn_error () 19019{ 19020 as_status=$1; test $as_status -eq 0 && as_status=1 19021 if test "$4"; then 19022 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19023 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19024 fi 19025 $as_echo "$as_me: error: $2" >&2 19026 as_fn_exit $as_status 19027} # as_fn_error 19028 19029 19030# as_fn_set_status STATUS 19031# ----------------------- 19032# Set $? to STATUS, without forking. 19033as_fn_set_status () 19034{ 19035 return $1 19036} # as_fn_set_status 19037 19038# as_fn_exit STATUS 19039# ----------------- 19040# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19041as_fn_exit () 19042{ 19043 set +e 19044 as_fn_set_status $1 19045 exit $1 19046} # as_fn_exit 19047 19048# as_fn_unset VAR 19049# --------------- 19050# Portably unset VAR. 19051as_fn_unset () 19052{ 19053 { eval $1=; unset $1;} 19054} 19055as_unset=as_fn_unset 19056# as_fn_append VAR VALUE 19057# ---------------------- 19058# Append the text in VALUE to the end of the definition contained in VAR. Take 19059# advantage of any shell optimizations that allow amortized linear growth over 19060# repeated appends, instead of the typical quadratic growth present in naive 19061# implementations. 19062if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19063 eval 'as_fn_append () 19064 { 19065 eval $1+=\$2 19066 }' 19067else 19068 as_fn_append () 19069 { 19070 eval $1=\$$1\$2 19071 } 19072fi # as_fn_append 19073 19074# as_fn_arith ARG... 19075# ------------------ 19076# Perform arithmetic evaluation on the ARGs, and store the result in the 19077# global $as_val. Take advantage of shells that can avoid forks. The arguments 19078# must be portable across $(()) and expr. 19079if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19080 eval 'as_fn_arith () 19081 { 19082 as_val=$(( $* )) 19083 }' 19084else 19085 as_fn_arith () 19086 { 19087 as_val=`expr "$@" || test $? -eq 1` 19088 } 19089fi # as_fn_arith 19090 19091 19092if expr a : '\(a\)' >/dev/null 2>&1 && 19093 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19094 as_expr=expr 19095else 19096 as_expr=false 19097fi 19098 19099if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19100 as_basename=basename 19101else 19102 as_basename=false 19103fi 19104 19105if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19106 as_dirname=dirname 19107else 19108 as_dirname=false 19109fi 19110 19111as_me=`$as_basename -- "$0" || 19112$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19113 X"$0" : 'X\(//\)$' \| \ 19114 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19115$as_echo X/"$0" | 19116 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19117 s//\1/ 19118 q 19119 } 19120 /^X\/\(\/\/\)$/{ 19121 s//\1/ 19122 q 19123 } 19124 /^X\/\(\/\).*/{ 19125 s//\1/ 19126 q 19127 } 19128 s/.*/./; q'` 19129 19130# Avoid depending upon Character Ranges. 19131as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19132as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19133as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19134as_cr_digits='0123456789' 19135as_cr_alnum=$as_cr_Letters$as_cr_digits 19136 19137ECHO_C= ECHO_N= ECHO_T= 19138case `echo -n x` in #((((( 19139-n*) 19140 case `echo 'xy\c'` in 19141 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19142 xy) ECHO_C='\c';; 19143 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19144 ECHO_T=' ';; 19145 esac;; 19146*) 19147 ECHO_N='-n';; 19148esac 19149 19150rm -f conf$$ conf$$.exe conf$$.file 19151if test -d conf$$.dir; then 19152 rm -f conf$$.dir/conf$$.file 19153else 19154 rm -f conf$$.dir 19155 mkdir conf$$.dir 2>/dev/null 19156fi 19157if (echo >conf$$.file) 2>/dev/null; then 19158 if ln -s conf$$.file conf$$ 2>/dev/null; then 19159 as_ln_s='ln -s' 19160 # ... but there are two gotchas: 19161 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19162 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19163 # In both cases, we have to default to `cp -pR'. 19164 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19165 as_ln_s='cp -pR' 19166 elif ln conf$$.file conf$$ 2>/dev/null; then 19167 as_ln_s=ln 19168 else 19169 as_ln_s='cp -pR' 19170 fi 19171else 19172 as_ln_s='cp -pR' 19173fi 19174rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19175rmdir conf$$.dir 2>/dev/null 19176 19177 19178# as_fn_mkdir_p 19179# ------------- 19180# Create "$as_dir" as a directory, including parents if necessary. 19181as_fn_mkdir_p () 19182{ 19183 19184 case $as_dir in #( 19185 -*) as_dir=./$as_dir;; 19186 esac 19187 test -d "$as_dir" || eval $as_mkdir_p || { 19188 as_dirs= 19189 while :; do 19190 case $as_dir in #( 19191 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19192 *) as_qdir=$as_dir;; 19193 esac 19194 as_dirs="'$as_qdir' $as_dirs" 19195 as_dir=`$as_dirname -- "$as_dir" || 19196$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19197 X"$as_dir" : 'X\(//\)[^/]' \| \ 19198 X"$as_dir" : 'X\(//\)$' \| \ 19199 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19200$as_echo X"$as_dir" | 19201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19202 s//\1/ 19203 q 19204 } 19205 /^X\(\/\/\)[^/].*/{ 19206 s//\1/ 19207 q 19208 } 19209 /^X\(\/\/\)$/{ 19210 s//\1/ 19211 q 19212 } 19213 /^X\(\/\).*/{ 19214 s//\1/ 19215 q 19216 } 19217 s/.*/./; q'` 19218 test -d "$as_dir" && break 19219 done 19220 test -z "$as_dirs" || eval "mkdir $as_dirs" 19221 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19222 19223 19224} # as_fn_mkdir_p 19225if mkdir -p . 2>/dev/null; then 19226 as_mkdir_p='mkdir -p "$as_dir"' 19227else 19228 test -d ./-p && rmdir ./-p 19229 as_mkdir_p=false 19230fi 19231 19232 19233# as_fn_executable_p FILE 19234# ----------------------- 19235# Test if FILE is an executable regular file. 19236as_fn_executable_p () 19237{ 19238 test -f "$1" && test -x "$1" 19239} # as_fn_executable_p 19240as_test_x='test -x' 19241as_executable_p=as_fn_executable_p 19242 19243# Sed expression to map a string onto a valid CPP name. 19244as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19245 19246# Sed expression to map a string onto a valid variable name. 19247as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19248 19249 19250exec 6>&1 19251## ----------------------------------- ## 19252## Main body of $CONFIG_STATUS script. ## 19253## ----------------------------------- ## 19254_ASEOF 19255test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19256 19257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19258# Save the log message, to keep $0 and so on meaningful, and to 19259# report actual input values of CONFIG_FILES etc. instead of their 19260# values after options handling. 19261ac_log=" 19262This file was extended by xf86-input-mouse $as_me 1.9.3, which was 19263generated by GNU Autoconf 2.69. Invocation command line was 19264 19265 CONFIG_FILES = $CONFIG_FILES 19266 CONFIG_HEADERS = $CONFIG_HEADERS 19267 CONFIG_LINKS = $CONFIG_LINKS 19268 CONFIG_COMMANDS = $CONFIG_COMMANDS 19269 $ $0 $@ 19270 19271on `(hostname || uname -n) 2>/dev/null | sed 1q` 19272" 19273 19274_ACEOF 19275 19276case $ac_config_files in *" 19277"*) set x $ac_config_files; shift; ac_config_files=$*;; 19278esac 19279 19280case $ac_config_headers in *" 19281"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19282esac 19283 19284 19285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19286# Files that config.status was made for. 19287config_files="$ac_config_files" 19288config_headers="$ac_config_headers" 19289config_commands="$ac_config_commands" 19290 19291_ACEOF 19292 19293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19294ac_cs_usage="\ 19295\`$as_me' instantiates files and other configuration actions 19296from templates according to the current configuration. Unless the files 19297and actions are specified as TAGs, all are instantiated by default. 19298 19299Usage: $0 [OPTION]... [TAG]... 19300 19301 -h, --help print this help, then exit 19302 -V, --version print version number and configuration settings, then exit 19303 --config print configuration, then exit 19304 -q, --quiet, --silent 19305 do not print progress messages 19306 -d, --debug don't remove temporary files 19307 --recheck update $as_me by reconfiguring in the same conditions 19308 --file=FILE[:TEMPLATE] 19309 instantiate the configuration file FILE 19310 --header=FILE[:TEMPLATE] 19311 instantiate the configuration header FILE 19312 19313Configuration files: 19314$config_files 19315 19316Configuration headers: 19317$config_headers 19318 19319Configuration commands: 19320$config_commands 19321 19322Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19323 19324_ACEOF 19325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19326ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19327ac_cs_version="\\ 19328xf86-input-mouse config.status 1.9.3 19329configured by $0, generated by GNU Autoconf 2.69, 19330 with options \\"\$ac_cs_config\\" 19331 19332Copyright (C) 2012 Free Software Foundation, Inc. 19333This config.status script is free software; the Free Software Foundation 19334gives unlimited permission to copy, distribute and modify it." 19335 19336ac_pwd='$ac_pwd' 19337srcdir='$srcdir' 19338INSTALL='$INSTALL' 19339MKDIR_P='$MKDIR_P' 19340AWK='$AWK' 19341test -n "\$AWK" || AWK=awk 19342_ACEOF 19343 19344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19345# The default lists apply if the user does not specify any file. 19346ac_need_defaults=: 19347while test $# != 0 19348do 19349 case $1 in 19350 --*=?*) 19351 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19352 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19353 ac_shift=: 19354 ;; 19355 --*=) 19356 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19357 ac_optarg= 19358 ac_shift=: 19359 ;; 19360 *) 19361 ac_option=$1 19362 ac_optarg=$2 19363 ac_shift=shift 19364 ;; 19365 esac 19366 19367 case $ac_option in 19368 # Handling of the options. 19369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19370 ac_cs_recheck=: ;; 19371 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19372 $as_echo "$ac_cs_version"; exit ;; 19373 --config | --confi | --conf | --con | --co | --c ) 19374 $as_echo "$ac_cs_config"; exit ;; 19375 --debug | --debu | --deb | --de | --d | -d ) 19376 debug=: ;; 19377 --file | --fil | --fi | --f ) 19378 $ac_shift 19379 case $ac_optarg in 19380 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19381 '') as_fn_error $? "missing file argument" ;; 19382 esac 19383 as_fn_append CONFIG_FILES " '$ac_optarg'" 19384 ac_need_defaults=false;; 19385 --header | --heade | --head | --hea ) 19386 $ac_shift 19387 case $ac_optarg in 19388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19389 esac 19390 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19391 ac_need_defaults=false;; 19392 --he | --h) 19393 # Conflict between --help and --header 19394 as_fn_error $? "ambiguous option: \`$1' 19395Try \`$0 --help' for more information.";; 19396 --help | --hel | -h ) 19397 $as_echo "$ac_cs_usage"; exit ;; 19398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19399 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19400 ac_cs_silent=: ;; 19401 19402 # This is an error. 19403 -*) as_fn_error $? "unrecognized option: \`$1' 19404Try \`$0 --help' for more information." ;; 19405 19406 *) as_fn_append ac_config_targets " $1" 19407 ac_need_defaults=false ;; 19408 19409 esac 19410 shift 19411done 19412 19413ac_configure_extra_args= 19414 19415if $ac_cs_silent; then 19416 exec 6>/dev/null 19417 ac_configure_extra_args="$ac_configure_extra_args --silent" 19418fi 19419 19420_ACEOF 19421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19422if \$ac_cs_recheck; then 19423 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19424 shift 19425 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19426 CONFIG_SHELL='$SHELL' 19427 export CONFIG_SHELL 19428 exec "\$@" 19429fi 19430 19431_ACEOF 19432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19433exec 5>>config.log 19434{ 19435 echo 19436 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19437## Running $as_me. ## 19438_ASBOX 19439 $as_echo "$ac_log" 19440} >&5 19441 19442_ACEOF 19443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19444# 19445# INIT-COMMANDS 19446# 19447AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19448 19449 19450# The HP-UX ksh and POSIX shell print the target directory to stdout 19451# if CDPATH is set. 19452(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19453 19454sed_quote_subst='$sed_quote_subst' 19455double_quote_subst='$double_quote_subst' 19456delay_variable_subst='$delay_variable_subst' 19457enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19458macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19459macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19460enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19461pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19462enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19463shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19464SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19465ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19466PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19467host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19468host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19469host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19470build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19471build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19472build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19473SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19474Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19475GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19476EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19477FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19478LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19479NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19480LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19481max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19482ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19483exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19484lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19485lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19486lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19487lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19488lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19489reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19490reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19491OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19492deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19493file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19494file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19495want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19496DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19497sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19498AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19499AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19500archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19501STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19502RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19503old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19504old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19505old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19506lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19507CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19508CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19509compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19510GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19511lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19512lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19513lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19514lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19515lt_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"`' 19516lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19517nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19518lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19519lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19520objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19521MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19522lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19523lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19524lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19525lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19526lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19527need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19528MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19529DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19530NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19531LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19532OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19533OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19534libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19535shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19536extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19537archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19538enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19539export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19540whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19541compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19542old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19543old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19544archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19545archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19546module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19547module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19548with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19549allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19550no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19551hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19552hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19553hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19554hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19555hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19556hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19557hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19558inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19559link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19560always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19561export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19562exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19563include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19564prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19565postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19566file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19567variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19568need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19569need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19570version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19571runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19572shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19573shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19574libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19575library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19576soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19577install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19578postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19579postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19580finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19581finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19582hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19583sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19584configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19585configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19586hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19587enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19588enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19589enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19590old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19591striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19592 19593LTCC='$LTCC' 19594LTCFLAGS='$LTCFLAGS' 19595compiler='$compiler_DEFAULT' 19596 19597# A function that is used when there is no print builtin or printf. 19598func_fallback_echo () 19599{ 19600 eval 'cat <<_LTECHO_EOF 19601\$1 19602_LTECHO_EOF' 19603} 19604 19605# Quote evaled strings. 19606for var in SHELL \ 19607ECHO \ 19608PATH_SEPARATOR \ 19609SED \ 19610GREP \ 19611EGREP \ 19612FGREP \ 19613LD \ 19614NM \ 19615LN_S \ 19616lt_SP2NL \ 19617lt_NL2SP \ 19618reload_flag \ 19619OBJDUMP \ 19620deplibs_check_method \ 19621file_magic_cmd \ 19622file_magic_glob \ 19623want_nocaseglob \ 19624DLLTOOL \ 19625sharedlib_from_linklib_cmd \ 19626AR \ 19627AR_FLAGS \ 19628archiver_list_spec \ 19629STRIP \ 19630RANLIB \ 19631CC \ 19632CFLAGS \ 19633compiler \ 19634lt_cv_sys_global_symbol_pipe \ 19635lt_cv_sys_global_symbol_to_cdecl \ 19636lt_cv_sys_global_symbol_to_import \ 19637lt_cv_sys_global_symbol_to_c_name_address \ 19638lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19639lt_cv_nm_interface \ 19640nm_file_list_spec \ 19641lt_cv_truncate_bin \ 19642lt_prog_compiler_no_builtin_flag \ 19643lt_prog_compiler_pic \ 19644lt_prog_compiler_wl \ 19645lt_prog_compiler_static \ 19646lt_cv_prog_compiler_c_o \ 19647need_locks \ 19648MANIFEST_TOOL \ 19649DSYMUTIL \ 19650NMEDIT \ 19651LIPO \ 19652OTOOL \ 19653OTOOL64 \ 19654shrext_cmds \ 19655export_dynamic_flag_spec \ 19656whole_archive_flag_spec \ 19657compiler_needs_object \ 19658with_gnu_ld \ 19659allow_undefined_flag \ 19660no_undefined_flag \ 19661hardcode_libdir_flag_spec \ 19662hardcode_libdir_separator \ 19663exclude_expsyms \ 19664include_expsyms \ 19665file_list_spec \ 19666variables_saved_for_relink \ 19667libname_spec \ 19668library_names_spec \ 19669soname_spec \ 19670install_override_mode \ 19671finish_eval \ 19672old_striplib \ 19673striplib; do 19674 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19675 *[\\\\\\\`\\"\\\$]*) 19676 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19677 ;; 19678 *) 19679 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19680 ;; 19681 esac 19682done 19683 19684# Double-quote double-evaled strings. 19685for var in reload_cmds \ 19686old_postinstall_cmds \ 19687old_postuninstall_cmds \ 19688old_archive_cmds \ 19689extract_expsyms_cmds \ 19690old_archive_from_new_cmds \ 19691old_archive_from_expsyms_cmds \ 19692archive_cmds \ 19693archive_expsym_cmds \ 19694module_cmds \ 19695module_expsym_cmds \ 19696export_symbols_cmds \ 19697prelink_cmds \ 19698postlink_cmds \ 19699postinstall_cmds \ 19700postuninstall_cmds \ 19701finish_cmds \ 19702sys_lib_search_path_spec \ 19703configure_time_dlsearch_path \ 19704configure_time_lt_sys_library_path; do 19705 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19706 *[\\\\\\\`\\"\\\$]*) 19707 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19708 ;; 19709 *) 19710 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19711 ;; 19712 esac 19713done 19714 19715ac_aux_dir='$ac_aux_dir' 19716 19717# See if we are running on zsh, and set the options that allow our 19718# commands through without removal of \ escapes INIT. 19719if test -n "\${ZSH_VERSION+set}"; then 19720 setopt NO_GLOB_SUBST 19721fi 19722 19723 19724 PACKAGE='$PACKAGE' 19725 VERSION='$VERSION' 19726 RM='$RM' 19727 ofile='$ofile' 19728 19729 19730 19731 19732_ACEOF 19733 19734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19735 19736# Handling of arguments. 19737for ac_config_target in $ac_config_targets 19738do 19739 case $ac_config_target in 19740 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19741 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19742 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19743 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19744 "xorg-mouse.pc") CONFIG_FILES="$CONFIG_FILES xorg-mouse.pc" ;; 19745 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 19746 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19747 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19748 19749 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19750 esac 19751done 19752 19753 19754# If the user did not use the arguments to specify the items to instantiate, 19755# then the envvar interface is used. Set only those that are not. 19756# We use the long form for the default assignment because of an extremely 19757# bizarre bug on SunOS 4.1.3. 19758if $ac_need_defaults; then 19759 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19760 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19761 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19762fi 19763 19764# Have a temporary directory for convenience. Make it in the build tree 19765# simply because there is no reason against having it here, and in addition, 19766# creating and moving files from /tmp can sometimes cause problems. 19767# Hook for its removal unless debugging. 19768# Note that there is a small window in which the directory will not be cleaned: 19769# after its creation but before its name has been assigned to `$tmp'. 19770$debug || 19771{ 19772 tmp= ac_tmp= 19773 trap 'exit_status=$? 19774 : "${ac_tmp:=$tmp}" 19775 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19776' 0 19777 trap 'as_fn_exit 1' 1 2 13 15 19778} 19779# Create a (secure) tmp directory for tmp files. 19780 19781{ 19782 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19783 test -d "$tmp" 19784} || 19785{ 19786 tmp=./conf$$-$RANDOM 19787 (umask 077 && mkdir "$tmp") 19788} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19789ac_tmp=$tmp 19790 19791# Set up the scripts for CONFIG_FILES section. 19792# No need to generate them if there are no CONFIG_FILES. 19793# This happens for instance with `./config.status config.h'. 19794if test -n "$CONFIG_FILES"; then 19795 19796 19797ac_cr=`echo X | tr X '\015'` 19798# On cygwin, bash can eat \r inside `` if the user requested igncr. 19799# But we know of no other shell where ac_cr would be empty at this 19800# point, so we can use a bashism as a fallback. 19801if test "x$ac_cr" = x; then 19802 eval ac_cr=\$\'\\r\' 19803fi 19804ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19805if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19806 ac_cs_awk_cr='\\r' 19807else 19808 ac_cs_awk_cr=$ac_cr 19809fi 19810 19811echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19812_ACEOF 19813 19814 19815{ 19816 echo "cat >conf$$subs.awk <<_ACEOF" && 19817 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19818 echo "_ACEOF" 19819} >conf$$subs.sh || 19820 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19821ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19822ac_delim='%!_!# ' 19823for ac_last_try in false false false false false :; do 19824 . ./conf$$subs.sh || 19825 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19826 19827 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19828 if test $ac_delim_n = $ac_delim_num; then 19829 break 19830 elif $ac_last_try; then 19831 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19832 else 19833 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19834 fi 19835done 19836rm -f conf$$subs.sh 19837 19838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19839cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19840_ACEOF 19841sed -n ' 19842h 19843s/^/S["/; s/!.*/"]=/ 19844p 19845g 19846s/^[^!]*!// 19847:repl 19848t repl 19849s/'"$ac_delim"'$// 19850t delim 19851:nl 19852h 19853s/\(.\{148\}\)..*/\1/ 19854t more1 19855s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19856p 19857n 19858b repl 19859:more1 19860s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19861p 19862g 19863s/.\{148\}// 19864t nl 19865:delim 19866h 19867s/\(.\{148\}\)..*/\1/ 19868t more2 19869s/["\\]/\\&/g; s/^/"/; s/$/"/ 19870p 19871b 19872:more2 19873s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19874p 19875g 19876s/.\{148\}// 19877t delim 19878' <conf$$subs.awk | sed ' 19879/^[^""]/{ 19880 N 19881 s/\n// 19882} 19883' >>$CONFIG_STATUS || ac_write_fail=1 19884rm -f conf$$subs.awk 19885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19886_ACAWK 19887cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19888 for (key in S) S_is_set[key] = 1 19889 FS = "" 19890 19891} 19892{ 19893 line = $ 0 19894 nfields = split(line, field, "@") 19895 substed = 0 19896 len = length(field[1]) 19897 for (i = 2; i < nfields; i++) { 19898 key = field[i] 19899 keylen = length(key) 19900 if (S_is_set[key]) { 19901 value = S[key] 19902 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19903 len += length(value) + length(field[++i]) 19904 substed = 1 19905 } else 19906 len += 1 + keylen 19907 } 19908 19909 print line 19910} 19911 19912_ACAWK 19913_ACEOF 19914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19915if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19916 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19917else 19918 cat 19919fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19920 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19921_ACEOF 19922 19923# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19924# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19925# trailing colons and then remove the whole line if VPATH becomes empty 19926# (actually we leave an empty line to preserve line numbers). 19927if test "x$srcdir" = x.; then 19928 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19929h 19930s/// 19931s/^/:/ 19932s/[ ]*$/:/ 19933s/:\$(srcdir):/:/g 19934s/:\${srcdir}:/:/g 19935s/:@srcdir@:/:/g 19936s/^:*// 19937s/:*$// 19938x 19939s/\(=[ ]*\).*/\1/ 19940G 19941s/\n// 19942s/^[^=]*=[ ]*$// 19943}' 19944fi 19945 19946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19947fi # test -n "$CONFIG_FILES" 19948 19949# Set up the scripts for CONFIG_HEADERS section. 19950# No need to generate them if there are no CONFIG_HEADERS. 19951# This happens for instance with `./config.status Makefile'. 19952if test -n "$CONFIG_HEADERS"; then 19953cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19954BEGIN { 19955_ACEOF 19956 19957# Transform confdefs.h into an awk script `defines.awk', embedded as 19958# here-document in config.status, that substitutes the proper values into 19959# config.h.in to produce config.h. 19960 19961# Create a delimiter string that does not exist in confdefs.h, to ease 19962# handling of long lines. 19963ac_delim='%!_!# ' 19964for ac_last_try in false false :; do 19965 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19966 if test -z "$ac_tt"; then 19967 break 19968 elif $ac_last_try; then 19969 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19970 else 19971 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19972 fi 19973done 19974 19975# For the awk script, D is an array of macro values keyed by name, 19976# likewise P contains macro parameters if any. Preserve backslash 19977# newline sequences. 19978 19979ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19980sed -n ' 19981s/.\{148\}/&'"$ac_delim"'/g 19982t rset 19983:rset 19984s/^[ ]*#[ ]*define[ ][ ]*/ / 19985t def 19986d 19987:def 19988s/\\$// 19989t bsnl 19990s/["\\]/\\&/g 19991s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19992D["\1"]=" \3"/p 19993s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19994d 19995:bsnl 19996s/["\\]/\\&/g 19997s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19998D["\1"]=" \3\\\\\\n"\\/p 19999t cont 20000s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20001t cont 20002d 20003:cont 20004n 20005s/.\{148\}/&'"$ac_delim"'/g 20006t clear 20007:clear 20008s/\\$// 20009t bsnlc 20010s/["\\]/\\&/g; s/^/"/; s/$/"/p 20011d 20012:bsnlc 20013s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20014b cont 20015' <confdefs.h | sed ' 20016s/'"$ac_delim"'/"\\\ 20017"/g' >>$CONFIG_STATUS || ac_write_fail=1 20018 20019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20020 for (key in D) D_is_set[key] = 1 20021 FS = "" 20022} 20023/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20024 line = \$ 0 20025 split(line, arg, " ") 20026 if (arg[1] == "#") { 20027 defundef = arg[2] 20028 mac1 = arg[3] 20029 } else { 20030 defundef = substr(arg[1], 2) 20031 mac1 = arg[2] 20032 } 20033 split(mac1, mac2, "(") #) 20034 macro = mac2[1] 20035 prefix = substr(line, 1, index(line, defundef) - 1) 20036 if (D_is_set[macro]) { 20037 # Preserve the white space surrounding the "#". 20038 print prefix "define", macro P[macro] D[macro] 20039 next 20040 } else { 20041 # Replace #undef with comments. This is necessary, for example, 20042 # in the case of _POSIX_SOURCE, which is predefined and required 20043 # on some systems where configure will not decide to define it. 20044 if (defundef == "undef") { 20045 print "/*", prefix defundef, macro, "*/" 20046 next 20047 } 20048 } 20049} 20050{ print } 20051_ACAWK 20052_ACEOF 20053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20054 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20055fi # test -n "$CONFIG_HEADERS" 20056 20057 20058eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20059shift 20060for ac_tag 20061do 20062 case $ac_tag in 20063 :[FHLC]) ac_mode=$ac_tag; continue;; 20064 esac 20065 case $ac_mode$ac_tag in 20066 :[FHL]*:*);; 20067 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20068 :[FH]-) ac_tag=-:-;; 20069 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20070 esac 20071 ac_save_IFS=$IFS 20072 IFS=: 20073 set x $ac_tag 20074 IFS=$ac_save_IFS 20075 shift 20076 ac_file=$1 20077 shift 20078 20079 case $ac_mode in 20080 :L) ac_source=$1;; 20081 :[FH]) 20082 ac_file_inputs= 20083 for ac_f 20084 do 20085 case $ac_f in 20086 -) ac_f="$ac_tmp/stdin";; 20087 *) # Look for the file first in the build tree, then in the source tree 20088 # (if the path is not absolute). The absolute path cannot be DOS-style, 20089 # because $ac_f cannot contain `:'. 20090 test -f "$ac_f" || 20091 case $ac_f in 20092 [\\/$]*) false;; 20093 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20094 esac || 20095 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20096 esac 20097 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20098 as_fn_append ac_file_inputs " '$ac_f'" 20099 done 20100 20101 # Let's still pretend it is `configure' which instantiates (i.e., don't 20102 # use $as_me), people would be surprised to read: 20103 # /* config.h. Generated by config.status. */ 20104 configure_input='Generated from '` 20105 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20106 `' by configure.' 20107 if test x"$ac_file" != x-; then 20108 configure_input="$ac_file. $configure_input" 20109 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20110$as_echo "$as_me: creating $ac_file" >&6;} 20111 fi 20112 # Neutralize special characters interpreted by sed in replacement strings. 20113 case $configure_input in #( 20114 *\&* | *\|* | *\\* ) 20115 ac_sed_conf_input=`$as_echo "$configure_input" | 20116 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20117 *) ac_sed_conf_input=$configure_input;; 20118 esac 20119 20120 case $ac_tag in 20121 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20122 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20123 esac 20124 ;; 20125 esac 20126 20127 ac_dir=`$as_dirname -- "$ac_file" || 20128$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20129 X"$ac_file" : 'X\(//\)[^/]' \| \ 20130 X"$ac_file" : 'X\(//\)$' \| \ 20131 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20132$as_echo X"$ac_file" | 20133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20134 s//\1/ 20135 q 20136 } 20137 /^X\(\/\/\)[^/].*/{ 20138 s//\1/ 20139 q 20140 } 20141 /^X\(\/\/\)$/{ 20142 s//\1/ 20143 q 20144 } 20145 /^X\(\/\).*/{ 20146 s//\1/ 20147 q 20148 } 20149 s/.*/./; q'` 20150 as_dir="$ac_dir"; as_fn_mkdir_p 20151 ac_builddir=. 20152 20153case "$ac_dir" in 20154.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20155*) 20156 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20157 # A ".." for each directory in $ac_dir_suffix. 20158 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20159 case $ac_top_builddir_sub in 20160 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20161 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20162 esac ;; 20163esac 20164ac_abs_top_builddir=$ac_pwd 20165ac_abs_builddir=$ac_pwd$ac_dir_suffix 20166# for backward compatibility: 20167ac_top_builddir=$ac_top_build_prefix 20168 20169case $srcdir in 20170 .) # We are building in place. 20171 ac_srcdir=. 20172 ac_top_srcdir=$ac_top_builddir_sub 20173 ac_abs_top_srcdir=$ac_pwd ;; 20174 [\\/]* | ?:[\\/]* ) # Absolute name. 20175 ac_srcdir=$srcdir$ac_dir_suffix; 20176 ac_top_srcdir=$srcdir 20177 ac_abs_top_srcdir=$srcdir ;; 20178 *) # Relative name. 20179 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20180 ac_top_srcdir=$ac_top_build_prefix$srcdir 20181 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20182esac 20183ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20184 20185 20186 case $ac_mode in 20187 :F) 20188 # 20189 # CONFIG_FILE 20190 # 20191 20192 case $INSTALL in 20193 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20194 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20195 esac 20196 ac_MKDIR_P=$MKDIR_P 20197 case $MKDIR_P in 20198 [\\/$]* | ?:[\\/]* ) ;; 20199 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20200 esac 20201_ACEOF 20202 20203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20204# If the template does not know about datarootdir, expand it. 20205# FIXME: This hack should be removed a few years after 2.60. 20206ac_datarootdir_hack=; ac_datarootdir_seen= 20207ac_sed_dataroot=' 20208/datarootdir/ { 20209 p 20210 q 20211} 20212/@datadir@/p 20213/@docdir@/p 20214/@infodir@/p 20215/@localedir@/p 20216/@mandir@/p' 20217case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20218*datarootdir*) ac_datarootdir_seen=yes;; 20219*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20221$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20222_ACEOF 20223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20224 ac_datarootdir_hack=' 20225 s&@datadir@&$datadir&g 20226 s&@docdir@&$docdir&g 20227 s&@infodir@&$infodir&g 20228 s&@localedir@&$localedir&g 20229 s&@mandir@&$mandir&g 20230 s&\\\${datarootdir}&$datarootdir&g' ;; 20231esac 20232_ACEOF 20233 20234# Neutralize VPATH when `$srcdir' = `.'. 20235# Shell code in configure.ac might set extrasub. 20236# FIXME: do we really want to maintain this feature? 20237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20238ac_sed_extra="$ac_vpsub 20239$extrasub 20240_ACEOF 20241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20242:t 20243/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20244s|@configure_input@|$ac_sed_conf_input|;t t 20245s&@top_builddir@&$ac_top_builddir_sub&;t t 20246s&@top_build_prefix@&$ac_top_build_prefix&;t t 20247s&@srcdir@&$ac_srcdir&;t t 20248s&@abs_srcdir@&$ac_abs_srcdir&;t t 20249s&@top_srcdir@&$ac_top_srcdir&;t t 20250s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20251s&@builddir@&$ac_builddir&;t t 20252s&@abs_builddir@&$ac_abs_builddir&;t t 20253s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20254s&@INSTALL@&$ac_INSTALL&;t t 20255s&@MKDIR_P@&$ac_MKDIR_P&;t t 20256$ac_datarootdir_hack 20257" 20258eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20259 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20260 20261test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20262 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20263 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20264 "$ac_tmp/out"`; test -z "$ac_out"; } && 20265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20266which seems to be undefined. Please make sure it is defined" >&5 20267$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20268which seems to be undefined. Please make sure it is defined" >&2;} 20269 20270 rm -f "$ac_tmp/stdin" 20271 case $ac_file in 20272 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20273 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20274 esac \ 20275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20276 ;; 20277 :H) 20278 # 20279 # CONFIG_HEADER 20280 # 20281 if test x"$ac_file" != x-; then 20282 { 20283 $as_echo "/* $configure_input */" \ 20284 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20285 } >"$ac_tmp/config.h" \ 20286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20287 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20288 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20289$as_echo "$as_me: $ac_file is unchanged" >&6;} 20290 else 20291 rm -f "$ac_file" 20292 mv "$ac_tmp/config.h" "$ac_file" \ 20293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20294 fi 20295 else 20296 $as_echo "/* $configure_input */" \ 20297 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20298 || as_fn_error $? "could not create -" "$LINENO" 5 20299 fi 20300# Compute "$ac_file"'s index in $config_headers. 20301_am_arg="$ac_file" 20302_am_stamp_count=1 20303for _am_header in $config_headers :; do 20304 case $_am_header in 20305 $_am_arg | $_am_arg:* ) 20306 break ;; 20307 * ) 20308 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20309 esac 20310done 20311echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20312$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20313 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20314 X"$_am_arg" : 'X\(//\)$' \| \ 20315 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20316$as_echo X"$_am_arg" | 20317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20318 s//\1/ 20319 q 20320 } 20321 /^X\(\/\/\)[^/].*/{ 20322 s//\1/ 20323 q 20324 } 20325 /^X\(\/\/\)$/{ 20326 s//\1/ 20327 q 20328 } 20329 /^X\(\/\).*/{ 20330 s//\1/ 20331 q 20332 } 20333 s/.*/./; q'`/stamp-h$_am_stamp_count 20334 ;; 20335 20336 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20337$as_echo "$as_me: executing $ac_file commands" >&6;} 20338 ;; 20339 esac 20340 20341 20342 case $ac_file$ac_mode in 20343 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20344 # Older Autoconf quotes --file arguments for eval, but not when files 20345 # are listed without --file. Let's play safe and only enable the eval 20346 # if we detect the quoting. 20347 case $CONFIG_FILES in 20348 *\'*) eval set x "$CONFIG_FILES" ;; 20349 *) set x $CONFIG_FILES ;; 20350 esac 20351 shift 20352 for mf 20353 do 20354 # Strip MF so we end up with the name of the file. 20355 mf=`echo "$mf" | sed -e 's/:.*$//'` 20356 # Check whether this is an Automake generated Makefile or not. 20357 # We used to match only the files named 'Makefile.in', but 20358 # some people rename them; so instead we look at the file content. 20359 # Grep'ing the first line is not enough: some people post-process 20360 # each Makefile.in and add a new line on top of each file to say so. 20361 # Grep'ing the whole file is not good either: AIX grep has a line 20362 # limit of 2048, but all sed's we know have understand at least 4000. 20363 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20364 dirpart=`$as_dirname -- "$mf" || 20365$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20366 X"$mf" : 'X\(//\)[^/]' \| \ 20367 X"$mf" : 'X\(//\)$' \| \ 20368 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20369$as_echo X"$mf" | 20370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20371 s//\1/ 20372 q 20373 } 20374 /^X\(\/\/\)[^/].*/{ 20375 s//\1/ 20376 q 20377 } 20378 /^X\(\/\/\)$/{ 20379 s//\1/ 20380 q 20381 } 20382 /^X\(\/\).*/{ 20383 s//\1/ 20384 q 20385 } 20386 s/.*/./; q'` 20387 else 20388 continue 20389 fi 20390 # Extract the definition of DEPDIR, am__include, and am__quote 20391 # from the Makefile without running 'make'. 20392 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20393 test -z "$DEPDIR" && continue 20394 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20395 test -z "$am__include" && continue 20396 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20397 # Find all dependency output files, they are included files with 20398 # $(DEPDIR) in their names. We invoke sed twice because it is the 20399 # simplest approach to changing $(DEPDIR) to its actual value in the 20400 # expansion. 20401 for file in `sed -n " 20402 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20403 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20404 # Make sure the directory exists. 20405 test -f "$dirpart/$file" && continue 20406 fdir=`$as_dirname -- "$file" || 20407$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20408 X"$file" : 'X\(//\)[^/]' \| \ 20409 X"$file" : 'X\(//\)$' \| \ 20410 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20411$as_echo X"$file" | 20412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20413 s//\1/ 20414 q 20415 } 20416 /^X\(\/\/\)[^/].*/{ 20417 s//\1/ 20418 q 20419 } 20420 /^X\(\/\/\)$/{ 20421 s//\1/ 20422 q 20423 } 20424 /^X\(\/\).*/{ 20425 s//\1/ 20426 q 20427 } 20428 s/.*/./; q'` 20429 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20430 # echo "creating $dirpart/$file" 20431 echo '# dummy' > "$dirpart/$file" 20432 done 20433 done 20434} 20435 ;; 20436 "libtool":C) 20437 20438 # See if we are running on zsh, and set the options that allow our 20439 # commands through without removal of \ escapes. 20440 if test -n "${ZSH_VERSION+set}"; then 20441 setopt NO_GLOB_SUBST 20442 fi 20443 20444 cfgfile=${ofile}T 20445 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20446 $RM "$cfgfile" 20447 20448 cat <<_LT_EOF >> "$cfgfile" 20449#! $SHELL 20450# Generated automatically by $as_me ($PACKAGE) $VERSION 20451# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20452# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20453 20454# Provide generalized library-building support services. 20455# Written by Gordon Matzigkeit, 1996 20456 20457# Copyright (C) 2014 Free Software Foundation, Inc. 20458# This is free software; see the source for copying conditions. There is NO 20459# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20460 20461# GNU Libtool is free software; you can redistribute it and/or modify 20462# it under the terms of the GNU General Public License as published by 20463# the Free Software Foundation; either version 2 of of the License, or 20464# (at your option) any later version. 20465# 20466# As a special exception to the GNU General Public License, if you 20467# distribute this file as part of a program or library that is built 20468# using GNU Libtool, you may include this file under the same 20469# distribution terms that you use for the rest of that program. 20470# 20471# GNU Libtool is distributed in the hope that it will be useful, but 20472# WITHOUT ANY WARRANTY; without even the implied warranty of 20473# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20474# GNU General Public License for more details. 20475# 20476# You should have received a copy of the GNU General Public License 20477# along with this program. If not, see <http://www.gnu.org/licenses/>. 20478 20479 20480# The names of the tagged configurations supported by this script. 20481available_tags='' 20482 20483# Configured defaults for sys_lib_dlsearch_path munging. 20484: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20485 20486# ### BEGIN LIBTOOL CONFIG 20487 20488# Whether or not to build static libraries. 20489build_old_libs=$enable_static 20490 20491# Which release of libtool.m4 was used? 20492macro_version=$macro_version 20493macro_revision=$macro_revision 20494 20495# Whether or not to build shared libraries. 20496build_libtool_libs=$enable_shared 20497 20498# What type of objects to build. 20499pic_mode=$pic_mode 20500 20501# Whether or not to optimize for fast installation. 20502fast_install=$enable_fast_install 20503 20504# Shared archive member basename,for filename based shared library versioning on AIX. 20505shared_archive_member_spec=$shared_archive_member_spec 20506 20507# Shell to use when invoking shell scripts. 20508SHELL=$lt_SHELL 20509 20510# An echo program that protects backslashes. 20511ECHO=$lt_ECHO 20512 20513# The PATH separator for the build system. 20514PATH_SEPARATOR=$lt_PATH_SEPARATOR 20515 20516# The host system. 20517host_alias=$host_alias 20518host=$host 20519host_os=$host_os 20520 20521# The build system. 20522build_alias=$build_alias 20523build=$build 20524build_os=$build_os 20525 20526# A sed program that does not truncate output. 20527SED=$lt_SED 20528 20529# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20530Xsed="\$SED -e 1s/^X//" 20531 20532# A grep program that handles long lines. 20533GREP=$lt_GREP 20534 20535# An ERE matcher. 20536EGREP=$lt_EGREP 20537 20538# A literal string matcher. 20539FGREP=$lt_FGREP 20540 20541# A BSD- or MS-compatible name lister. 20542NM=$lt_NM 20543 20544# Whether we need soft or hard links. 20545LN_S=$lt_LN_S 20546 20547# What is the maximum length of a command? 20548max_cmd_len=$max_cmd_len 20549 20550# Object file suffix (normally "o"). 20551objext=$ac_objext 20552 20553# Executable file suffix (normally ""). 20554exeext=$exeext 20555 20556# whether the shell understands "unset". 20557lt_unset=$lt_unset 20558 20559# turn spaces into newlines. 20560SP2NL=$lt_lt_SP2NL 20561 20562# turn newlines into spaces. 20563NL2SP=$lt_lt_NL2SP 20564 20565# convert \$build file names to \$host format. 20566to_host_file_cmd=$lt_cv_to_host_file_cmd 20567 20568# convert \$build files to toolchain format. 20569to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20570 20571# An object symbol dumper. 20572OBJDUMP=$lt_OBJDUMP 20573 20574# Method to check whether dependent libraries are shared objects. 20575deplibs_check_method=$lt_deplibs_check_method 20576 20577# Command to use when deplibs_check_method = "file_magic". 20578file_magic_cmd=$lt_file_magic_cmd 20579 20580# How to find potential files when deplibs_check_method = "file_magic". 20581file_magic_glob=$lt_file_magic_glob 20582 20583# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20584want_nocaseglob=$lt_want_nocaseglob 20585 20586# DLL creation program. 20587DLLTOOL=$lt_DLLTOOL 20588 20589# Command to associate shared and link libraries. 20590sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20591 20592# The archiver. 20593AR=$lt_AR 20594 20595# Flags to create an archive. 20596AR_FLAGS=$lt_AR_FLAGS 20597 20598# How to feed a file listing to the archiver. 20599archiver_list_spec=$lt_archiver_list_spec 20600 20601# A symbol stripping program. 20602STRIP=$lt_STRIP 20603 20604# Commands used to install an old-style archive. 20605RANLIB=$lt_RANLIB 20606old_postinstall_cmds=$lt_old_postinstall_cmds 20607old_postuninstall_cmds=$lt_old_postuninstall_cmds 20608 20609# Whether to use a lock for old archive extraction. 20610lock_old_archive_extraction=$lock_old_archive_extraction 20611 20612# A C compiler. 20613LTCC=$lt_CC 20614 20615# LTCC compiler flags. 20616LTCFLAGS=$lt_CFLAGS 20617 20618# Take the output of nm and produce a listing of raw symbols and C names. 20619global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20620 20621# Transform the output of nm in a proper C declaration. 20622global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20623 20624# Transform the output of nm into a list of symbols to manually relocate. 20625global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20626 20627# Transform the output of nm in a C name address pair. 20628global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20629 20630# Transform the output of nm in a C name address pair when lib prefix is needed. 20631global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20632 20633# The name lister interface. 20634nm_interface=$lt_lt_cv_nm_interface 20635 20636# Specify filename containing input files for \$NM. 20637nm_file_list_spec=$lt_nm_file_list_spec 20638 20639# The root where to search for dependent libraries,and where our libraries should be installed. 20640lt_sysroot=$lt_sysroot 20641 20642# Command to truncate a binary pipe. 20643lt_truncate_bin=$lt_lt_cv_truncate_bin 20644 20645# The name of the directory that contains temporary libtool files. 20646objdir=$objdir 20647 20648# Used to examine libraries when file_magic_cmd begins with "file". 20649MAGIC_CMD=$MAGIC_CMD 20650 20651# Must we lock files when doing compilation? 20652need_locks=$lt_need_locks 20653 20654# Manifest tool. 20655MANIFEST_TOOL=$lt_MANIFEST_TOOL 20656 20657# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20658DSYMUTIL=$lt_DSYMUTIL 20659 20660# Tool to change global to local symbols on Mac OS X. 20661NMEDIT=$lt_NMEDIT 20662 20663# Tool to manipulate fat objects and archives on Mac OS X. 20664LIPO=$lt_LIPO 20665 20666# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20667OTOOL=$lt_OTOOL 20668 20669# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20670OTOOL64=$lt_OTOOL64 20671 20672# Old archive suffix (normally "a"). 20673libext=$libext 20674 20675# Shared library suffix (normally ".so"). 20676shrext_cmds=$lt_shrext_cmds 20677 20678# The commands to extract the exported symbol list from a shared archive. 20679extract_expsyms_cmds=$lt_extract_expsyms_cmds 20680 20681# Variables whose values should be saved in libtool wrapper scripts and 20682# restored at link time. 20683variables_saved_for_relink=$lt_variables_saved_for_relink 20684 20685# Do we need the "lib" prefix for modules? 20686need_lib_prefix=$need_lib_prefix 20687 20688# Do we need a version for libraries? 20689need_version=$need_version 20690 20691# Library versioning type. 20692version_type=$version_type 20693 20694# Shared library runtime path variable. 20695runpath_var=$runpath_var 20696 20697# Shared library path variable. 20698shlibpath_var=$shlibpath_var 20699 20700# Is shlibpath searched before the hard-coded library search path? 20701shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20702 20703# Format of library name prefix. 20704libname_spec=$lt_libname_spec 20705 20706# List of archive names. First name is the real one, the rest are links. 20707# The last name is the one that the linker finds with -lNAME 20708library_names_spec=$lt_library_names_spec 20709 20710# The coded name of the library, if different from the real name. 20711soname_spec=$lt_soname_spec 20712 20713# Permission mode override for installation of shared libraries. 20714install_override_mode=$lt_install_override_mode 20715 20716# Command to use after installation of a shared archive. 20717postinstall_cmds=$lt_postinstall_cmds 20718 20719# Command to use after uninstallation of a shared archive. 20720postuninstall_cmds=$lt_postuninstall_cmds 20721 20722# Commands used to finish a libtool library installation in a directory. 20723finish_cmds=$lt_finish_cmds 20724 20725# As "finish_cmds", except a single script fragment to be evaled but 20726# not shown. 20727finish_eval=$lt_finish_eval 20728 20729# Whether we should hardcode library paths into libraries. 20730hardcode_into_libs=$hardcode_into_libs 20731 20732# Compile-time system search path for libraries. 20733sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20734 20735# Detected run-time system search path for libraries. 20736sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20737 20738# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20739configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20740 20741# Whether dlopen is supported. 20742dlopen_support=$enable_dlopen 20743 20744# Whether dlopen of programs is supported. 20745dlopen_self=$enable_dlopen_self 20746 20747# Whether dlopen of statically linked programs is supported. 20748dlopen_self_static=$enable_dlopen_self_static 20749 20750# Commands to strip libraries. 20751old_striplib=$lt_old_striplib 20752striplib=$lt_striplib 20753 20754 20755# The linker used to build libraries. 20756LD=$lt_LD 20757 20758# How to create reloadable object files. 20759reload_flag=$lt_reload_flag 20760reload_cmds=$lt_reload_cmds 20761 20762# Commands used to build an old-style archive. 20763old_archive_cmds=$lt_old_archive_cmds 20764 20765# A language specific compiler. 20766CC=$lt_compiler 20767 20768# Is the compiler the GNU compiler? 20769with_gcc=$GCC 20770 20771# Compiler flag to turn off builtin functions. 20772no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20773 20774# Additional compiler flags for building library objects. 20775pic_flag=$lt_lt_prog_compiler_pic 20776 20777# How to pass a linker flag through the compiler. 20778wl=$lt_lt_prog_compiler_wl 20779 20780# Compiler flag to prevent dynamic linking. 20781link_static_flag=$lt_lt_prog_compiler_static 20782 20783# Does compiler simultaneously support -c and -o options? 20784compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20785 20786# Whether or not to add -lc for building shared libraries. 20787build_libtool_need_lc=$archive_cmds_need_lc 20788 20789# Whether or not to disallow shared libs when runtime libs are static. 20790allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20791 20792# Compiler flag to allow reflexive dlopens. 20793export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20794 20795# Compiler flag to generate shared objects directly from archives. 20796whole_archive_flag_spec=$lt_whole_archive_flag_spec 20797 20798# Whether the compiler copes with passing no objects directly. 20799compiler_needs_object=$lt_compiler_needs_object 20800 20801# Create an old-style archive from a shared archive. 20802old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20803 20804# Create a temporary old-style archive to link instead of a shared archive. 20805old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20806 20807# Commands used to build a shared archive. 20808archive_cmds=$lt_archive_cmds 20809archive_expsym_cmds=$lt_archive_expsym_cmds 20810 20811# Commands used to build a loadable module if different from building 20812# a shared archive. 20813module_cmds=$lt_module_cmds 20814module_expsym_cmds=$lt_module_expsym_cmds 20815 20816# Whether we are building with GNU ld or not. 20817with_gnu_ld=$lt_with_gnu_ld 20818 20819# Flag that allows shared libraries with undefined symbols to be built. 20820allow_undefined_flag=$lt_allow_undefined_flag 20821 20822# Flag that enforces no undefined symbols. 20823no_undefined_flag=$lt_no_undefined_flag 20824 20825# Flag to hardcode \$libdir into a binary during linking. 20826# This must work even if \$libdir does not exist 20827hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20828 20829# Whether we need a single "-rpath" flag with a separated argument. 20830hardcode_libdir_separator=$lt_hardcode_libdir_separator 20831 20832# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20833# DIR into the resulting binary. 20834hardcode_direct=$hardcode_direct 20835 20836# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20837# DIR into the resulting binary and the resulting library dependency is 20838# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20839# library is relocated. 20840hardcode_direct_absolute=$hardcode_direct_absolute 20841 20842# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20843# into the resulting binary. 20844hardcode_minus_L=$hardcode_minus_L 20845 20846# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20847# into the resulting binary. 20848hardcode_shlibpath_var=$hardcode_shlibpath_var 20849 20850# Set to "yes" if building a shared library automatically hardcodes DIR 20851# into the library and all subsequent libraries and executables linked 20852# against it. 20853hardcode_automatic=$hardcode_automatic 20854 20855# Set to yes if linker adds runtime paths of dependent libraries 20856# to runtime path list. 20857inherit_rpath=$inherit_rpath 20858 20859# Whether libtool must link a program against all its dependency libraries. 20860link_all_deplibs=$link_all_deplibs 20861 20862# Set to "yes" if exported symbols are required. 20863always_export_symbols=$always_export_symbols 20864 20865# The commands to list exported symbols. 20866export_symbols_cmds=$lt_export_symbols_cmds 20867 20868# Symbols that should not be listed in the preloaded symbols. 20869exclude_expsyms=$lt_exclude_expsyms 20870 20871# Symbols that must always be exported. 20872include_expsyms=$lt_include_expsyms 20873 20874# Commands necessary for linking programs (against libraries) with templates. 20875prelink_cmds=$lt_prelink_cmds 20876 20877# Commands necessary for finishing linking programs. 20878postlink_cmds=$lt_postlink_cmds 20879 20880# Specify filename containing input files. 20881file_list_spec=$lt_file_list_spec 20882 20883# How to hardcode a shared library path into an executable. 20884hardcode_action=$hardcode_action 20885 20886# ### END LIBTOOL CONFIG 20887 20888_LT_EOF 20889 20890 cat <<'_LT_EOF' >> "$cfgfile" 20891 20892# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20893 20894# func_munge_path_list VARIABLE PATH 20895# ----------------------------------- 20896# VARIABLE is name of variable containing _space_ separated list of 20897# directories to be munged by the contents of PATH, which is string 20898# having a format: 20899# "DIR[:DIR]:" 20900# string "DIR[ DIR]" will be prepended to VARIABLE 20901# ":DIR[:DIR]" 20902# string "DIR[ DIR]" will be appended to VARIABLE 20903# "DIRP[:DIRP]::[DIRA:]DIRA" 20904# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20905# "DIRA[ DIRA]" will be appended to VARIABLE 20906# "DIR[:DIR]" 20907# VARIABLE will be replaced by "DIR[ DIR]" 20908func_munge_path_list () 20909{ 20910 case x$2 in 20911 x) 20912 ;; 20913 *:) 20914 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20915 ;; 20916 x:*) 20917 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20918 ;; 20919 *::*) 20920 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20921 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20922 ;; 20923 *) 20924 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20925 ;; 20926 esac 20927} 20928 20929 20930# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20931func_cc_basename () 20932{ 20933 for cc_temp in $*""; do 20934 case $cc_temp in 20935 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20936 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20937 \-*) ;; 20938 *) break;; 20939 esac 20940 done 20941 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20942} 20943 20944 20945# ### END FUNCTIONS SHARED WITH CONFIGURE 20946 20947_LT_EOF 20948 20949 case $host_os in 20950 aix3*) 20951 cat <<\_LT_EOF >> "$cfgfile" 20952# AIX sometimes has problems with the GCC collect2 program. For some 20953# reason, if we set the COLLECT_NAMES environment variable, the problems 20954# vanish in a puff of smoke. 20955if test set != "${COLLECT_NAMES+set}"; then 20956 COLLECT_NAMES= 20957 export COLLECT_NAMES 20958fi 20959_LT_EOF 20960 ;; 20961 esac 20962 20963 20964ltmain=$ac_aux_dir/ltmain.sh 20965 20966 20967 # We use sed instead of cat because bash on DJGPP gets confused if 20968 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20969 # text mode, it properly converts lines to CR/LF. This bash problem 20970 # is reportedly fixed, but why not run on old versions too? 20971 sed '$q' "$ltmain" >> "$cfgfile" \ 20972 || (rm -f "$cfgfile"; exit 1) 20973 20974 mv -f "$cfgfile" "$ofile" || 20975 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20976 chmod +x "$ofile" 20977 20978 ;; 20979 20980 esac 20981done # for ac_tag 20982 20983 20984as_fn_exit 0 20985_ACEOF 20986ac_clean_files=$ac_clean_files_save 20987 20988test $ac_write_fail = 0 || 20989 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20990 20991 20992# configure is writing to config.log, and then calls config.status. 20993# config.status does its own redirection, appending to config.log. 20994# Unfortunately, on DOS this fails, as config.log is still kept open 20995# by configure, so config.status won't be able to write to it; its 20996# output is simply discarded. So we exec the FD to /dev/null, 20997# effectively closing config.log, so it can be properly (re)opened and 20998# appended to by config.status. When coming back to configure, we 20999# need to make the FD available again. 21000if test "$no_create" != yes; then 21001 ac_cs_success=: 21002 ac_config_status_args= 21003 test "$silent" = yes && 21004 ac_config_status_args="$ac_config_status_args --quiet" 21005 exec 5>/dev/null 21006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21007 exec 5>>config.log 21008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21009 # would make configure fail if this is the last instruction. 21010 $ac_cs_success || as_fn_exit 1 21011fi 21012if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21014$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21015fi 21016 21017